Wrap restrictions

blendnzjnrblendnzjnr Member Posts: 11
edited January 2012 in Working with GS (Mac)
How could I wrap only the main actor in my game?
So that the main actor can go out the right wall and back in the left ect... while other actors pass through without coming back in the other side ????
Thanks

Comments

  • GLGAMESGLGAMES SingaporeMember Posts: 988
    edited January 2012
    Have something like when actor's position.x =/<0 interpolate position.x to (max of screen width)
    do the same for your actor's position.x =/> (max of screen width) interpolate position.x to 0 or something
    remember to make interpolate duration 0sec else you will see ur actor slowly passing through your scene :P

    Ooops and i forgot for things you don't want to return after it touches edge of screen , set an invisible wall for it to collide with and use rule when collide with wall destroy actor or something.
Sign In or Register to comment.