I want to put to my actor to limit of movement on the screen
santigrabi
Member Posts: 22
I want to put to my actor to limit of movement on the screen
Comments
What kind of limit?
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
My actor could move in a space of the screen that I determine
This is still not enough info. There are tons of ways to do this with different results. How will your actor move? What controls it?
Basically you can restrict movement with walls if the actor is not linked to the mouse or touch using collide.
If your actor is controlled by mouse or touch you can cut off those constrains with rules based on scene position.
Rule
All
When touch is pressed
When self.position X > 0+(self.size.width/2)
When self.position X < 1024-(self.size.width/2) (iPad horizontally) make this number your scene size
Move code
PS: why are you using two names?
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS