At 6/17/06 10:34 AM, S_Drawk_Cab wrote:
At 6/17/06 08:43 AM, _Paranoia_ wrote:
At 6/16/06 07:03 PM, S_Drawk_Cab wrote:
This is what I have so far:
http://denvish.net/u..Boss_Collab_Part.php
Dude, that's bugging up most heinously! Your engine needs a total rehash.
I know. :/
Can you guys list all the bugs you find so I can fix all of them?
I see the obvious ones like the holding UP & RIGHT at the same time.
I was going to not have DK to be able to turn left but should I?
There isn't any real need for it because there probably won't be anything behind him.
This is my code btw:
http://pastebin.com/714835
dude....all that code for so little? And why are you using so many onClipEvents, you can put all of that code under 1 onClipEvent.
onClipEvent (load) {
speed = 5;
walk = false;
idle= true;
run = false;
jump=false;
gotoAndPlay("Idle");
health=100;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT) and !Key.isDown(Key.LEFT) and !Key.isDown(Key.UP)) {
if(Key.isDown(Key.SPACE)){
gotoAndPlay("Run")
_x += speed*2
}else{
gotoAndPlay("Walk");
_x += speed*2
}
}else if (Key.isDown(KeyLEFT) and !Key.isDown(Key.RIGHT)) {
if(Key.isDown(Key.SPACE)){
gotoAndPlay("Run")
_x -= speed*2
}else{
gotoAndPlay("Walk");
_x -= speed*2
}
}else if(jump == false){
gotoAndPlay("idle")
}
if (Key.isDown(Key.UP) and jump == false){
gotoAndPlay("Jump");
jump = true
}
}
I'm not sure how your Movie Clip is set up, but you can just put _parent.jump = false inside the movie clips frames for when you want jumping to = false
the rest of the code should work as it is, the variables you had were useless for the most part.