Shootorial #6: ActionScript 3
por Moly
Shootorial #6: ActionScript 3
Tags para Shootorial #6: ActionScript 3
Descrição
Este tutorial inicial de criação de jogos em Flash cobre exibição de pontuação, barra de vida e menu de game over com botão “jogar novamente” e lógica de reinício! Feito com permissão da Kongregate.
Como jogar
Complete os Shootorials e aprenda a criar seus próprios jogos em Flash!
FAQ
O que é Shootorial 6 (ActionScript 3)?
Shootorial 6 (ActionScript 3) é um jogo de tiro espacial em Flash desenvolvido por Moly como parte da série de tutoriais Shootorial no Kongregate, focado no ensino de desenvolvimento de jogos em ActionScript 3.
Como jogar Shootorial 6 (ActionScript 3)?
Em Shootorial 6, você controla uma nave espacial usando o teclado e deve destruir ondas de naves inimigas enquanto desvia dos ataques, em um estilo clássico de arcade shooter.
Quais são as principais características de Shootorial 6 (ActionScript 3)?
Shootorial 6 adiciona vidas ao jogador, a opção de reiniciar e uma interface que mostra o número de vidas restantes, além de todos os recursos dos tutoriais anteriores, como tiros e ondas de inimigos.
Shootorial 6 (ActionScript 3) inclui algum sistema de progressão ou pontuação?
Sim, Shootorial 6 possui um sistema de pontuação que recompensa os jogadores por destruir inimigos e contabiliza o número de vidas restantes, oferecendo progressão básica durante as partidas.
Em qual plataforma é possível jogar Shootorial 6 (ActionScript 3)?
Shootorial 6 (ActionScript 3) está disponível para jogar em navegadores que suportam Flash via Kongregate, sendo projetado principalmente para desktop.
Comentários
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