Hi All,
For the last couple of days I had been working on trying to get the Idle animation right for the Melonpult from Plants Vs Zombies in Glitch Garden, now it’s about as good as it going to get, but, before doing any animation for the attack phase other than a stationary graphic for now. I need to think about how to throw the “Melon”.
Now, it’s relatively easy to get the melon instantiating from an origin point it’s the next part has me a little bit muddled. The melon won’t be able to fly across the screen as the other projectiles, but, rather travel in a parabolic arc from the instantiation point to the x-coordinates of the first spawned object - which I will put-off until I need to worry about it. The main problem for now is how do I move an object on a parabolic arc? What is the mathematics behind moving an object in a for lack of a better word a perfect arc? For now all I am going to do for now is make the arc end at the last square of the playboard, ie, World co-ord of 9. So any tips, hints, or websites (talking about how I might code the arc), would be of tremendous help to at least getting me started on this.
Thankyou and Regards,
Vaughan.