OGMO beginner help?


(Nate ) #1

Hey guys so I spent a large portion of the day setting up a map in OGMO and trying to get it into my game. It is my first time with FlashPunk as well as OGMO, but for this game I would like to have much finer control over my level creation! So it is a must that I use a 3rd party level creation tool!

I followed Zach’s tutorial here:

The problem I am having now is I cannot get my player to collide with the map. For now I just have the grid loading successfully into my GameWorld.as and my player spawns but just falls and falls and falls. Which I am sure is a common beginners issue, I just have zero experience with XML or how I am to handle the map data!

Should I be tiling the grid before I can do collision? It is my understanding that the grids are “grid meshes” so I would ASSUME that just a grid should be able to stop my player.

Thanks guys in advance! This has been sort of a long post!


(Nate ) #2

Okay I got it working! It was a minor pilot error!

However I do have another question regarding OGMO, in terms of water, since it is my understanding that OGMO sets up collision grids, mainly for walls and blocks; would my best bet be to create a grid for the water, then bring in the water grid from the xml and then write different collision code for it?