Be a Supporter!

!!NEED HELP!!

  • 234 Views
  • 2 Replies
New Topic Respond to this Topic
jjrocks2002
jjrocks2002
  • Member since: Jul. 7, 2002
  • Offline.
Forum Stats
Member
Level 16
Blank Slate
!!NEED HELP!! 2003-09-27 14:39:41 Reply

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
Response to !!NEED HELP!! 2003-09-27 14:48:51 Reply

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
Response to !!NEED HELP!! 2003-09-27 16:58:57 Reply

Sorry about the caps and thanks for your help