Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

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?


  • ThoPelThoPel GermanyPosts: 184Member, PRO

    Just a few ideas:

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

    • 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
  • GamingtilDawnGamingtilDawn Posts: 104Member

    Thank you @ThoPel those are great ideas.

Sign In or Register to comment.