GameMaker Studio2 疑难杂症
Posted hardcoreyutian
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GameMaker Studio2 疑难杂症相关的知识,希望对你有一定的参考价值。
draw_text绘制中文
一个xbox手柄被识别为2个手柄
在对象的draw事件中绘制文字会覆盖对象的动画,在step中绘制文字无效
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();
以上是关于GameMaker Studio2 疑难杂症的主要内容,如果未能解决你的问题,请参考以下文章
gamemaker studio2 Arena Shooter(竞技场射击)图文教程 5 教程搬运加自己经验
gamemaker studio2 Arena Shooter(竞技场射击)图文教程 3 教程搬运加自己经验
gamemaker studio2 Arena Shooter(竞技场射击)图文教程 8 教程搬运加自己经验
gamemaker studio2 官网第一个游戏的图文教程 Arena Shooter(竞技场射击) 1 教程搬运加自己经验