User Tag List

Results 1 to 7 of 7

Thread: Destroying Just one of a Duplicate Object

  1. #1
    No Products Registered

    Join Date
    May 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Destroying Just one of a Duplicate Object

    So I'm trying to make my character pick up bottles of coke. Right now the coke goes into the inventory of the player, but I'm having trouble with the destroying. I'm going to have quite a few coke bottles around the map to pick up, and I want just the coke that the player clicked on to be destroyed. All the coke bottles in the game destroy when I just click on one, when making it destroy. Is there any way I can make just the bottle I clicked on be destroyed without having to clone the objects and add separate conditions for all of them?

  2. #2
    Clicker Fusion 2.5

    Join Date
    Apr 2012
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What does the event look like right now? It should work like this

    Mousepointer is overlapping coke
    upon pressing click
    destroy coke

    Right?

  3. #3
    No Products Registered

    Join Date
    May 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've tried it like that, but now I've made it so the condition is

    User clicks on coke
    destroy coke

    But the thing is, when I have multiple coke's, it destroys all of them instead of the one I clicked on.

  4. #4
    Clicker Fusion 2.5

    Join Date
    Apr 2012
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried it just now and it only destroyed one of them. Do you have an example file?

  5. #5
    No Products Registered

    Join Date
    May 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, I don't understand what's going on. I just made a new application and did the same thing in my game, and it only destroyed one. Could it have anything to do with the fact that the condition also has the cursor distance <10:

    •User clicks with left button on Coke:
    +Cursor Distance <=10

    Destroy coke

  6. #6
    No Products Registered

    Join Date
    May 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oooh I figured it out now! So my condition started a loop before it ran the destroy the coke function, causing all of the cokes to destroy

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by TheMooCows237 View Post
    Oooh I figured it out now! So my condition started a loop before it ran the destroy the coke function, causing all of the cokes to destroy
    If im not misstaken, running a Fast Loop resets the Object/ Instance selection.

    (1)
    You click on Coke.
    The specific Coke is marked for selection.

    (2)
    Fast Loop is run.
    All Cokes are marked for selection.

    (2)
    Destroy Coke.
    All marked Cokes are destroyed.

Similar Threads

  1. [BUG] Destroying List Object And Referencing
    By netninja in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 6th March 2013, 08:10 AM
  2. Destroying an object that crashes with the wall
    By FlinkGigitty in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 2nd October 2010, 11:34 PM
  3. Gah... Object destroying offscreen
    By pikzilla in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 14th August 2009, 06:28 PM
  4. Destroying a specific active object
    By eceva in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 15th April 2008, 08:05 PM
  5. Destroying an Active Object...
    By DanielRehn in forum Extension Developers Lobby
    Replies: 6
    Last Post: 19th September 2007, 01:33 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
  •