Fangames > Programming Questions
Stopping blood splatter giving away fake/invisible blocks?
(1/1)
128-Up:
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.
Keygrin:
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.
pieceofcheese87:
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"
--- Code: ---instance_create(x,y,block)
--- End code ---
128-Up:
--- Quote from: pieceofcheese87 on November 10, 2015, 06:21:34 AM ---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"
--- Code: ---instance_create(x,y,block)
--- End code ---
--- End quote ---
I did this, but then I end up with the problem where you get stuck if you jump into an invisible block from below.
L4Vo5:
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
Navigation
[0] Message Index
Go to full version