Hey all, using OGMO to create levels and use a set of tiles. Create the ground grid as usual to walk on. I have a second set of tiles that I can place on and I don’t place a ground so they are non collidable and have it’s layer set lower than the player, so he appears to go behind this secret wall.
So the hidden map tiles are rendered as one Entity during world creation, so far I have managed to detect the player colliding with hidden map as an entity, but can’t get the behaviour to make it invisible.
I can’t even make them disappear, I have got it working that it is placed into a variable hiddenMap and nothing like this works:
hiddenMap.visible = false; hiddenMap.graphic.visible = false;
I can however do: hiddenMap.layer = 10; // and then it is behind me again (not what I want though)
Anyone got suggestions or can explain why the visible thing is not working? Am I missing something how this all works? Thanks
Update: I have debug controls, when I normally try to pass through the wall nothing happens, If I happen to pass through using debug it does turn visible to false!! The only difference is debug makes my x or y +=/-= for faster movement. I am baffled as to what is happening.
When I find out how to collide properly, can I do something like
hiddenMap.graphic.image.alpha = 0.5;