G
Guest User
Guest
in my project i have a piece of code that relys on obsolete compat functions when imported into GMS2
this is called when a creature is bleeding, and all it is supposed to do is "stain" the tile with whatever color the blood is.
would a surface be more ideal for this sort of thing instead? or is there a way to do this with the new asset layer (since tiles don't seem to be blend-able anymore) that doesn't involve looping through every single asset on a layer and comparing x/y coords to find the one i'm looking for? or some other method i'm not thinking about.
Code:
var tile = tile_layer_find(1000000, x, y);
if(tile != -1 && tile_get_blend(tile) != -1) {
tile_set_blend(tile, blood_type); }
would a surface be more ideal for this sort of thing instead? or is there a way to do this with the new asset layer (since tiles don't seem to be blend-able anymore) that doesn't involve looping through every single asset on a layer and comparing x/y coords to find the one i'm looking for? or some other method i'm not thinking about.