im making a new project its a shooting game so there is a sprite forthe bullet and when i tell it to go to the person it just goes to some random place on the screen:(
Offline
<go to[ person] [/block]
That doesn't work?
Offline
Maybe the rotation center of the person is not really on the person, but far from the person.
Offline
The rotation center is not just rotation. It is also the "center" for other sprites to go to. Check this by opening the costumes and hitting "set rotation center" in the lower-left corner.
Offline
if there are many other actions after you tell it to go to the sprite, then the person will be on other place than when you told the bullet to go there. this is because the bullet will record the persons position in a different time, before you move it.
if you want to create a "following effect", create a separated loop where you increase the speed at which you ask the bullet to follow the person. and it will be refreshed faster.
Last edited by pepepaco1980 (2009-05-29 14:44:02)
Offline