0

i am making a game in python 2.3.5 and i wanted to know if there is a command that would make it so one sprite will move to another no matter what the position is on the screen.

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Firewolf
0

If you are programming games in Python it might be interesting to have a look at PyGame: http://www.pygame.org/

What you are looking for is the concept of 'Path finding'.

More technically, you might have a look into 'vector' usage (either 2D or 3D).
LocationCurrentSprite = Vector(...)
LocationNPCSprite = Vector(...)
distance = function of vectors
direction = function of vectors

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.