two way horizontal movement


  • Posts: 1
Hi guys,
I'm new to stencyl and was hoping to get some help. I created a player and it has the two way horizontal movement. This behaviour works very well, however if I keep going in one direction the player moves out of the scene and I am not able to get the character back. Was wondering how to avoid this, so the character gets stopped at the scene dimensions


  • *
  • Posts: 2716
Add also the "Cannot Exit Scene" Behavior.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.


  • Posts: 2262
There's two built-in actor behaviours that you can use. 'Cannot Exit Scene' and 'Cannot Exit Screen'.

Vaibhav Sangwan

  • Posts: 161
if you want to get your character back after leaving screen,
you can just open your actor type,go to events tab,add 'when updating',
insert 'make actor<self> always active' from actor->properties tab

or if you want it to never leave screen just add "cannot exit screen"
Currently working on:-
Feedback will be really appreciated