• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

bracket

  1. E

    GML Create custom function with curly brackets?

    All functions can do is execute code or return a value: func(); x = func(); What if I want to make a function with curly brackets like the "if" function: if true { code; } or "repeat" which has both normal and curly: repeat(420) { code; } or "do/until" which is 2 functions in 1: do { code; }...
  2. Kyrieru

    Where is the bracket folding option?

    It says the option to disable bracket folding was added, but I can't find it. Where is it in the options?
  3. S

     Highlighting brackets

    If anyone has worked in IntelliJ, then you'd know that when you put the end bracket '), }' doesn't matter which one, it highlights the opening bracket. In GMS2 you have to go one insertion/space before the ending bracket, and it will highlight the starting bracket then. I don't want to have to...
  4. Dr_Nomz

    GML [SOLVED] Does it matter how I use my brackets?

    tl;dr: No it doesn't. [/thread] I usually do my statements like this: switch (npc_state){ rar } But I've also seen them like this: switch (npc_state) { rar } So does it matter? Does it do or change or mean anything? Also is there a term for how the brackets are used?
  5. Dr_Nomz

    GML using brackets in IF statements? (does it matter?)

    So this is how most of my IF statements look: if (keyboard_check(vk_shift) == true) But, does it NEED brackets? And if so, why? What's the difference with or without them? Should I always use brackets?
  6. A

     Code editor QoL suggestion: Auto-match brackets, auto-indent

    In most IDEs I've worked in, all brackets ("()", "[]", "{}") would be auto-completed; that is, any time you entered the left one, the right one would be automatically added, and the cursor would be put in between the two. Similarly, any time you pressed enter after adding a "{", the next line...
  7. L

    [Solved]How to display parenthesis?

    I'm not good at English .Please understand it. how to display parenthesis at string? - "(" and ")" When I use parentheses, then they disappear. str = "(" + string(123) + ")"; draw_text(100,100,str); then only 123 appear. "\(" also don't work. please help me. I use GMS: pro v1.4.1757 Thank you...
  8. D

    Windows Tournament Bracket Generator

    Hey everybody! Right now I'm trying to build a tournament bracket generator similar to "challonge." I can't figure out how to make a system though the bracket. I currently have an input system for players to enter their name so it gets saved to an array which i capped to 256 cause I don't think...
Top