Be a Supporter!

actionscript - needing help!

  • 389 Views
  • 13 Replies
New Topic Respond to this Topic
Boffomedia
Boffomedia
  • Member since: Sep. 2, 2004
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
actionscript - needing help! 2004-10-04 12:09:54 Reply

its quite easy, well hard to novice's..
ive searched around so im not a noob..

ive got a car wich you control with your dir keys - but when i want to go over a certain thing (e.g a lampost or something) i want to make it go to a frame in the movie (e.g a YOU LOSE) page or something. :)

thanks to all that help

Edvin
Edvin
  • Member since: Feb. 3, 2004
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to actionscript - needing help! 2004-10-04 12:14:41 Reply

I'll help you out ! Get to me thru AIM or MSN !

IWantSomeCookies
IWantSomeCookies
  • Member since: Aug. 20, 2004
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to actionscript - needing help! 2004-10-04 12:21:16 Reply

yes I have msn, whats your e-mail?


"Actually, the server timed out trying to remove all your posts..."
-TomFulp

Boffomedia
Boffomedia
  • Member since: Sep. 2, 2004
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to actionscript - needing help! 2004-10-04 12:21:58 Reply

At 10/4/04 12:21 PM, IWantSomeCookies wrote: yes I have msn, whats your e-mail?

lol, its me hes helping with.. anyway ive got yours on your profile ill add you

Boffomedia
Boffomedia
  • Member since: Sep. 2, 2004
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to actionscript - needing help! 2004-10-04 12:34:28 Reply

it wont let me add you.. help :P

byteofthat
byteofthat
  • Member since: Jun. 7, 2004
  • Offline.
Forum Stats
Member
Level 14
Programmer
Response to actionscript - needing help! 2004-10-04 12:50:33 Reply

i dont think he was seriious =S

Boffomedia
Boffomedia
  • Member since: Sep. 2, 2004
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to actionscript - needing help! 2004-10-04 12:51:28 Reply

lol anyway! back to the topic - help :)

Boffomedia
Boffomedia
  • Member since: Sep. 2, 2004
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to actionscript - needing help! 2004-10-04 13:32:07 Reply

At 10/4/04 12:14 PM, -Puzz- wrote: I'll help you out ! Get to me thru AIM or MSN !

ive got your AIM, your not online!!

can anyone help me please

Afro-Ninja
Afro-Ninja
  • Member since: Mar. 2, 2002
  • Offline.
Forum Stats
Moderator
Level 44
Game Developer
Response to actionscript - needing help! 2004-10-04 13:37:34 Reply

give your car an instance name of "car"

put this code on your lampost movie clips:

onClipEvent(enterFrame){
if (this.hitTest(_root.car))_root.gotoAndStop(10)
}

and on frame 10 put your losing screen. Or whatever frame you want


BBS Signature
Deathcon7
Deathcon7
  • Member since: Oct. 1, 2003
  • Offline.
Forum Stats
Member
Level 21
Writer
Response to actionscript - needing help! 2004-10-04 15:11:32 Reply

At 10/4/04 01:37 PM, Afro_Ninja wrote: onClipEvent(enterFrame){
if (this.hitTest(_root.car))_root.gotoAndStop(10)
}

Correction to above code
onClipEvent(enterFrame){
if (this.hitTest(_root.car)){
_root.gotoAndStop(10)
}

Typing too fast there Afro?

SRG
SRG
  • Member since: Aug. 30, 2004
  • Offline.
Forum Stats
Member
Level 02
Blank Slate
Response to actionscript - needing help! 2004-10-04 15:26:39 Reply

At 10/4/04 03:11 PM, Deathcon7 wrote:
At 10/4/04 01:37 PM, Afro_Ninja wrote: onClipEvent(enterFrame){
if (this.hitTest(_root.car))_root.gotoAndStop(10)
}
Correction to above code
onClipEvent(enterFrame){
if (this.hitTest(_root.car)){
_root.gotoAndStop(10)
}

Typing too fast there Afro?

thanks i could use that iswell! :)

Afro-Ninja
Afro-Ninja
  • Member since: Mar. 2, 2002
  • Offline.
Forum Stats
Moderator
Level 44
Game Developer
Response to actionscript - needing help! 2004-10-04 16:01:41 Reply

At 10/4/04 03:11 PM, Deathcon7 wrote:
At 10/4/04 01:37 PM, Afro_Ninja wrote: onClipEvent(enterFrame){
if (this.hitTest(_root.car))_root.gotoAndStop(10)
}
Correction to above code
onClipEvent(enterFrame){
if (this.hitTest(_root.car)){
_root.gotoAndStop(10)
}

Typing too fast there Afro?

actually, no :p

if there is only one statement following an if condition, extra brackets are not required. same with else. This is a perfectly fine piece of code:

if(true)trace("true")
else trace("false")


BBS Signature
Deathcon7
Deathcon7
  • Member since: Oct. 1, 2003
  • Offline.
Forum Stats
Member
Level 21
Writer
Response to actionscript - needing help! 2004-10-04 16:11:56 Reply

Mah fault, the bracket from the handler threw me off a bit ;) Afro > Deathcon

Afro-Ninja
Afro-Ninja
  • Member since: Mar. 2, 2002
  • Offline.
Forum Stats
Moderator
Level 44
Game Developer
Response to actionscript - needing help! 2004-10-04 16:18:08 Reply

At 10/4/04 04:11 PM, Deathcon7 wrote: Mah fault, the bracket from the handler threw me off a bit ;) Afro > Deathcon

It's cool don't worry bout it :)


BBS Signature