Be a Supporter!

Click

  • 499 Views
  • 8 Replies
New Topic Respond to this Topic
Cosmodious
Cosmodious
  • Member since: Mar. 9, 2006
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Click 2006-08-12 07:58:49 Reply

Okay, I know how to make a mouse and so on but how do you make it so when you click it goes to the next frame. Like if you had a gun as a mouse and you clicked a bullet came out or something?

Edvin
Edvin
  • Member since: Feb. 3, 2004
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to Click 2006-08-12 08:03:12 Reply

At 8/12/06 07:58 AM, Cosmodious wrote: Okay, I know how to make a mouse and so on but how do you make it so when you click it goes to the next frame. Like if you had a gun as a mouse and you clicked a bullet came out or something?

I guess it would look like something like this:
_root.onMouseDown = function(){
nextFrame();
}

Cosmodious
Cosmodious
  • Member since: Mar. 9, 2006
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to Click 2006-08-12 08:06:13 Reply

Nope, didn't work

phyconinja
phyconinja
  • Member since: Sep. 18, 2004
  • Offline.
Forum Stats
Member
Level 25
Blank Slate
Response to Click 2006-08-12 08:11:47 Reply

At 8/12/06 07:58 AM, Cosmodious wrote: Okay, I know how to make a mouse and so on but how do you make it so when you click it goes to the next frame. Like if you had a gun as a mouse and you clicked a bullet came out or something?

well.. for shooting games you dont do that.. you duplicate the bullet MC!!

Edvin
Edvin
  • Member since: Feb. 3, 2004
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to Click 2006-08-12 08:12:04 Reply

It's supposed to work. Place it on a frame.

Cosmodious
Cosmodious
  • Member since: Mar. 9, 2006
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to Click 2006-08-12 10:25:07 Reply

Yea okay, I'm using it for the ammo, but it stops working half way, it is on all of the ammo frames but stops in the swf at about 5 ammo

dragonjet
dragonjet
  • Member since: Dec. 2, 2005
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to Click 2006-08-12 11:01:47 Reply

try it here:

http://www.newground../topic.php?id=340603

West-End-Pro
West-End-Pro
  • Member since: Feb. 15, 2006
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to Click 2006-08-12 11:07:19 Reply

onClipEvent(nouseDown){
// do stuff
}

West-End-Pro
West-End-Pro
  • Member since: Feb. 15, 2006
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to Click 2006-08-12 11:08:35 Reply

sorry for the double, but i can't spell. It should be:

onClipEvent(mouseDown){
//Do stuff
}