• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - GML Visual "Or" command?

T

Treyn

Guest
Is there a way to do 'or'?
Example:
If obj_wall OR obj_pipe
are not at x+1

Jump to x+1

Right now I'm doing a bunch of if, else statements, but the logic is getting a bit on the intricate side. It just strikes me as kind of weird that there's not a way to do basic boolean functions in drag/drop. No 'and/or/xor/nor' seems strange.
 

FrostyCat

Redemption Seeker
Or you can put both objects under the same parent (say obj_solid), then check for that one parent.
 
Top