User Tag List

Results 1 to 4 of 4

Thread: Trouble with dropped collectables

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2009
    Location
    Australia
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Trouble with dropped collectables

    Hi
    I've been having trouble figuring out the correct approach for objects that once destroyed will leave behind a collectable item such as a coin and I was wondering if anyone might be able to help me out.

    I'm trying to create treasure chests that need to be destroyed for the player to collect their contents: I've given the chests an alterable value that stores the number of hits it has recieved and once the Hit value is greater or equal to 3 the chest is destroyed and a coin is created at it's position.

    However the problem is that many coins, not just one are created at the chests position and adding a "only one action when event loops"condition results in an entirely different problem where if two chests are lined up next to each other and you hit the first chest once then place yourself so you can hit both at the same time the second chest and any other remaining chests won't be destroyed no matter how many times you hit them.

    I've attached the MMF file so anyone can see what I mean it currently has the "only one action when event loops" applied

    View MFA


    Any help would be greatly appreciated
    Thanks




  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Cape Town South Africa
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Trouble with dropped collectables

    I ran it and it works fine. Another trick you can try is to have the coins already created behind the chest.

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2009
    Location
    Australia
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Trouble with dropped collectables

    Well my brother was able to help out with my problem and provide a solution, but I'm not all that happy with having to create a different chest for each different item so I'm thinking of giving hiding the collectables a try but I'd like them to dissappear after a while once they been revealled and so far I can't figure out how do it.

  4. #4
    Clicker Multimedia Fusion 2
    Greg's Avatar
    Join Date
    Dec 2006
    Location
    Poland
    Posts
    315
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Trouble with dropped collectables

    You can also try to remove the "Only one action when event loops" and do something like that:
    Code:
    -Hits of Chest >= 3 - Create coin at (0,0) from Chest
                          Set hits of Chest to 0
                          Destroy Chest
    It works fine by me.

Similar Threads

  1. tips on how to do nonresetting collectables
    By TedBoomerang in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 26th March 2010, 12:05 PM
  2. Falling collectables
    By Atherton in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 12th August 2009, 02:51 AM
  3. files have been dropped?
    By mmf2 in forum File Archive
    Replies: 5
    Last Post: 27th October 2008, 07:45 AM
  4. File has been dropped
    By Bipolar_Games in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 26th August 2008, 04:59 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
  •