How to create a fast "Cannot Exit Screen"

Xietao

  • Posts: 725
This is the fast cheap and very easy to create a "cannot exit screen"
Create a terrain in your scene aroud the scene, "finish" (check the inspector for more precision)
Free Time:
Monday, Wednesday, Friday: 13h
Tuesday, Thursday, Saturday, Sunday: 7h
Loving Linux...

Xietao

  • Posts: 725
But this affects all actors to collide. (simply create another group for the terrain)
Free Time:
Monday, Wednesday, Friday: 13h
Tuesday, Thursday, Saturday, Sunday: 7h
Loving Linux...

captaincomic

  • *
  • Posts: 6108
Good advice! ;)
Sometimes that's better than using a Cannot Exit Scene behavior that sets x/y of the actor when he is out of bounds, because the terrain solution works better with collisions (and other Box2D physics like joints.)