User Tag List

Results 1 to 6 of 6

Thread: Does Launch Object create new instances of the object?

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Feb 2015
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Does Launch Object create new instances of the object?

    In the same vein as Create Object, does Launch Object create its own object each time it launches an object?

    I am creating a spell to launch an arrow, the spell works perfectly except a couple hiccups:

    If I cast an arrow to the right then quickly turn around and cast one to the left, the first arrow I cast will reverse its direction and begin moving left as well. This to me indicates they share the same scope.

    I also have code to Destroy the launched object once it collides with a wall; using the rules above you'd think destroying one object would destroy them all, but it doesn't. This part actually works properly.

    So, how does Launch object actually work? Or not work? It seems kind of useless to be honest and isn't really explained well in the contents.

  2. #2
    Clicker Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jan 2015
    Location
    Australia
    Posts
    229
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Any events on the arrow that happen under the "Launch an object" event should keep scoping - it seems to work the same way as "create an object"

    Is it possible you've got some events affecting the direction of the arrow that happen in the same line *before* the "launch object" part of the event? Or any other lines that affect the direction of the arrow

  3. #3
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jan 2018
    Posts
    302
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    it's better to use "create an objet" (bouncing ball) and affect a direction

    tir boucing ball.mfa

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Feb 2015
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by marbenx View Post
    Any events on the arrow that happen under the "Launch an object" event should keep scoping - it seems to work the same way as "create an object"

    Is it possible you've got some events affecting the direction of the arrow that happen in the same line *before* the "launch object" part of the event? Or any other lines that affect the direction of the arrow
    Maybe, I'm not sure. I need to have different events based on player direction because of the Sprayer Object; it needs to know which direction the player faces in order to know which way to spray.

    This video will explain it better: https://www.youtube.com/watch?v=zqBMH7SsSro

    I'll attach the code to here too.

    arrowcodeprob1.jpg
    @fredetmumu I probably will end up making my own thing, but I thought it'll be good for me to learn how Launch Object functions.

  5. #5
    Clicker Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jan 2015
    Location
    Australia
    Posts
    229
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Ahh - I *think* if you change the "set direction" so that it occurs after the launch object, instead of before, it might fix it. Maybe

  6. #6
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Feb 2015
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by marbenx View Post
    Ahh - I *think* if you change the "set direction" so that it occurs after the launch object, instead of before, it might fix it. Maybe
    That worked. That makes complete sense now when I think about it that way; in order for scope to apply to the newly created object the object has to actually exist first, so it was applying the direction change to the object before it.

Similar Threads

  1. Launch or Create Object actually creates two of the object, not just one.
    By LemonyLime in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 30th June 2017, 09:46 PM
  2. Create two object with various instances
    By tiagodias in forum Fusion 2.5
    Replies: 3
    Last Post: 28th April 2016, 04:49 PM
  3. Replies: 3
    Last Post: 18th May 2015, 07:16 PM
  4. Replies: 0
    Last Post: 1st April 2015, 05:38 AM
  5. Replies: 5
    Last Post: 27th January 2014, 10:37 PM

Posting Permissions

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