安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题
The easiest way to fix this is to quite simply make sure that your declaration event happens first no matter the scenario... one way to do this is to declare your globals in the room itself (the room is an object), another way is to have a small splash screen with only one object before your main game that declares ALL the variables and once done, warp to your desired first screen.
Now, I did find a 'partial' solution. I went into the room creation code for room1, which is where the player object is. And in - there - I put the global variable declarations, and then it worked fine. So.. is it possible that global variables are only global to the room they're created in? This is very frustrating.. in normal C/C++ programs if you make a global variable it's global everywhere!!
Double check to see if there's a spelling error, and if that doesn't work - take a screenshot of the actual error (or copy/paste the text) so we can analyze it.
If you look I've included the entire project file as a .zip above your comment. I did indeed try that, and it still didn't work!