NONAME01150
New member
Like what i've written above, what (or how) does the following code work? Cause it seems to return either -1 or 1:
I had found this while browsing "SFFG Plus"'s scripts, searching for any way to check for the Y velocity.
The "facing" seems to be referencing the entity property "direction".
I'm just curious on how this piece of code works.
side = (facing == 0) ? (-1) : (1);
I had found this while browsing "SFFG Plus"'s scripts, searching for any way to check for the Y velocity.
The "facing" seems to be referencing the entity property "direction".
I'm just curious on how this piece of code works.