constants

  1. Daniel Mallett

    Can anyone explain why the following code alters the mouse cursor? It challenges my understanding of 'constants'.

    if !mouse_check_button(mb_left) { if point_in_rectangle(mouse_x, mouse_y, inside_handle_x1, inside_handle_y1, inside_handle_x2, inside_handle_y2) { obj_controller.controller_settings_handle_id = window_set_cursor(cr_handpoint); }...
  2. Daniel Mallett

    Rename built in constants / macros

    This is a bit of a long shot. Is there a text file somewhere that stores the built-in constants without re-assigning them manually to constants with different names? Actually rename them. You can add code snippets by editing a text file. Hopefully, this can be done.
  3. Bart

    Asset - Scripts Get Shader Constants

    Get Shader Constants This free asset package allows you to get the values of the shader constants as defined by the OpenGL ES spec. It also shows how to get values from the fragment shader using surfaces. The included script shu_get_shader_constants returns a ds_map with all the values...
  4. Daniel Mallett

    GameMaker Constants

    I have a level editor I have created. It loads tiles (Not important right now) and it loads objects like bushes, platforms, switches etc. The locations and other information about these objects are saved to an ini which is then in turn loaded into a separate GMS2 project (The actual game). Now...
  5. X

    GameMaker enemy code isn't a constant?

    i'm trying to make enemy code (i'm using Shawn spalding's tutorial for melee attacks) but when i try to star the game it says the enemy state should be constant. but i can't make it constant because i'm confused. switch (state) { case ENEMYSTATE.FREE: EnemyState_Free(); break; case...
  6. P

    Legacy GM ds_exists argument 1 incorrect type (undefined) expecting a Number (YYGI32)

    I'm getting a strange error when using "ds_exists(ind,type)". https://docs.yoyogames.com/source/dadiospice/002_reference/data%20structures/ds_exists.html Here's the snippet of code: Here's the error message I'm getting, in full: The "type" argument is typed in exactly as the documentation...
  7. Erayd

    Windows What is the constant ev_other?

    When using the 'other' variable, I noticed in the context menu for matching words, there was an option: 'ev_other'. What is that? I searched it in the documentation and got no results. I googled it and got nothing. Any thoughts?
Top