Shooting Problem
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Shooting Problem

  1. #1
    Cats Moo!
    Join Date
    May 2000
    Location
    Boonies
    Posts
    148

    Shooting Problem

    I cant get a little icon called paintball to finsh it's full shot.(if i shoot while a paintballs going to its target it's going for it will stop in it's place and then start an other paintball....) Also i cant get it to duplicate more than two items(only have two paintballs)
    And finally i cant get the paintballs to goto frame15 of the mc their in....(the explotion)
    I will show the scope buttons action script(I just wanna know what to add to it, please keep it close to the same thing)

    On (Release)
    Set Property ("/player", X Position) = GetProperty("/guy", _x)
    Set Property ("/player", Y Position) = GetProperty("/guy", _y)
    Set Variable: "/player:x" = GetProperty ("",_x )
    Set Variable: "/player:y" = GetProperty ("",_y )
    Begin Tell Target ("/player")
    Go to and Play (5)
    End Tell Target
    End On


    Thanks in Advance
    [Edited by ChriSell on 07-17-2000 at 12:09 AM]

  2. #2
    Cats Moo!
    Join Date
    May 2000
    Location
    Boonies
    Posts
    148
    Any1 Wanna Help Me Out....

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Posts
    337
    Eey ChriSell!

    ---
    Set Variable: "i" = i+1
    Duplicate Movie Clip ("paintball", "paintball"&i, 10+i)
    ---

    this will make you duplicate the paintball as many times as you'd like. If you want only a limited amount of levels to duplicate your paintballs in, you can, but you dont have to, add one little thing to it:

    ---
    Set Variable: "i" = i+1
    If (i > 10)
    Set Variable: "i" = 1
    End If
    Duplicate Movie Clip ("paintball", "paintball"&i, 10+i)
    ---

    this will limit the amount of used levels to 10, and the amount of paintballs at the same time to 10. But you can still duplicate as much as you like.

    The second part of your question I don't exactly understand. Are the paintballs named as "/player"???? And what does the button-A-script have to do with it anymay? Make it a bit more clear so I can help ya out.

    LTrZ!
    DamnGzM.

  4. #4
    Senior Member
    Join Date
    Jun 2000
    Posts
    337
    BTW: be sure to add this script to the last frame (after explosion) IN the duplicated movieclip when you use a limited number of levels:

    ---
    Remove Movie Clip ("")
    ---

    It will remove itself, if you dont do that, you might end up with paintballs which will instantly explode even before you have shot one. Also, in addition to my previous reply, I think the duplicating fits like this in your script, assuming that "/player" is the thing which is duplicated:

    ---
    On (Release)
    Set Variable: "i" = i+1
    Duplicate Movie Clip ("/player", "/player"&i, 10+i)
    Set Property ("/player"&i, X Position) = GetProperty("/guy", _x)
    Set Property ("/player"&i, Y Position) = GetProperty("/guy", _y)
    Set Variable: "/player"&i&":x" = _x
    Set Variable: "/player"&i&":y" = _y
    Begin Tell Target ("/player"&i)
    Go to and Play (5)
    End Tell Target
    End On


    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

Poll by Flashkit.com