- #1
harleyon
- 2
- 0
Hello,
I'm trying to build a game that has birds fly up on the Y axis (I'm ignoring the X axis for now).
What I'm trying to achieve is for the the birds to fly up against gravity (in this case set to 240) to a predefined height and at different speeds.
E.g. Bird1 flies up 400 pixels at a speed of '10'. Bird2 flies up 400 pixels at a speed of '5'.
The variables I can set is 'velocity' and 'acceleration'. I have a gravity factor of 240 trying to push the birds down at all times.
What formula would I use for this?
I'm trying to build a game that has birds fly up on the Y axis (I'm ignoring the X axis for now).
What I'm trying to achieve is for the the birds to fly up against gravity (in this case set to 240) to a predefined height and at different speeds.
E.g. Bird1 flies up 400 pixels at a speed of '10'. Bird2 flies up 400 pixels at a speed of '5'.
The variables I can set is 'velocity' and 'acceleration'. I have a gravity factor of 240 trying to push the birds down at all times.
What formula would I use for this?