44
lxmcf
70d

The fuck is this shit?!?!?!

(Code found in a GameMaker Facebook group, in it for the lels)

Comments
  • 14
    🤔Schrödingers lockon?
  • 8
    @C0D4 I meant more the syntax format but hey ¯\_(ツ)_/¯
  • 5
    @lxmcf ive dealt with worse.
    But syntax etiquette seems to be a thing of the pass these days 🙁
  • 3
    @C0D4 *presses F*
  • 6
    -lockon+1? Toggle between 1&0?
  • 0
    Niceeeeeeee.
  • 3
    @ScriptCoded "the compiler will take care of that"
  • 4
    switch (lockon) {

    case false:

    lockon = true;

    break;

    default:

    lockon = false;

    };
  • 3
    Since lockon = !lockon is commented

    And the truly awesome lockon = - lockon +1

    I am guessing that lockon can have truthy values other than true

    So if you have to deal with lockon = 11.5

    Your problem lies elsewhere.

    Can't you do

    lockon = lockon?false:true
  • 3
    @muttley or just locking ^= keyboard_check_pressed (vk_tab);
  • 0
    @lxmcf Yes, depends what you want I suppose. We don't have the context. If the code is actually working looks like changing tab to caps lock, maybe ?
  • 1
    Please comment out the entire code.
Your Job Suck?
Get a Better Job
Add Comment