Enemy motion while stuck in block

frankvanleeuwen

  • Posts: 29
I have the following situation. I have a game where blocks can turn visible and invisble. If their invisible enemies can walk through them, if their visible they cant. I have this and its working fine. But at the moment an enemy is at the same position of a block while it turns visible, the game crashes. I dont want this. The enemy should stop moving till the block gets invisible again. How do I do that?

I know how to stop and move the enemy, but I need to find out how to define that the enemy is on the same position as the block. I think I cant do this with the collision function, because the invisible blocks dont collide.

rob1221

  • *
  • Posts: 9474
You can make the invisible blocks sensors that detect collisions but don't react to them.