Recent posts by DejM on Kongregate

Flag Post

Topic: Game Programming / Attack animation doesn't work

In my Player movie clip I puted a code like this:
onClipEvent (load) {
gravity = 0;
runspeed = 14;
jumpHeight = 10;
waterr = .7;
waterrspd = runspeed/1.5;
setrunspeed = runspeed;
scale = this.xscale;
hitTestVariable = 2;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
gravity++;
this.y += gravity;
while (root.ground.hitTest(this._x, this.y, true)) {
this.
y
-;
gravity = 0;
}
if (root.water.hitTest(this.x, this.y, true)) {
if (gravity>0) {
gravity *= waterr;
}
runspeed = waterrspd;
} else {
runspeed = setrunspeed;
}
if (Key.isDown(Key.RIGHT)) {
this.x = runspeed;
this.xscale = scale;
if (root.ground.hitTest(this.x, this.
y
3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(Key.LEFT)) {
this.x -= runspeed;
this.xscale = -scale;
if (root.ground.hitTest(this.x, this.y+3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else {
if (
root.ground.hitTest(this.
x, this.
y+3, true) && !Key.isDown(79) && !Key.isDown(73)) {
this.gotoAndStop(3);
}
if (Key.isDown(90)) {
this.gotoAndStop(4);
}
}
if (
root.ground.hitTest(this.
x+(
width/2)+hitTestVariable, this.
y-(
height/2), true) || root.ground.hitTest(this.x+(_width/2)+hitTestVariable, this.y-(height/6), true) || root.ground.hitTest(this.x+(width/2)+hitTestVariable, this.y-height, true)) {
this._x -= runspeed;
}
if (
root.ground.hitTest(this.
x-(
width/2)-hitTestVariable*2, this.
y-(
height/2), true) || root.ground.hitTest(this.x-(_width/2)-hitTestVariable*2, this.y-(height/6), true) || root.ground.hitTest(this.x-(width/2)-hitTestVariable*2, this.y-height, true)) {
this.x += runspeed;
}
if (root.ground.hitTest(this.x, this.
y-
height, true)) {
gravity = 1;
}
if (
root.gravity
lift.hitTest(this.
x, this.
y, true)) {
gravity -= 2;
}
}

In frame 4 there is an attack animation, but when I use it with “Z” button, the animation don’t work, it stop on frame 1. What’s wrong with the code? The walking animation work fine.

 
Flag Post

Topic: Technical Support / Amount net paid

No, it isn’t.

 
Flag Post

Topic: Technical Support / Amount net paid

What do you mean?

 
Flag Post

Topic: Technical Support / Amount net paid

In My Revenue Report under the “Amount net paid:” there’s some money. But there’s no money on my paypal. What’s the problem?

 
Flag Post

Topic: Technical Support / U.S. tax id...

So, if I don’t have an U.S. tax id number I can’t take my money?
I’m from Poland, and if I must have this U.S. tax id number, how can i get it?

 
Flag Post

Topic: Technical Support / Can someone delete my games?

I mean, can someone delete “There’s nothing there” and “There’s nothing there II”?
Please?

 
Flag Post

Topic: Kongregate / Can someone delete my games?

I mean, can someone delete “There’s nothing there” and “There’s nothing there II”?
Please?

 
Flag Post

Topic: Technical Support / How can I remove my game?

@ZShadow Thank you very much…

 
Flag Post

Topic: Technical Support / How can I remove my game?

I put my test version game on kongregate for see, how it’s look. Now I can’t remove this .__. How can remove my game!? Please, help me!