Hey guys,
Im a noob here so hopefully I have posted in the right place.
I am working on a Cobalt style platformer/shooter, I watched this: http://flashpunk.net/2011/12/episode-12-moving-jumping-and-physics-for-platformers/
, its flash but I was able to convert is easily, the only thing is I cant figure out how to handle collision & gravity for the play jumping onto platforms, the for-mentioned video only talks about colliding with the bottom of the window.
The only way I could think about doing it looping trough all of my platforms and checking if the play was intersecting with one and if it was not allowing it to travel in y++ any more.
I’m sure this is a terrible approach and there is a better/best-practice approach that I am missing.
Thanks JGO-ers.
Martin