creating the nodes for path finding during run time - more like path making and more

Posted by bigbadbabybear on Game Development See other posts from Game Development or by bigbadbabybear
Published on 2012-03-20T10:05:56Z Indexed on 2012/03/20 11:39 UTC
Read the original article Hit count: 302

Filed under:
|
|

i'm making my 1st game. i'm using javascript as i currently want to learn to make games without needing to learn another language but this is more of a general game dev question

its a 2d turn-based tile/grid game. you can check it here http://www.patinterotest.tk/ it creates a movable area when you hover a player and it implements the A* algo for moving the player.

The Problem: i want to make the 'dynamic movable area creation' already implement a limited number of steps for a player.

The Questions:

  • what is a good way to do this?

  • is there another algorithm to use for this?

  • the A* algorithm needs a start and destination, with what i want to do i don't have a destination

  • or should i just limit the iteration of the A* algo to the steps variable?

hopefully you understand the problem & questions easily

© Game Development or respective owner

Related posts about tiles

Related posts about path-finding