How to flip an actor?
kielhanson
Member Posts: 12
Hi all.
I've just started my own project and it will have a lot of cards on the screen and when you touch and release a card (iPad) it'll flip over to reveal the other side.
I've been searching a lot but can't find how to do this or what rule to apply. I've tried changing the anchor points but it doesn't help for the rotate rule.
Can anyone help me out?
Thanks!
I've just started my own project and it will have a lot of cards on the screen and when you touch and release a card (iPad) it'll flip over to reveal the other side.
I've been searching a lot but can't find how to do this or what rule to apply. I've tried changing the anchor points but it doesn't help for the rotate rule.
Can anyone help me out?
Thanks!
Best Answers
-
britto24 Posts: 35Hi kielhanson,
I would use the animate attribute.
Create Rule, When Actor receives touch is pressed...
add attribute Animate (drag your flipping animation sequence inside of the animate attribute)
This way, when you touch the card it will animate the flip to reveal the other side.
This is if you have created an image sequence for you flipping animation...
Hope that helps! -
JohnPapiomitis Posts: 6,256Select the cards width attribute from the drop down in the expression editor. Theres no scale attribute its width and height, and you cant just type them in you ahve to select it
Answers
http://forums.gamesalad.com/discussion/13/trying-to-create-a-card-flip-effect
Good luck
when you say 'drag your flipping animation sequence inside of the animate attribute', is this something I'll have to create in Photoshop or After Effects? What should I export it as?