I have two questions, but here's my first one.
I want to know how do I get an instance of a sprite, let's say 2 of the same enemy sprites in which if they are stacked on top of each other, player can't hurt the bottom one? The way I have it set up, it doesn't seem to be working.
I have it set up as this: (Forgive the pseudo code, couldn't get a screenshot)
If {
(EnemySpriteA on collision with EnemySpriteA) && (EnemySpriteA Y < EnemySpriteA.Y)
Set EnemySpriteA Instance Boolean "Invincible" True
}
My second question is that I want to make a power up where when the player touches it, they get a clone of the character. I made quick example of it, it spawns another instance of player sprite. However the player has no control of it till it touches a solid object. Is there a way to have it where the player spawns the clone player to have control of it the moment it spawns, as well have the same momentum as the player as well?