I Wanna Community
Fangames => Game Design => Programming Questions => Topic started by: 128-Up on November 09, 2015, 09:40:00 PM
-
I'm using Lemon Engine on GM 8.0 and I want to know how to stop the blood from the Kid dying from landing on invisible blocks that haven't been revealed and going through fake blocks that haven't disappeared.
-
If the blood is its own Object, make the invisible block Object an exception by having a collision event that executes code that doesn't include the blood stopping upon touching it.
-
Just do this:
1. Go in the invisible block object, uncheck "solid" and remove the block parent
2. In the step event where it checks for a collision with player, add this under "visible = 1"
instance_create(x,y,block)
-
Just do this:
1. Go in the invisible block object, uncheck "solid" and remove the block parent
2. In the step event where it checks for a collision with player, add this under "visible = 1"
instance_create(x,y,block)
I did this, but then I end up with the problem where you get stuck if you jump into an invisible block from below.
-
You can always just delete all unrevealed invisible blocks if the player dies
On player death event:
with (insert invisible blocks name here) if visible = 0 instance_destroy()
if you have various invisible block objects, make a parent for them and just refer to the parent in the code above