A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Flash 4 Game help

  1. #1
    Junior Member
    Join Date
    Jan 2001
    Posts
    9
    Hey. I dloaded an FLA, and was messing around w/ it, and got this...

    http://www.angelfire.com/biz6/lucidmedia/test

    Anywayz the ques is ... since in the game the main timeline controls the missle flight, how would i go about adding enemy ships? I tried with a movie clip administering the flight actions, but didnt work. I know there gotta be a way, so can someone please give me a suggestion? -thanks

  2. #2
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    Problem: it did not load...

  3. #3
    Junior Member
    Join Date
    Jan 2001
    Posts
    9
    Hmmm, well, heres the lo-down..
    theres a ship, named ship, that has a button on it that does this

    On (Release)
    Set Variable: "../:n" = ../:n+1
    Duplicate Movie Clip ("../007", "007"&../:n, ../:n)
    Set Property ("../007"&../:n, X Position) = GetProperty("",_x)
    Set Property ("../007"&../:n, Y Position) = GetProperty("",_y)-30
    End On

    (*007 is the MC)
    Now, to control the rockets flight, there is this code on the main line -
    (2nd frame)

    Set Variable: "i" = 1
    Loop While (i<=n)
    Set Property ("007"&i, Y Position) = GetProperty("007"&i,_y)-speed
    Set Variable: "i" = i+1
    End Loop

    And i just confused myself. How does this controll mult rockets? And if the main timeling keeps repeating itself, how would i add enemies. The fps is steep too, 100 watever peeps

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