Windows Errors happen when I try and play my game.

X

x79514_lol

Guest
so basically when I run my game I get an error message and I don't know how to fix it. HELP PLZ!!!!!!!!!!!!!! I have a deadline of tomorrow for my game! (BTW i was using a youtube guide by gravityshift games for making the chrome dinosaur game.)

Screenshot of Error.png


V v


___________________________________________
############################################################################################
ERROR in
action number 1
of Create Event
for object <undefined>:

Variable <unknown_object>.y(1, -2147483648) not set before reading it.
at gml_GlobalScript_scr_collision_check (line 1) - if (place_meeting(x, y + vspd, oBlock))
############################################################################################
gml_GlobalScript_scr_collision_check (line 1)
also help I accidently deleted most of my script.
Here's what is left:
oops thats wrong code for what I have left.
Here ACTUALLY what I have left:
if (place_meeting(x, y + vspd, oBlock))
{
while (!place_meeting(x, y+sign(vspd), oBlock))
{
y += sign(vspd)
}

vspd = 0;
}
y += vspd;
 
Top