Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Megisto on May 03, 2013, 05:49:05 AM
-
Hi, can u help me with this? (Please see attachment)
In my game there is a missile on a rocket launcher. I must give a missile an appropriate rotation to hit a target on the screen that can spawn wherever.
I don't want to use the "look at" action, as i must know the exact arc everytime, because i must draw a reference route on screen before the missile is launched (like angry bird).
Hope i make myself clear :)
By the way, how can i draw this route using, say, trials, prefab dot-shaped, etc.?
-
Another solution would be to define an arc trajectory and makes the missile always look forward along this trajectory. But i don't know how to achieve this too.
-
I'm pretty interested in this as well...
-
I would make a prefab with an arc mesh ready.
Then, I would scale it accordingly.
In example, with more power, scale it uniformly.
Lowering the angle would squash it on the vertical axis and enlarge the horizontal axis.
Etc.
Sure it's not ballistically accurate, but if we are talking about an angry birds game... ;D
-
Hi,
ITween to the rescue. iTween lets you create path to animate objects ( and follow it).
http://hutonggames.com/playmakerforum/index.php?topic=1699.0
bye,
Jean