R
RealsLife
Guest
Code:
for(i = 0; i < array_length_1d(menu); i += 1)
{
if(i == selection)
{
draw_sprite_ext( spr_startmenu, 0+i, room_width/2-(sprite_get_width(spr_startmenu)/2), 75+(i*space),1 ,1 , 0, kleur,1);
}
else
{
draw_sprite_ext( spr_startmenu, 0+i, room_width/2-(sprite_get_width(spr_startmenu)/2), 75+(i*space),1 ,1 , 0, kleur,0.4);
}
}
I don't know how I can get the width of every subimage of that sprite my object itself has no sprite. How can I target a specific sprite in the code and say hey game maker give me the width of that subimage from that sprite.