首页 > 技术文章 > GameMaker Studio2 疑难杂症

hardcoreYutian 2020-07-09 00:53 原文

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 0º, up being 90º, left being 180º and down being 270º. 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();

绘制score出现重影

GMS2 绘制score出现重影

版本控制(看帮助文档)

版本控制
我踩坑后学会的两点(以码云为例):
1.添加认证的时候,比如https认证,要选择具体仓库的地址,下面输入你的码云用户名和密码。我尝试选择码云主页面的地址是无效的。
2.Create Project Repository没啥用,你应该Import Project into Repository,这里的Project是你本地的工程,Repository是你在码云创建的仓库。

切换精灵时出现碰撞盒问题

把object的碰撞盒设置为特意制作的碰撞盒精灵。

推荐阅读