greetings guys, im sitiing here trying to develop an application with a map inside,
i would like that the map would provide some kind of pathfinding showing the person how to get from point A to point B, at the shortest distance.
i’ve tried messing arround with the jumper lib, and cant seem to get it working properly.
any kind person out there that can help me with this??
Here’s my tutorial write-up (with links) on Jumper working with Corona SDK out-of-box:
http://www.panc.co/code/jumper-logic-modified-for-corona-sdk
i seems to work with the one downloaded from your side.
i’m a bit new on the matter of pathfinding and this sorts of stuff, only really scratched the surfice in my previous projects.
how exactly or where exactly do i have to edit to make it a fixed grid instead of the random grid,
and how do i place a map ontop of it??
i apreciate the help.
The answers to your questions are in my write-up and the docs for Jumper itself. This might seem like I’m being lazy by not giving the rote details, but it’s usually better to create something, watch it break, and then figure out how to get it working. That way, you learn how it works and how not to make mistakes in the future!
A few pointers: The map data should always be a grid. You can easily overlay a full map graphic over your map grid data, but it might be better to write yourself a couple of functions that read your map data, and spawn a graphic at the correct location. Nerderer is a code saint for letting everyone benefit from his Lua Tilemap Generator which can take pngs and translate them into these lua grids.
Good luck!
thanks ill try looking into it again.
i hope i can return here to ask more questions when they pop up, or if i just cant get it to work
Everything is set up to work with the included logic, so if you can’t get it operate correctly within your project, we’d be happy to help with specific questions regarding implementation.
Here’s my tutorial write-up (with links) on Jumper working with Corona SDK out-of-box:
http://www.panc.co/code/jumper-logic-modified-for-corona-sdk
i seems to work with the one downloaded from your side.
i’m a bit new on the matter of pathfinding and this sorts of stuff, only really scratched the surfice in my previous projects.
how exactly or where exactly do i have to edit to make it a fixed grid instead of the random grid,
and how do i place a map ontop of it??
i apreciate the help.
The answers to your questions are in my write-up and the docs for Jumper itself. This might seem like I’m being lazy by not giving the rote details, but it’s usually better to create something, watch it break, and then figure out how to get it working. That way, you learn how it works and how not to make mistakes in the future!
A few pointers: The map data should always be a grid. You can easily overlay a full map graphic over your map grid data, but it might be better to write yourself a couple of functions that read your map data, and spawn a graphic at the correct location. Nerderer is a code saint for letting everyone benefit from his Lua Tilemap Generator which can take pngs and translate them into these lua grids.
Good luck!
thanks ill try looking into it again.
i hope i can return here to ask more questions when they pop up, or if i just cant get it to work
Everything is set up to work with the included logic, so if you can’t get it operate correctly within your project, we’d be happy to help with specific questions regarding implementation.