40
lxmcf
5y

The fuck is this shit?!?!?!

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

Comments
  • 13
    🤔Schrödingers lockon?
  • 8
    @C0D4 I meant more the syntax format but hey ¯\_(ツ)_/¯
  • 3
    @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"
  • 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 ?
Add Comment