This site requires JavaScript, please enable it in your browser!
Greenfoot back
ConorK
ConorK wrote ...

2021/3/29

How to make an object move as a parabola?

ConorK ConorK

2021/3/29

#
I'm making a game where the story has an unseen character throw an object from below the screen. All I want is for the object to appear on screen and move as if it was thrown in the air(like in a parabola). I also want it to disappear from the world as soon as it reaches the other side of the parabola to show it as if it left the screen. I'd also like it to appear from random places at the bottom of the screen and different sizes of a parabola.
danpost danpost

2021/3/29

#
ConorK wrote...
I'm making a game where the story has an unseen character throw an object from below the screen. All I want is for the object to appear on screen and move as if it was thrown in the air(like in a parabola). I also want it to disappear from the world as soon as it reaches the other side of the parabola to show it as if it left the screen. I'd also like it to appear from random places at the bottom of the screen and different sizes of a parabola.
I would refer to my Flight Trajectories Demo scenario, but it is a bit much for what you need. You just need (1) a chosen starting location; (2) a chosen horizontal speed; and (3) a chosen initial vertical speed; and (4) a chosen downward acceleration.
You need to login to post a reply.