Programming help

NimNom1234

Member
I wanna make this kinda quick so

if place_meeting(x,y+1,obj_floor) || if place_meeting(x,y+1,obj_floor_slant_up) || if place_meeting(x,y+1,obj_floor_slant_down)
{
falling = false
}
else {
falling = true
}

Whats wrong with this code? I can't figure it out. Thanks :)
 
S

Sinaz20

Guest
You only use one "if" followed by the complete expression when writing if/then conditionals:

If (expression || expression || expression) {
stuff
}
 
Top