Animation help
kajuto
Member Posts: 314
Hi everyone .! Recently I made 3 actor, one Left Button , second one Right Button and third one is a character, when the first two actor touch it will move left or right and it's fine but I want to put a Animation Behavior of the character simulating that is runnin either left or right. Where should I put the animation behavior and how? Please explain step by step please
Comments
animate
you;ll have to draw the character;s animation yourself though
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Link - http://forums.gamesalad.com/discussion/38132/gs-tool-box-a-free-mega-template-ready-now/p1
0 = stand still
1 = run Left
2 = run Right
on leftButtonActor:
Rule: when
Event: touch is pressed
--changeAttribute: game.touchFlow To: 1
ah … here is a demo: http://www.mediafire.com/?rgel884lpf3myb9
(sssh! I swiped two images of the little blue guy from GS Platformer Template … don't tell @SSS … I am in enough trouble!)
@};- MH
Timer Actor
-display text
- abs(prec(game.my Timer,1))
-change att
- gamestarttime to game.time
-Rule
-Att gamemytimer > 0
-constrain att
-game.mytimer to 40-(game.time-gamestarttime)
-Rule
- Att gamemytimer=0
-Timer
-after 2 seconds
-pause game
all that code show from 40 second to 0 and show a pause scene, but i want the display text show the minute to 0 ...help??
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Do it ?