SubWolf
Member
Hello everyone,
I'm having this problem with GMS2... I have one object that is called to draw a kind of window with buttons and some images (sprites). I draw these different sprites in the "Draw GUI" of the object, something like:
draw_sprite(spr_ball_1, -1, x, y);
draw_sprite(spr_ball_2, -1, x, y);
But let's say that I want different "image_speed" for each one... or I want to check if the spr_ball_1 is in a certain image_index. There's any way I can do this in the Draw GUI of an object that I drawn these two sprites? Or I have to create them separately as 2 instances? Because if I try to use "image_index" or "image_speed" it will return these attributes for the sprite of the object I'm in the Draw GUI... even if it doesn't have any sprite.
I'm having this problem with GMS2... I have one object that is called to draw a kind of window with buttons and some images (sprites). I draw these different sprites in the "Draw GUI" of the object, something like:
draw_sprite(spr_ball_1, -1, x, y);
draw_sprite(spr_ball_2, -1, x, y);
But let's say that I want different "image_speed" for each one... or I want to check if the spr_ball_1 is in a certain image_index. There's any way I can do this in the Draw GUI of an object that I drawn these two sprites? Or I have to create them separately as 2 instances? Because if I try to use "image_index" or "image_speed" it will return these attributes for the sprite of the object I'm in the Draw GUI... even if it doesn't have any sprite.