What is the best practice to move sprites using mouse order in Tile games?

Posted by Robin-Hood on Game Development See other posts from Game Development or by Robin-Hood
Published on 2011-03-06T10:58:43Z Indexed on 2011/03/06 16:19 UTC
Read the original article Hit count: 428

Filed under:
|
|
|

I am trying to make my first Tile-game using XNA. I have no problem drawing the map layers using TiledLib from codeplex, but, now I want to give sprite an (order) to move to a specific position on map, by selecting the sprite (left mouse click) and then right mouse click somewhere on the map to specify the target position. I don’t know what is the best practice to move sprite this way, considering that there may be collision objects in the direct path.

what is the best practice to do this? Is there any demo covering this issue?

thanks.

BTW: I couldn’t upload snapshot because of my low score :(

© Game Development or respective owner

Related posts about game-design

Related posts about XNA