码迷,mamicode.com
首页 > 其他好文 > 详细

GameMaker Studio2 疑难杂症

时间:2020-07-09 09:21:11      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:中文   die   studio   https   UNC   instance   and   efi   val   

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 疑难杂症

标签:中文   die   studio   https   UNC   instance   and   efi   val   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!