ติดตั้ง 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!