Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Dhoombaby

Hello,
i am developing my new game called pigymon where the pigymon is flying. I want the logic for how to make an entity fly...means when i press up_arrow it should fly. It should not touch the ground, remain upside only, but should bounce...so what changes would i require to do in player and main file.

1 decade ago by Joncom

I recommend you tinker with the platformer demo that's on your download page. It should give you a pretty good example on how to setup a player entity and control it with keys.

1 decade ago by taddeimania

you could just constrain the y axis to the up and down arrow and for the bounce you could give it a little extra oomph by adding a few extra +/- to y axis based on a sine wave.
Page 1 of 1
« first « previous next › last »