【发布时间】:2021-03-26 09:27:24
【问题描述】:
此代码
var within_rangex = is_within(x,o_player.x,PLAYER_REACH);
抛出错误
得到';' (;) 预期的 ','
我不知道为什么,使用幻数时不会抛出错误。
编辑: 定义 PLAYER_REACH 的脚本。
// This Script Contains Code To Create enums And macros
function enums(){
enum states{
normal,
jumping
}
#macro TILE_REFRESH_RATE 10; // How Often Will A Tile Update Accure
#macro PLAYER_REACH 64; // How Far Can The Player Reach
}
【问题讨论】:
-
您需要向我们展示
PLAYER_REACH的定义方式/位置。
标签: function macros game-maker-studio-2 game-maker-language