mafon2
Member
Ok, I'm sure it's trivial thing many of you struggled with.
I'd like to make a block that crumbles, when contacting fallin player or special block.
Here's the code:
As you can see, it affects all of the Movable_blocks so it can work only with one of 'em per room. How do you adress the particular block the instance collides with?
I tried juggling with "other" with no result. I would have wrote these lines in Movable_block, but due to their common parrent that deals with collisions it's a mess I can't walk through.
I'd like to make a block that crumbles, when contacting fallin player or special block.
Here's the code:
Code:
if (place_meeting(x,y-Movable_block.speedY,Movable_block))
{
instance_destroy();
}
I tried juggling with "other" with no result. I would have wrote these lines in Movable_block, but due to their common parrent that deals with collisions it's a mess I can't walk through.