在我加载游戏后,我会收到下面的错误消息
我把游戏重新加载起来,虽然它再次运行,因为我的黏液敌人仍然在游戏中移动,但是当我离开鼠标点击时,我的游戏就冻结了,我不得不退出游戏。
我访问了game maker社区网站页面,看到了与我有相同问题的其他人,但大多数人说这是game maker studio的“文件>首选项”的内容,在窗口的选项卡上我看到了位置。
我按下了checkwindowsdk按钮,尽管它起作用了,因为我看到Visual studio的状态显示一切正常。我觉得那有用吗?

// In Script scr_check_for_player at line 1 : unknown function or script instance_exist

// In Script scr_enemy_choose_next_state at line 3 : wrong number of arguments for function irandom

// In Script scr_enemy_choose_next_state at line 3 : malformed assignment statement

// Compile Failed - Please check the Compile window for any additional information

最佳答案

据我所知,游戏制作者的功能实际上是instance_exist,试试看它是否正确。另外,在函数instance_exists中搜索参数并正确应用它。

10-08 07:51
查看更多