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开发的Flash太空射击游戏,是Kongregate Shootorial教程系列的一部分,主要教授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