Enter, but don't exit

I'm not even sure how to do this. In my game I have invisible walls to prevent the actor from leaving the scene. However, I want the actor to spawn off screen and then come into view. Is there a way to allow it to go through the walls to enter but not be able to leave?

Comments

  • ThoPelThoPel GermanyMember, PRO Posts: 184

    Just a few ideas:

    • Let the actor spawn the walls after it has entered the screen.
      OR

    • Connect the collision with the position of the actors, something like

    _if collision wall and actor.position.x > 10 and actor.position.x < 1014

    • Bounce
      endif_
  • GamingtilDawnGamingtilDawn Member Posts: 104

    Thank you @ThoPel those are great ideas.

Sign In or Register to comment.