User Tag List

Results 1 to 5 of 5

Thread: can object shoot random object?

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Posts
    159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    can object shoot random object?

    is it passable to make one object to shoot lets say a spaceship enemy that shoot her bullets randomly?
    (let the spaceship decide when to shoot)
    also-i want the spaceship to shoot on onto another spaceship that controlled by the pc (random direction) so the effect will be that one ship shoot onto the other and miss sometimes randomly.
    so at the end we have kinda fight between two pc controlled space ships still without the player involved.

    thanks.

  2. #2
    Clicker Fusion 2.5 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Location
    Turku, Finland
    Posts
    1,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: can object shoot random object?

    If I understand you correctly, it's very easy.
    "When spaceship shoots" -> shoot an object. This object is supposed to be another spaceship that is able to shoot as well?
    Then, just check if the spaceship is created and when it is, every 1.00 or something -> shoot an object at enemy spaceship.

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Posts
    159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: can object shoot random object?

    not exacly...
    i'll descibe it again:

    lets say we have enemy craft (controlled by the pc) that shoots bullets at another enemy craft that also controlled by the pc.

    i just wants the shooting to be randomly by the code and not followed by counter or something like that (if you code the shooting by counter, after a while you can learn the timing and i want's random shooting timing)

    i hope now its more clear


  4. #4
    Clicker Fusion 2.5 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Location
    Turku, Finland
    Posts
    1,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: can object shoot random object?

    Ok, now I got it. There's a way to do it with a counter:
    1. Add the counter to the frame.
    2. Add an event "Every 0.5 seconds"
    3. Add an condition "Add to counter 'random(1)'.
    (that will add either 0 or 1 to the counter.)
    4. When counter = 2 -> shoot an object. (also set counter to 0).

    Just change the time for how often you want it to shoot.


  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Posts
    159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: can object shoot random object?

    ok good
    thanks

Similar Threads

  1. shoot an object
    By taciturn in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 3rd October 2008, 10:53 PM
  2. What would I use to shoot an object(read for det.)
    By csj1 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 29th July 2008, 04:17 PM
  3. What's the best way to shoot an object?
    By Ravenius in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th May 2008, 06:43 PM
  4. shoot an object
    By Nate in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 1st February 2008, 02:21 PM
  5. Shoot an object backwards?
    By Michael_Gummelt in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 15th July 2006, 05:44 AM

Posting Permissions

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