A Flash Developer Resource Site

Search:

Type: Posts; User: Chiapa

Search: Search took 0.06 seconds.

  1. Replies
    3
    Views
    991

    Hi, thanks for your reply import...

    Hi, thanks for your reply


    import flash.utils.getTimer;

    private var _startTimer:uint;
    var elapsedtime;

    public class Main extends MovieClip
    {
  2. Replies
    3
    Views
    991

    Displaying elapsed time

    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,...
  3. Replies
    13
    Views
    5,362

    Yeah, I had that thought too, working on the fla...

    Yeah, I had that thought too, working on the fla file or merging the classes in one.

    Thanks for your help and trouble

    Chiapa
  4. Replies
    13
    Views
    5,362

    Thanks Steven I had already tried that and it...

    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
  5. Replies
    13
    Views
    5,362

    package { import flash.display.MovieClip;...

    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...
  6. Thread: Keeping score

    by Chiapa
    Replies
    3
    Views
    2,351

    This is the Main class: package { 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;
  7. Thread: Keeping score

    by Chiapa
    Replies
    3
    Views
    2,351

    How do I do that?

    How do I do that?
  8. Replies
    13
    Views
    5,362

    I can't get it to work: here's some code of the...

    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;
    ...
  9. Replies
    13
    Views
    5,362

    I declared it public, in the Main class, and in...

    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:...
  10. Replies
    13
    Views
    5,362

    Well, the event listener is in the class...

    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...
  11. Thread: Keeping score

    by Chiapa
    Replies
    3
    Views
    2,351

    Keeping score

    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...
  12. Replies
    13
    Views
    5,362

    Hi steven, thanks for your reply problem is,...

    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...
  13. Thread: Adding a menu

    by Chiapa
    Replies
    3
    Views
    812

    However, now I need something to stop the game....

    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...
  14. Replies
    2
    Views
    667

    Thanks again, I now have what I need. Cheers,...

    Thanks again, I now have what I need.

    Cheers,

    Chiapa
  15. Thread: Adding a menu

    by Chiapa
    Replies
    3
    Views
    812

    Thanks for helping. I managed to do it. ...

    Thanks for helping.

    I managed to do it.

    Chiapa
  16. Replies
    2
    Views
    667

    Manipulating frames in the timeline

    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...
  17. Thread: Adding a menu

    by Chiapa
    Replies
    3
    Views
    812

    Adding a menu

    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...
  18. Replies
    13
    Views
    5,362

    Score counter in AS3

    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,...
Results 1 to 18 of 18




Click Here to Expand Forum to Full Width

HTML5 Development Center