My hitests dont work!

Uh Oh…
my hit test dont work heres a .fla on what im working on but the hero will not hitest with _root.walls.door for some reason <.< please help

http://rapidshare.de/files/17202031/Main.fla.html

link to .fla thnx in advance :smiley:

I can’t figure out where to go download it lol. Could you just post the code where the hitTests are taking place?

i havent put the code in but whereever u put the hitest code it wont work,

btw i have mx 2004 so please dont fix it and put it as a flash 8 format :smiley:

:open_mouth: you wan’t use to just fix the code for you… well i hope someone feels bad for you and does it because im not, go learn actionscript

—/---
agreed also my site don’t work could someone please make a new one for me;)

Lol Ravmaster. No wonder the hitTests don’t work, [U]You don’t have the code for the hitTest![/U]

^:lol:

onClipEvent(enterFrame){
if(_root."movie clip name".hitTest(wall)){
enter code here
}
}

:lol: hehe


onClipEvent(enterFrame){
if(_root."movie clip name".hitTest(wall)){
enter code here
}
}

Make it understandable for him :stuck_out_tongue:


onClipEvent(enterFrame){
if(_root."movie clip name".hitTest(wall)){
when movieclipname hits wall get rebound else go back and refresh target 
then go find wall and hit();
}
}

:wink: :stuck_out_tongue: aahahaua

^:lol: great thread!

:stuck_out_tongue: i know it dont work ive already tried my hitest the code i used i put in the door


onClipEvent(enterFrame){
if(this.hitTest(_root.player)){
_root.gotoAndStop(5);
}
}

Well something like that and no errors came up

why is everyone makibng fun of me :’(

well, cause u need to learn basics first before trying :stuck_out_tongue:

_root.gotoandstop cant -.-

try:


onClipEvent(enterFrame){
if(_root.player.hitTest(this))
gotoAndStop("enterdoor");
}

now call the framenumber 5 enterdoor and it should work i guess

ok it works now but doesnt

_root.gotoAndStop(nextFrame);

work?

lol no.
_root.nextFrame();
'll do it

thanks :wink: it works now :smiley:

lol go buy a book of basics or learn em before asking something like this:p

btw @ joppe how do i make a frame stop form playing?

plx tell me ish n00d :P:P XD uahauaauahah

stop();

? Sorry i dont understand the fun part :confused:

is that meant to make fun of me >< again??

btw i know a lot of the basics i just get stuck with making the codes myself especially if its my own code and i get bad outputs that i cant seem to fix or something doesnt work however hard i try s

be nice to him after all he is a legendary hero of time