Search:
Type: Posts; User: Chiapa
Search:
Search took 0.06 seconds.
-
Hi, thanks for your reply
import flash.utils.getTimer;
private var _startTimer:uint;
var elapsedtime;
public class Main extends MovieClip
{
-
Hi again,
in my game (where alienships fly across the screen and I shoot them with a crosshair) I need to display the time elapsed since the start of the game. Here is the code of the Main class,...
-
Yeah, I had that thought too, working on the fla file or merging the classes in one.
Thanks for your help and trouble
Chiapa
-
Thanks Steven
I had already tried that and it worked. The static variable worked fine, someone in another forum suggested it first but thanks anyway.
Chiapa
-
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.ui.Mouse;
import flash.events.TimerEvent;
import flash.utils.Timer;
import flash.events.Event;
import...
-
This is the Main class:
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.ui.Mouse;
import flash.events.TimerEvent;
import flash.utils.Timer;
-
-
I can't get it to work: here's some code of the main class:
public class Main extends MovieClip
{
var total:int = 200;
var naves = new Array;
var tempo:Timer;
var tempo2:Timer;
...
-
I declared it public, in the Main class, and in the spaceship class, in the function that removes the spaceships when I click them, the code to increment the points variable. This is the error I got:...
-
Well, the event listener is in the class "Spaceship", not in "Main", and therefore I can't use that variable in the class Spaceship (or I don't know how to)
The code:
Two classes: Main and Nave...
-
Hi everyone,
I've got this game and I'm stuck with what I think it may be a very simple problem to solve. Yet, I haven't been able to do it. I need a score counter for a shooter game: there are...
-
Hi steven, thanks for your reply
problem is, if I do that the score will increment each time I shoot, and not each time I shoot a spaceship.
Sorry, I tried doing that in the class Spaceship but...
-
However, now I need something to stop the game. Like a timer.
I'm also trying to make a point counter. First, I just want to trace the number of ships that the player kills, then I'll think about...
-
Thanks again, I now have what I need.
Cheers,
Chiapa
-
Thanks for helping.
I managed to do it.
Chiapa
-
Hi everyone,
I've got a first frame in the timeline in which the stage has a play button that, when pressed, advances the timeline to the next frame, where the game should actually start, with...
-
Hi, I'm making a simple game using Actionscript 3 and, when I run it, it starts automatically. I need to, when it's run, to have a screen with a button that needs to be pressed for the game to...
-
Hi everyone,
The game I'm making is a shooter: alienships fly across the screen and when I click them, they die.
I want to have a dynamic text that keeps score of the number of ships I kill,...
|
Click Here to Expand Forum to Full Width
|