Just add an extra condition (a variable) to whatever condition you're using to move the player and set this variable on collision, reseting it to allow movement when the events are resolved. If you tell us how you're moving the player, I can be more specific.
For instance, if you're using the Keyboard object it would be something like this:
> if (Keyboard is Down && movingAllowed == 1) {
<Move the character>
}
On collision {
Set movingAllowed = 0;
Wait X seconds;
Set movingAllowed = 1;
}
I see what i need to do but is construct allow us to do that?
I need to make a condition.
If blue is in collision with tilemap make 1
If red is in collision with tilemap make 1 except if blue is also in collison.