A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: keyboard control & tell targeting

  1. #1
    Junior Member
    Join Date
    Jun 2000
    Posts
    1
    Okay, here's the game senario:

    On the stage is a spaceship and a planet. I want the player to be able to control the ship from the keyboard and approach the ship at any position. As soon as the ship touches/goes on top of the planet, the frame switches to an orbiting scene.

    I've learned how to manuver the ship via the keyboard, and I've also learned how to drag and drop the ship onto the planet and making the movie switch to a different frame (an "orbit" scene). But I still don't know how to combine the two together.


    Thanks ahead time for your help.

    ritter

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    337
    Eey,

    You should add an engine (movieclip with actions in frames which repeats itself and controls main stage or whatever movieclip you like) which checks wether or not the ship is on top of the planet using a collision-detect-method. Also add a if....blabla...ship is on top.. certain planet....blabla-then tell target("/") Go To and.... blabla-action to the script in the engine.

    LTrZ!
    DamnGzM.

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