element_id

  1. Lady Glitch

    GameMaker Manipulating with Asset Layer elements using Code

    Is there any way to get / change sprite's coordinates / scale / rotation in Asset Layer using code? Something like: var a = layer_get_all_elements(layer_get_id("AssetLayer")); for (var i = 0; i < array_length_1d(a); i++;) { if layer_get_element_type(a[i]) == layerelementtype_sprite {...
  2. R

    GameMaker Move between layers

    Hi, I'm having some troubles with the layer_element_move(); function. Let's hope you can help me. I have 2 layers one for instances that are near a lightsource, and other layer behind the darkness to the instances that are still not lit. So i want to move one instance between layers, if they...
Top