Be a Supporter!

Mouse Cursor type thing

  • 398 Views
  • 7 Replies
New Topic Respond to this Topic
RogerWaters
RogerWaters
  • Member since: Mar. 18, 2005
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Mouse Cursor type thing 2006-02-12 18:48:54 Reply

Does anybody have any advice on how to make a game you know, where you move the mouse cursor along a track and if it goes off, you lose?

Kirk-Cocaine
Kirk-Cocaine
  • Member since: Aug. 17, 2003
  • Offline.
Forum Stats
Moderator
Level 38
Programmer
Response to Mouse Cursor type thing 2006-02-12 18:50:12 Reply

on (rollout){
//actions
}


The water in Majorca don't taste like what it oughta.

| AS3: Main | AS2: Main | Flash Tutorials |

BBS Signature
swedekid
swedekid
  • Member since: Jan. 6, 2006
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to Mouse Cursor type thing 2006-02-12 19:29:46 Reply

What?

Kirk-Cocaine
Kirk-Cocaine
  • Member since: Aug. 17, 2003
  • Offline.
Forum Stats
Moderator
Level 38
Programmer
Response to Mouse Cursor type thing 2006-02-12 19:31:34 Reply

At 2/12/06 07:29 PM, swedekid wrote: What?

What, what?


The water in Majorca don't taste like what it oughta.

| AS3: Main | AS2: Main | Flash Tutorials |

BBS Signature
swedekid
swedekid
  • Member since: Jan. 6, 2006
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to Mouse Cursor type thing 2006-02-12 19:34:15 Reply

Ughh you just confused me darn you Kirk!!

Khao
Khao
  • Member since: Sep. 20, 2003
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to Mouse Cursor type thing 2006-02-12 19:37:40 Reply

At 2/12/06 07:34 PM, swedekid wrote: Ughh you just confused me darn you Kirk!!

make the place where you shouldn't touch a button and put this code in it
on(rollOver){
_root.gotoAndStop(frame of death);
}

Max-Vador
Max-Vador
  • Member since: Nov. 12, 2005
  • Offline.
Forum Stats
Member
Level 13
Animator
Response to Mouse Cursor type thing 2006-02-12 19:38:34 Reply

on(rollout){
gotoAndPlay(game_over);
}

"gameover is your game over frame.

Kirk-Cocaine
Kirk-Cocaine
  • Member since: Aug. 17, 2003
  • Offline.
Forum Stats
Moderator
Level 38
Programmer
Response to Mouse Cursor type thing 2006-02-12 19:40:39 Reply

At 2/12/06 07:34 PM, swedekid wrote: Ughh you just confused me darn you Kirk!!

lol, well Khao just pretty much explained it for me, so thanks Khao, but the topic starter asked the code if the mouse came off the track, so it should be:

on (rollOut) {
_root.gotoAndStop(frame number);
}


The water in Majorca don't taste like what it oughta.

| AS3: Main | AS2: Main | Flash Tutorials |

BBS Signature