Be a Supporter!

mouse click

  • 320 Views
  • 6 Replies
New Topic Respond to this Topic
ElPimpO
ElPimpO
  • Member since: Feb. 4, 2006
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
mouse click 2006-02-14 20:42:16 Reply

for my whack a cream game, how do u make it so when u click it plays a new frame in the mouse? like a hammer?

Max-Vador
Max-Vador
  • Member since: Nov. 12, 2005
  • Offline.
Forum Stats
Member
Level 13
Animator
Response to mouse click 2006-02-14 20:58:42 Reply

on(press){
gotoAndStop(nextFrame);
}

that goes on the mouse MC

Khao
Khao
  • Member since: Sep. 20, 2003
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to mouse click 2006-02-14 21:06:33 Reply

At 2/14/06 08:58 PM, MaxV wrote: on(press){
gotoAndStop(nextFrame);
}

that goes on the mouse MC

what the fuck?? you can't put nextFrame inside gotoAndStop -_-

on(mouseDown){
play();
}

boney-man
boney-man
  • Member since: Jul. 24, 2005
  • Offline.
Forum Stats
Member
Level 11
Musician
Response to mouse click 2006-02-14 21:37:49 Reply

Well, if you have a mouse movie clip, on frame 1 put a stop(); action, then on frame 2 continue with the animation. Then, on the _root. level movieclip (the main clip on the stage), put this:

onClipEvent(mouseDown){
this.gotoAndPlay(2);
}


#1286129 // soundcloud.com/1shibumi

BBS Signature
boney-man
boney-man
  • Member since: Jul. 24, 2005
  • Offline.
Forum Stats
Member
Level 11
Musician
Response to mouse click 2006-02-14 21:39:43 Reply

This is the correct way to do it. The 2 above are wrong.


#1286129 // soundcloud.com/1shibumi

BBS Signature
reality-check7
reality-check7
  • Member since: Nov. 30, 2005
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to mouse click 2006-02-14 21:45:38 Reply

At 2/14/06 09:39 PM, boney_man wrote: This is the correct way to do it. The 2 above are wrong.

actually, no, you're wrong.

reality-check7
reality-check7
  • Member since: Nov. 30, 2005
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to mouse click 2006-02-14 21:52:19 Reply

At 2/14/06 09:45 PM, reality_check7 wrote:
At 2/14/06 09:39 PM, boney_man wrote: This is the correct way to do it. The 2 above are wrong.
actually, no, you're wrong.

oh, whoops, I was looking at a different code. he is right. nevermind me.