actionscript - needing help!
- Boffomedia
-
Boffomedia
- Member since: Sep. 2, 2004
- Offline.
-
- Forum Stats
- Member
- Level 05
- Blank Slate
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
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
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
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
- byteofthat
-
byteofthat
- Member since: Jun. 7, 2004
- Offline.
-
- Forum Stats
- Member
- Level 14
- Programmer
- Boffomedia
-
Boffomedia
- Member since: Sep. 2, 2004
- Offline.
-
- Forum Stats
- Member
- Level 05
- Blank Slate
lol anyway! back to the topic - help :)
- Boffomedia
-
Boffomedia
- Member since: Sep. 2, 2004
- Offline.
-
- Forum Stats
- Member
- Level 05
- Blank Slate
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.
-
- Send Private Message
- Browse All Posts (13,458)
- Block
-
- Forum Stats
- Moderator
- Level 44
- Game Developer
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
- Deathcon7
-
Deathcon7
- Member since: Oct. 1, 2003
- Offline.
-
- Forum Stats
- Member
- Level 21
- Writer
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
At 10/4/04 03:11 PM, Deathcon7 wrote:At 10/4/04 01:37 PM, Afro_Ninja wrote: onClipEvent(enterFrame){Correction to above code
if (this.hitTest(_root.car))_root.gotoAndStop(10)
}
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.
-
- Send Private Message
- Browse All Posts (13,458)
- Block
-
- Forum Stats
- Moderator
- Level 44
- Game Developer
At 10/4/04 03:11 PM, Deathcon7 wrote:At 10/4/04 01:37 PM, Afro_Ninja wrote: onClipEvent(enterFrame){Correction to above code
if (this.hitTest(_root.car))_root.gotoAndStop(10)
}
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")
- Deathcon7
-
Deathcon7
- Member since: Oct. 1, 2003
- Offline.
-
- Forum Stats
- Member
- Level 21
- Writer
Mah fault, the bracket from the handler threw me off a bit ;) Afro > Deathcon
- Afro-Ninja
-
Afro-Ninja
- Member since: Mar. 2, 2002
- Offline.
-
- Send Private Message
- Browse All Posts (13,458)
- Block
-
- Forum Stats
- Moderator
- Level 44
- Game Developer
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 :)


