for some reason my character wont collide with the ground, im not sure why, im helpless at game maker so i don't know how to fix it all i can tell you is that i have some sort of gravity on it, i took it from a freinds game that was almost completely different to mine beacuse i didnt know how to make gravity work. im sorry if i sound stupid, but i really am stuck.
I have a problem with jumping on my game i am using a script that i found somewhere on the forums for gravity and it was working but every time i change something it gives me a different error
if keyboard_check(ord("W") && !keyboard_check(ord("S")
)
)if Jump>0
{
vspeed=-10
Jump-=1
}
if place_free(x,y+.5)
{
gravity=0.5
}
else
{
gravity=0
}
that is the script i am using
ERROR in
action number 1
of Step Event
for object Obj_char_right:
In script script0:
Error in code at line 20:
)if Jump>0
^
at position 6: Unknown variable Jump
that is the error, any suggestions? im not quite sure what the problem is, please note im NEW to this so if its a completely obvious fix, don't hate