A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: AS problem I think... :(

  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    63

    AS problem I think... :(

    Hi,

    I've been customizing Tim Moore's Asteroids game off Koolexchange. I wanted to add a fourth flying virus (asteroid originally) that originates south and travels north.

    My issue is making it travel in that direction. I can usually figure out what element in the existing code I need to change to make it do what I want. I've been tearing my hair out with this one though.

    I can place it's starting point where I want it at "this._y = 500;" but I can't seem to find where in the code it tells these asteroids the direction to travel? I started by copying "bolder3", pasting it and tried changing the code.

    No matter what numbers or symbols I tried changing the fourth, purple virus continues to travel in a north to south direction.

    Can someone show me where the virus' direction of travel is in the code?

    Thanks for any help! I attached the KM file.

    -Dan
    Attached Files Attached Files

  2. #2
    Member
    Join Date
    May 2007
    Posts
    78
    I am guessing that direction of travel is set in the code you can get to by:

    1.) Going to the keyframe called "play"
    2.) Selecting the movieclip called "bolder"
    3.) Clicking on the icon for "Properties of Selected Shapes"
    4.) Clicking on "Actions" and click "..."
    5.) Clicking the icon for "Edit Action"

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