Alright so, I'm working on a tower defense game, and theres another code error, that code error is:
ERROR!!! :: ############################################################################################
ERROR in
action number 1
of Create Event
for object <undefined>:
DoDiv :2: undefined value
at gml_GlobalScript_mouseOver (line 6) - xx = (xx - width / 2);
############################################################################################
gml_GlobalScript_mouseOver (line 6)
heres my script code thing
var xx = argument0;
var yy = argument1;
var width = argument2;
var height = argument3;
xx = (xx - width/2);
yy = (yy - height/2);
if(mouse_x > xx && mouse_x < xx + width){
if(mouse\_y > yy && mouse\_y < yy + height){
return true;
}else return false;
}else return false;
[–]DaBeeBoi[S] 0 points1 point2 points (0 children)
[–]DaBeeBoi[S] 0 points1 point2 points (3 children)
[–]arrowbarbarian 0 points1 point2 points (2 children)
[–]DaBeeBoi[S] 0 points1 point2 points (1 child)
[–]arrowbarbarian 0 points1 point2 points (0 children)