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.
@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
Comments
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.
Here is an example file:
http://www.mediafire.com/?k0wn3cojbuuhgvc
@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
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS