• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Topwall won't disappear when there is Wall above it

F

Faexie

Guest
I'm making some sort of terraria-style terraforming system but in 2.5D. I'd say it's progressing pretty well, except that the object I use as the top of the wall won't disapear if there is a wall above it like I wanted.

it looks like this:
blocks.png

Here's my code for that:
if (place_meeting(x,y-1,Owall))
{
instance_create_layer(x,y,"Walls",Owall)
instance_destroy()
}
 

TheouAegis

Member
If this was a Create event, the issue would be obvious...

Is the bounding box for the sprite set to Full, not Automatic?

Personally I would use position_meeting(x,y-8,Owall).

Is the Owall above it actually an Owall and not turning itself into something else right away?
 
Top