need help with an old tutorial

so i've been following an old tutorial that used pre 2.3 GM :
and every time i try to run it from where i currently am i keep getting this error
___________________________________________
############################################################################################
ERROR in
action number 1
of Step Event0
for object oPlayer:

Variable oPlayer._oldSprite(100045, -2147483648) not set before reading it.
at gml_Object_oPlayer_Step_0 (line 27) - if (_oldSprite != sprite_index) localFrame = 0
############################################################################################
gml_Object_oPlayer_Step_0 (line 27)
here's the file of my project if that'll help anyone willing to tell me what i did wrong
https://mega.nz/folder/Kjh2jZBL#vExg5nZZRvjBuu5PgvoEgw
 

RBRFull

Member
Found three typo's in the scripts:

oPlayer's step event, line 20:
GML:
var_oldSprite = sprite_index;
should become
GML:
var _oldSprite = sprite_index;
playerAnimate script, line 11:
GML:
localFrames -= _totalFrames;
should become
GML:
localFrame -= _totalFrames;
playerAnimate script, line 12:
GML:
}else animationEnd = flase;
should become
GML:
}else animationEnd = false;
The sprite is still not correctly displaying, but it at least can help you along.
 
Last edited:
Found three couple of typo's in the scripts:

oPlayer's step event, line 20:
GML:
var_oldSprite = sprite_index;
should become
GML:
var _oldSprite = sprite_index;
playerAnimate script, line 11:
GML:
localFrames -= _totalFrames;
should become
GML:
localFrame -= _totalFrames;
playerAnimate script, line 12:
GML:
}else animationEnd = flase;
should become
GML:
}else animationEnd = false;
The sprite is still not correctly displaying, but it at least can help you along.
thanks alot for the help ^^
glad that i only made like 3 mistakes (i kinda thought my entire code was somehow messed up)
 
Top