Constant Flipping

zefrofzefrof Member Posts: 26
edited February 2012 in Working with GS (Mac)
What would be the best ways to make an actor flip 180 degrees every few seconds? Thanks for any help!

Comments

  • CloudsClouds Member Posts: 1,599
    edited February 2012
    1) Inside actors window in Gamesalad make a copy of the actor you want flipped.

    2) Staying in the actors window double click on the copy of the actor and under 'Graphics' click on 'Flip Horizontally'
    now you have two actors, a normal one and a flipped one.

    3) Drag them both into your game layout - making sure they are both in the exact same position.

    4) Then stick this rule on the actor that is on the top.

    image

    Here is an example file:

    http://www.mediafire.com/?k0wn3cojbuuhgvc
  • MotherHooseMotherHoose Member Posts: 2,456
    super and colorful @Tynan

    @zefrof … if your image is not based on a symmetrical area:

    an actorAttribute … real type … name… myTime

    Rule: when
    Attribute: self.Time = myTime+2   (whatever timing you want … even 1.5444999)
    --Rule: when (nested)
    --Attribute: self.Graphics.Flip Horizontally is false
    ---changeAttribute: self.Graphics.Flip Horizontally To: true
    ---changeAttribute: self.myTime To: self.Time
    --Otherwise:
    ---changeAttribute: self.Graphics.Flip Horizontally To: false
    ---changeAttribute: self.myTime To: self.Time

    @};- MH
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited February 2012
    That's was what I was thinking Mother.
  • zefrofzefrof Member Posts: 26
    Thanks for the help @Tynan and @MotherHoose
Sign In or Register to comment.