How to make an actor point at another actor
awssassim
Member Posts: 3
hii everyone.
i got this problem now, i have got an actor(Rocket) and i got another object which i want the rocket to hit.
the object might come from any direction so the rocket must move and hit it at certain time, i have managed to solve the moving part using moveTo and constrain global attributes. But my problem now is how to rotate the rocket in such a way that it will point to the object and fly towards it?.
thanks.
i got this problem now, i have got an actor(Rocket) and i got another object which i want the rocket to hit.
the object might come from any direction so the rocket must move and hit it at certain time, i have managed to solve the moving part using moveTo and constrain global attributes. But my problem now is how to rotate the rocket in such a way that it will point to the object and fly towards it?.
thanks.
Comments
Then constrain an attribute. (I can't say witch one on the top of my head.)
Ill check now.
http://gamesalad.com/game/play/45517
:-)
Edit: you beat me to it!
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
I forgot to rotate.
---Edit---
Ok I sort of done it. But Im not sure how to do it properly. Maybe Gyroscope can say what I done wrong.
thanks for the help, i was about to commit math attack .
thanks gyroscope.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
KELIJFIKLO"DMSKLWEJMOL!
FINALLY, SOMEONE ELSE WHO CAN SPEAK ALPHA CENTAURIAN!
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
COOL LOOK WHAT I MADED!!!
http://gamesalad.com/game/play/45517
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Lol
THE MOUSE! as in the computer mouse.
Shut up. My mum thinks i'm funny.