Shootorial #6: ActionScript 3
by Moly
Shootorial #6: ActionScript 3
Shootorial #6: ActionScript 3 のタグ
説明
初心者向けのFlashゲーム制作チュートリアル。スコア表示、体力メーター、ゲームオーバーメニュー(「もう一度プレイ」ボタンやリセットロジック)を解説!Kongregateの許可を得て制作。
遊び方
Shootorialsをすべてクリアして、自分だけのFlashゲームを作ろう!
FAQ
Shootorial 6(ActionScript 3)とは?
Shootorial 6(ActionScript 3)は、KongregateのShootorialチュートリアルシリーズの一部としてMolyが開発したFlashベースのスペースシューティングゲームで、ActionScript 3によるゲーム制作を学べます。
Shootorial 6(ActionScript 3)の遊び方は?
Shootorial 6では、キーボードで宇宙船を操作し、敵の波を撃破しながら敵の攻撃を避けるクラシックなアーケードシューティングです。
Shootorial 6(ActionScript 3)の主な特徴は?
Shootorial 6では、プレイヤーの残機表示やリスタート機能、UI追加など、シリーズ前作の機能(シューティングや敵の波)に加えて新たな要素が追加されています。
Shootorial 6(ActionScript 3)に進行やスコアシステムはありますか?
はい、Shootorial 6には敵撃破でスコアが加算され、残機数も管理されるなど、ゲームセッション内での基本的な進行要素があります。
Shootorial 6(ActionScript 3)はどのプラットフォームで遊べますか?
Shootorial 6(ActionScript 3)はKongregate経由でFlash対応ブラウザで遊べる、主にウェブデスクトップ向けのゲームです。
コメント
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