!!NEED HELP!!
- jjrocks2002
-
jjrocks2002
- Member since: Jul. 7, 2002
- Offline.
-
- Forum Stats
- Member
- Level 16
- Blank Slate
HI I WAS WONDERING HOW YOU CAN CHANGE ANIMATIONS.. LIKE WHEN YOU WANNA SHOOT (FOR EXAMPLE RAMPAGE IN NEWGROUNDS OR THE GAME GTA1) WHEN HE SHOOTS AND STUFF...
- DaveS2357
-
DaveS2357
- Member since: Jul. 1, 2003
- Offline.
-
- Forum Stats
- Member
- Level 27
- Blank Slate
first thing: cut the caps
now, make your player's clip, then label a frame in that clip "shoot" (no quotes in the label)
now go to the main timeline and open the clip's actions and paste this script
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE)) {
this.gotoAndStop("shoot");
}
}
the way it works is kind of self explanatory once you read it, but hit space and it'll go to that frame (better if you make the animation a clip, but you can just change that to gotoandplay if you have it in the clip's timeline)
- jjrocks2002
-
jjrocks2002
- Member since: Jul. 7, 2002
- Offline.
-
- Forum Stats
- Member
- Level 16
- Blank Slate

