- Code: Select all
if (transp==0) {
if (distance(x, y, COLBOX.x, COLBOX.y)<325) {
timer++; if (timer==1 || timer==11) {
CreateActor("TEST", "Skeloton 1 Shot - Sprite Sheet", "(none)", "(none)", 0, 0, false);
}
if (timer==100) {
timer=0; }
if (enhp<2 && yvelocity<2 && timer2==0) {
if (x<COLBOX.x) {
x+=1;
ChangeAnimation("Event Actor", "WalkRight", NO_CHANGE);
}
if (x>COLBOX.x) {
x-=1;
ChangeAnimation("Event Actor", "WalkLeft", NO_CHANGE);
}
}
if (enhp>=2) {
ChangeAnimation("Event Actor", "Death", NO_CHANGE);
CreateActor("Explosions", "FIRE", "(none)", "(none)", rand(14)-7, rand(14)-7, false);
}
if (timer2==20) {
timer2=0; }
yvelocity+=.4;
}
if (timer2>=1) {
timer2++;
}
}
r+=50;
g+=50;
b+=50;
if (RESPAWN==1) {
transp=0;
enhp=0;
timer=0;
timer2=0;
timer3=0;
xvelocity=0;
yvelocity=0;
SKELIACTIVE=0;
x=SKELYX;
y=SKELIY; }
Alright so heres my problem, the skeleton SLIDES when moving right! This happened out of noware too! Last night it was perfectly fine, now I open up game editor this morning to play test it (Didn't even LOOK AT any code), and suddenly the skeletons Spaz out when walking left! not right but left! Any help?... This is the skeletons AI code.