Quantcast
Channel: Active questions tagged game-maker - Stack Overflow
Viewing all articles
Browse latest Browse all 189

GMS2 returns instance_create_layer :: specified layer "text_layer" does not exist even though the layer exists how do i fix this?

$
0
0

heres the code

var _obj;if (instance_exists(obj_text)) _obj = obj_txt_queued; else _obj = obj_text;with (instance_create_layer(0, 0, "text_layer", _obj)){    msg = argument[0];    if (instance_exists(other)) originInstance = other.id else originInstance = noone;    if (argument_count > 1) background = argument[1]; else background = 1;}with (obj_phae){ if (state != scr_player_state_lock)    {         lastState = state;        state = scr_player_state_lock;    }}

[layers](https://i.stack.imgur.com/9u9tD.png)

I tried removing any extra rooms that were not needed and I tried changing the layer name to something else.

I also tried using var instance_create_layer() but that obviously didn't work


Viewing all articles
Browse latest Browse all 189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>