安装 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(越南语)
Українська(乌克兰语)
报告翻译问题
In that special case yes, that was the idea that you just put that one script in and you can easily play around without too much configuration.
Make sure the statements under the methods are correctly indentend/shifted. So instead of:
I put the entire script on pastebin just in case so you can try to copy and paste it again from there:
https://pastebin.com/raw/yEAvqYB5
Let me know if that helps you out.
I am sorry,I may not catch the point. The code I copy paste here just rearranged by the forum.My actual code got the right style(space before super).I copy paste your code and seems they are the same
I may did not put the the right things.
Let me repeat my job.
1.create a new file(coffee script) under compoent/scenes/
2.rename it to Component_TestBedBehavior
3.copy/paste the code from here https://pastebin.com/raw/yEAvqYB5 and make sure there is space in front of super()
4.save the game and run a blank game scene.
So the "run game" means what? Does it mean start t he game from any scene or somewhere to active the script?
I made a blank(no tag) new scene and start the game from it(as intro scene),there is nothing showed.
1. It is important you have no intro scene set. Go to Database > System and uncheck Intro Scene.
2. Make sure that your new CoffeeScript file is placed below Component_LayoutSceneBehavior and not above.
Then just start the game by clicking the green play button from the toolbar. Don't worry which start scene you have selected since that scene will not be triggered anyway. Then you should see a red rectangle in the center of the screen.
Let me know if that helps you out.
But I'd like to make minigames in the scene(show and play at the time I require but not only at start) but not just override the startscene.
I'll learn your tutoral first and ask later if got question.Thanks!