#asset_get_index problem

2 messages · Page 1 of 1 (latest)

delicate pilot
#

I'm trying to make this object draw an extra sprite that uses the same sprite index as the object but adds on "_head" to it using asset_get_index. But for some reason, the game can not find the sprite.

It works when I set headSprite to asset_get_index(string("spr_tellieIdle")+"_head") and when I set it to asset_get_index("spr_tellieIdle_head") but when I set it to asset_get_index(string(sprite_index)+"_head") it doesn't work.

If anyone knows what to do some good ol help would be appreciated!

undone marsh