draw_text繪制中文
一個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出現重影
版本控制(看幫助文檔)
版本控制
我踩坑后學會的兩點(以碼雲為例):
1.添加認證的時候,比如https認證,要選擇具體倉庫的地址,下面輸入你的碼雲用戶名和密碼。我嘗試選擇碼雲主頁面的地址是無效的。
2.Create Project Repository沒啥用,你應該Import Project into Repository,這里的Project是你本地的工程,Repository是你在碼雲創建的倉庫。
切換精靈時出現碰撞盒問題
把object的碰撞盒設置為特意制作的碰撞盒精靈。