• Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!

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