I put limits as an actor on the screen

I put limits as an actor on the screen

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited September 2016

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Lol @Socks. I was baffled for a moment there.

    @oswaldev018 Can you explain more about what you mean? Are you wanting to limit the position of the actor? Is the actor moving?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • oswaldev018oswaldev018 Member Posts: 34

    @tatiang said:
    Lol @Socks. I was baffled for a moment there.

    @oswaldev018 Can you explain more about what you mean? Are you wanting to limit the position of the actor? Is the actor moving?

    when my player reaches the bottom of the screen in position and does not slip out

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    You can add a "barrier" actor and use the Collision behavior to bounce the player actor away or you can do something like constrain self.Position.Y to max(0+self.Size.Height/2,self.Position.Y).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • ToqueToque Member Posts: 1,188

    If actor self y position =< 0
    Constrain self position y to 20

    Will stop it at bottom.

    Numbers you can change.

    Keep it from" slip out. "

Sign In or Register to comment.