A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Movement of Spaceship

  1. #1
    ... problems4me's Avatar
    Join Date
    Jul 2000
    Location
    UK
    Posts
    658
    Hi all....

    How do you move a space ship around that is continuosly moving, so there is an effect of gravity and there is a speed that to turn round you have to accelerate the other way, and to keep afloat you have to keep pressing down to thrust upwards?

    Any Ideas Kieran -

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    323
    Keep track of X-velocity and Y-velocity... Every frame or so, add the X-velocity to the X-position and the Y-velocity to the Y-position. When the controls are used, add or subtract from the velocities to simulate acceleration. If you want to use gravity, add/subtract a small number from the Y-velocity every movement frame.

  3. #3
    ... problems4me's Avatar
    Join Date
    Jul 2000
    Location
    UK
    Posts
    658

    In English?....

    I don't really understand that please can you send me an example FLA file so I can figure it out... Cheers!

    Kieran

  4. #4
    Registered User
    Join Date
    Jun 2000
    Location
    Woodland Hills, California
    Posts
    191
    An example would be great for that, if you can send one to me also I would greatly appreciate it.
    jpike@galaxyonline.com

  5. #5
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,092
    I got one that i can send you.

    jydnas_@hotmail.com

    I did not make it i just downloaded it from another site on the web.

  6. #6
    Senior Member
    Join Date
    Jul 2000
    Posts
    127

    Maybe u like this

    This game has a bit of a spacy-accelaration, maybe not what you're looking for but hop you'll enjoy.

    http://www.xystes.com/html/games/grubplay.htm

    Sander
    http://www.xystes.com

  7. #7
    ... problems4me's Avatar
    Join Date
    Jul 2000
    Location
    UK
    Posts
    658

    Smile not really....

    That game is not what I'm looking for, I'm looking for one controlled by keyboard, and it has to be quite realistic except for graphics etc....

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center