Another OGMO question!


(Nate ) #21

Only issue with this temporary fix is now OGMO will not let me open the map due to some intense sounding error that I would imagine is due to be removing most of the data from the .oel.

Let me know what you get Blake!


(Blake Jones) #22

yeah keep the map you edit in a different file than the one in your game so you can put it in your games asset file and edit the -1s out there BUT youll still have the original that can be opened in ogmo. It makes me wonder if this is an ogmo problem. maybe he just patched it


(Nate ) #23

Okay sounds like a plan! Thanks man! :dancers:


(Blake Jones) #24

thanks for the ctrl+H. :smile:


(Nate ) #25

No problem man! Also, sort of on the same topic, for adding water… would it be best to add it in OGMO as an entity? Since I would like my player to be able to enter the water, the water that I have currently is a spritemap because I have it looking like it is moving, and I currently change the players properties when he enters the water.

Or is this all doable if I were to have the water on its own tile layer? Can tile layers be animated and interacted with is what I am saying!


(Nate ) #26

Hey guys! So after figuring out what I had to do with the negative ones to make my OGMO generated map appear correctly when I ran my game I had my grid and layer one loading properly. So I just tried adding some water using the same method, and this is the result. Is there a reason that OGMO seems to be getting the coordinates off when I bring the .oel into my game?

Does resolution possibly have something to do with it?

this map is 2560 x 720

Here is a screen shot of what I am dealing with! Also don’t make fun of the art used it is either place holder art or stuff I did really fast! lol

Any thoughts or suggestions would greatly be appreciated! I finally have OGMO working properly and want to bang out some nice levels!


(Zachary Lewis) #27

There are two ways to solve this.

  1. Don’t leave tiles blank in Ogmo. Tilesets are 0-indexed, so if a tile isn’t added at all, it’s not tile 0, it’s just -1. Do a flood-fill of your background and start drawing the business.
  2. Have your map loop deal with empty tiles. When you’re iterating through your XML and you see a -1, handle it however you see fit.