I have a game that has 2 sprites:
I was having trouble handling the sprite (spr_SM). And I found that the reason was that I couldn't refer to it.
draw_sprite_ext(spr_Tela,0,room_width/2,room_height/2,10,10,0,c_white,1); help=draw_sprite_ext(spr_SM,0,(room_width/100)*2,(room_height/100)*10,2,2,0,c_white,1); xuxu=sprite_get_name(help); draw_text(room_width-1000,30,xuxu); draw_text(room_width-900,30,help.x);
So, in theory:
But in practice, this is not the case:
(see line 4 of the code)
I looked at the documentation and I don't know what I'm doing wrong:
What I do know is that variables are always getting the first sprite I created (spr_Tela).