At 2/4/09 09:07 AM, VoidWhisperer wrote:
won't you help someone who is new to flash :(
It's only been 3 minutes, we aren't paid to solve your questions in a minute.
Make it in a game so that when someone is not touching a surface(ex. something named walk) they, fall but they dont fall when there jumping...
if (!character.hitTest(walk)){
//fall
}
Either you code each animation differently (split into MCs with their own codes), or you have a variable that tells when the character is jumping.
if (!character.hitTest(walk) && !isJumping){
//fall
}else if (!character.hitTest(walk) && isJumping){
//dont fall
}
---
How would i make it so when your press spacebar your person jumps..
if(Key.isDown(32)){
//jump
}
Or, more propely:
var keyListener:Object = new Object();
Key.addListener(keyListener);
keyListener.onKeyDown = function(){
if(Key.getCode() == 32){
//jump
}
}
ib4itsnotworkinghowtomakecharacterjump