Wrapping X and Y

BluSpyderBluSpyder Member Posts: 129
edited March 2012 in Working with GS (Mac)
I have certain actors that I need to wrap x and y, but just two actors that I don't want to wrap.

Is there anyway to set those actors apart from the scene wrapping? Or maybe someway to change the wrapping on or off at a certain time on the scene?

Thanks.

Best Answers

  • Braydon_SFXBraydon_SFX Posts: 9,273
    Accepted Answer
    Hi there,

    Yes, put a move behavior in your actor going the direction you want and speed you want.
    Then, figure out the X and Y position of when and where you want it to go back to the other side of the screen. For example: -20 and 50

    Then, create a rule:
    If attribute self.position x is less then -20, change attribute self.position x to the other side of the screen. For example: 520

    This can be used for clouds, the come from the right side of the screen, and go towards the left side.

    Hope this helps.

    Bray

  • MotherHooseMotherHoose Posts: 2,456
    Accepted Answer
    there is no way to change the sceneWrap during runtime.
    and sceneWrap is persistent (constantly affects) for all actors on the scene

    create walls that collide with the 2 nonWrapping actors

    add rules to wrapping Actors for to make the wrap

    quick demo: http://www.mediafire.com/?35ao2djz1j86pjc

    image MH

Answers

  • BluSpyderBluSpyder Member Posts: 129
    not possible?
  • BluSpyderBluSpyder Member Posts: 129
    edited March 2012
    what you both have suggested will work, thank you. I'm just hoping this isn't going to slow the game down with the actors having their own wrapping attributes as compared to just wrapping the scene.
Sign In or Register to comment.