exists

  1. H

    When to check if something exists?

    I am wondering when to use script_exists(), or instance_exists(), or sprite_exists(), etc. Like script_exists for example, do I use it for every script?
  2. S

    Legacy GM Check if sprite is loaded with sprite_add()

    does anybody know how to check if sprite is loaded with sprite_add()? I want to make sure I'm not adding multiple of the same sprites
  3. H

    Why is my surface code giving me an error?

    I'm sure this has been asked before, and I'm sure (as usual) it'll be something simple and silly, but I'll ask anyway because it seriously has me stumped. The crazy thing is that I actually use an extremely similar code and it ran perfectly fine! As the topic title suggests, it's a surface...
  4. S

    Legacy GM ds_exist requires already set variable?

    umm can someone tell me how to properly use ds_exists to check if there is a ds_struct already set? the problem comes when you set the variable that your checking with ds_exist to a value. this overwrites the var that holds the data_struct, making ds_exists pointless it like you would need to...
Top