actors all wrapping :(

OxygenOxygen Member Posts: 14
edited November -1 in Working with GS (Mac)
hello !!

I put my "wrap X" scene attribute to "true" because i want my principal actor to exit from one side of the screen and re-enter from the other side. It works well.

my problem is that all of my other actors are split (a part on the right side and the other part on the left side...) when they touch one side of the screen.

So does anyone know how my actors can be split to not show the other part in the other side of the screen.

Hope my question is clear enough... sorry i'm french
thanks

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    If you want just your actor to wrap - turn wrap off and put rules in him that say if his X position is less than 0, change x position to 480

    Then also add if his x position is greater than 480, change x position to 0.

    Play with those numbers till you have it working ok.

    If you want *everything* to wrap more smoothly, then perhaps create a 'buffer' - make the screen size slightly bigger e.g. 520 across.

    Then change the camera X origin to 20.

    That *should* do it, depending on the size of all the actors, by having a 20pixel 'buffer' zone each side of the visible playing area.

    Hope that helps!

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • OxygenOxygen Member Posts: 14
    YOU'RE AMAZING !!!

    thanks a lot it works
  • quantumsheepquantumsheep Member Posts: 8,188
    I'm very glad it helped!

    Which system did you end up using?

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • OxygenOxygen Member Posts: 14
    IOS, i'm on an iphone/ipad game
Sign In or Register to comment.