Script Infunctionality?
- Flaedo
-
Flaedo
- Member since: Feb. 14, 2005
- Offline.
-
- Forum Stats
- Member
- Level 09
- Blank Slate
onClipEvent(enterFrame){
if(hitTest(_root.object1)) gotoAndPlay(2);
}
Alright, this is my script. It is supposed to, when you touch the invisible block, jump foreward to the second frame, and play the rest of the animation (The main character falling to a gorey death).
For some reason, I can pass through the block as if no code is in there. I ran a couple
if(hitTest(_root.object1)) trace(xx);
}
tests, and the script works then.
Helpage?
- Edvin
-
Edvin
- Member since: Feb. 3, 2004
- Offline.
-
- Forum Stats
- Member
- Level 12
- Blank Slate
Try this:
onClipEvent(enterFrame){
if(this.hitTest(_root.object1)){
gotoAndPlay(2);
}
}
- Flaedo
-
Flaedo
- Member since: Feb. 14, 2005
- Offline.
-
- Forum Stats
- Member
- Level 09
- Blank Slate
Nope, that didn't work. Nice try, though.
- Veng3ance
-
Veng3ance
- Member since: Jan. 11, 2006
- Offline.
-
- Forum Stats
- Member
- Level 03
- Blank Slate
change the gotoAndPlay(2) to gotoAndStop(2);
- Flaedo
-
Flaedo
- Member since: Feb. 14, 2005
- Offline.
-
- Forum Stats
- Member
- Level 09
- Blank Slate
Man, this think just does NOT WANT TO WORK.
- Fat-Lifeguard
-
Fat-Lifeguard
- Member since: Jul. 23, 2006
- Offline.
-
- Forum Stats
- Member
- Level 16
- Blank Slate
- WolfAkela
-
WolfAkela
- Member since: Dec. 19, 2005
- Offline.
-
- Forum Stats
- Member
- Level 08
- Blank Slate

