Shootorial #6: ActionScript 3
開發者 Moly
Shootorial #6: ActionScript 3
Shootorial #6: ActionScript 3 的標籤
遊戲簡介
這個入門級 Flash 遊戲製作教學涵蓋分數顯示、生命值計、遊戲結束選單及「再玩一次」按鈕和重置邏輯!已獲 Kongregate 授權製作。
玩法說明
完成 Shootorials 學習如何自製 Flash 遊戲!
FAQ
常見問題
Shootorial 6 (ActionScript 3) 是什麼?
Shootorial 6 (ActionScript 3) 是由 Moly 開發、Kongregate Shootorial 教學系列的 Flash 太空射擊遊戲,專注教授 ActionScript 3 遊戲開發。
Shootorial 6 (ActionScript 3) 怎樣玩?
在 Shootorial 6 中,你用鍵盤操控太空船,擊毀敵艦並閃避攻擊,體驗經典街機射擊玩法。
Shootorial 6 (ActionScript 3) 有什麼主要特色?
Shootorial 6 加入玩家生命值、重玩功能及顯示剩餘生命的介面,並保留前作如射擊和敵人波次等功能。
Shootorial 6 (ActionScript 3) 有進階或分數系統嗎?
有的,Shootorial 6 設有分數系統,擊毀敵人可獲分數,並會記錄剩餘生命,為每局遊戲提供基本進度。
Shootorial 6 (ActionScript 3) 可以在哪個平台玩?
Shootorial 6 (ActionScript 3) 可於支援 Flash 的瀏覽器在 Kongregate 遊玩,主要為網頁桌面版設計。
留言
asgerregsa
May. 11, 2013
I have a problem with the game over menu. I called it "GameOverMenu" and its export is "GameOverMenu" - just like in the tutorial. Now when I try to run the game, I get this error: "1120: Access of undefined property gameOverMenu." I get that error 8 times - the number of times "gameOverMenu" is written in my Game.as file. I tried changing "gameOverMenu" to "GameOverMenu" but that didn't help. Can someone please explain what the problem is?
Pengisimo
Jun. 30, 2011
For score format, the code is correct, but the score format code has to be before the score text code because if you are defining a default text format, you need to define it before drawing the text. ALSO, in order to define scoreText's text format, you have to create it first, so replace this line: static var scoreText:TextField; with this:static var scoreText:TextField=new TextField(); in your variables spot. Take that Cantor.
Cantor
Mar. 08, 2010
To answer the one question most people have for this tut, defaultTextFormat is WRONG! instead use: scoreText.setTextFormat(scoreFormat);
Quite a simple little error but causes so much frustration :P
damiller
Oct. 09, 2011
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Game()
polkadex
Nov. 11, 2010
ty very much, :D, I really was in need of a way to show score on the screen. this works great for me. 5/5