• Hey! Guest! The 40th (!!!) GMC Jam will take place between February 25th, 12:00 UTC to March 1st 12:00 UTC. Why not join in this very special anniversary jam! Click here to find out more!

Windows Errors happen when I try and play my game.

x79514_lol

Member
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