首页 > 其他 > 详细

GameMaker Studio2 疑难杂症

时间:2020-07-09 09:18:25      阅读:87      评论:0      收藏:0      [点我收藏+]

draw_text绘制中文

在GMS2绘制中文

一个xbox手柄被识别为2个手柄

GMS2中一个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 疑难杂症

原文:https://www.cnblogs.com/hardcoreYutian/p/13270220.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!