有大佬知道SteamAPI的成就系统怎么用么
gamemaker吧
全部回复
仅看楼主
level 1
我的游戏已经上架Steam并且已经有一个API名为"ACH_NEW"和"ACH_HOEL"的成就
游戏开头写了
global.steam = false;
if os_type = os_windows{
if steam_initialised(){
if steam_stats_ready() && steam_is_overlay_enabled(){
global.steam = true;
}
}
get_ach("ACH_NEW");
mod_loader();
}
这么一段
然后get_ach()这个Script写的是
if global.steam{
if !steam_get_achievement(argument0){
steam_set_achievement(argument0);
}
}
这么一段
其他地方有个能重复碰的东西有写
if place_meeting(objplayer) && global.steam{
get_ach("ACH_HOEL")
}
这么一段
确实游戏已经接通了steam(steam_initialised)而且global.steam的值也是1
而且代码都是按照F1教程写来的
确认有安装新版的STEAM API
为什么,在最后steam_set_achievement(argument0);这一段是完全没有任何反应的?
大佬求助啊。。。
2019年08月26日 12点08分 1
1