two way horizontal movement

serahzaveri

  • 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

LIBERADO

  • *
  • Posts: 2604
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.

JeffreyDriver

  • Posts: 1873
There's two built-in actor behaviours that you can use. 'Cannot Exit Scene' and 'Cannot Exit Screen'.
Current Projects:
Horror Point & Click Episode 1.
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

Vaibhav Sangwan

  • Posts: 157
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"