标签:中文 die studio https UNC instance and efi val
This value sets the angle (rotation) of the sprite and is measured in degrees, with the right being 0o, up being 90o, left being 180o and down being 270o. Set this variable to 0 to reset the sprite to be drawn as was defined in the sprite editor. Please note that for changes in this variable to be visible, the instance should have either no draw event (and so GameMaker Studio 2 will default draw the sprite) or be drawn using one of the extended drawing functions like draw_self() or draw_sprite_ext().
在draw事件中加上draw_self();
即可。例:
// draw life
draw_text(360+200*pad_num,20,string(color[pad_num%4])+":"+string(life));
draw_self();
标签:中文 die studio https UNC instance and efi val
原文地址:https://www.cnblogs.com/hardcoreYutian/p/13270220.html