i tried to make sure that when my circle hits the fblue platforms(which are in the floors array) that it would stop its gravity
but the character stops his gravity in mid air reguardless like if i was testing the whole level.
but im not..im testing the blue platforms in the testlevel which the blue platforms are linked to the "ground_blue" class which THAT is linked to the static array called floors(the blue platforms are the only objects in the array)Code:for (var i:Number = 0; i < Main.floors.length; i++) { if (Main.floors[i].hitTestObject(this)) { grav = 0; jumped = false } else { grav++; } }
Whats wrong with my code? Or am i supposed to make a hitTest against the ground_blue class instead of a array.
Here are my files if you need them:New WinRAR ZIP archive.zip
or this link:http://www.mediafire.com/?g7916hzac0xyzit
I know i didnt display(addChild(flor)) the "flor" object which is basically the blue platform
because its already in the "j" movieclip which is linked to the "j" class,just like the circle
and the circle works extacly how its supposed to.