User Tag List

Results 1 to 9 of 9

Thread: Player collides with overlapping Objects

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    WhatPixelYouOn's Avatar
    Join Date
    Jul 2012
    Location
    West Yorkshire, UK
    Posts
    189
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Player collides with overlapping Objects

    I have a lot of coins which bounce around before staying static - Often these coins can land so that they are perfectly overlapping another coin and when the player collects them both, although both are destroyed, it only adds the value from one coin to the score. How can I get around this? Thanks.

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,341
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    You have to wrap the collision event in a ForEach loop.

    + Always
    -> Coin: Start ForEach loop

    + Coin: On ForEach loop
    + Coin: Overlapping Player
    -> Add 1 to Score
    -> Coin: Destroy

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    WhatPixelYouOn's Avatar
    Join Date
    Jul 2012
    Location
    West Yorkshire, UK
    Posts
    189
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you! Although it appears to be a simple solution, I've never worked with fast loops and can't figure out how to get those Conditions and Actions. Should the Action under the "Always" event be created from the Special Conditions icon or from the Active Object (Coin) icon?

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)
    elvisish's Avatar
    Join Date
    Oct 2014
    Posts
    775
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    I think maybe using Collides With instead of overlapping solves this, since it's a green event, which means it happens each time it triggers.

  5. #5
    Clicker Fusion 2.5

    Join Date
    Dec 2009
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by WhatPixelYouOn View Post
    Thank you! Although it appears to be a simple solution, I've never worked with fast loops and can't figure out how to get those Conditions and Actions. Should the Action under the "Always" event be created from the Special Conditions icon or from the Active Object (Coin) icon?
    This might help you: https://www.youtube.com/watch?v=_KqrrPV06c8&t=267s

  6. #6
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,341
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    The action to start the ForEach loop is under: Active (Coin) -> Count -> For each object
    ...which is not an obvious place to look for it, I agree!

    The matching condition for the second event is located much more sensibly, under: Active (Coin) -> Loops -> On each object

    Using "Collides with..." may work, but I believe only if both the coins and player are using built-in movements, which seems unlikely.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    WhatPixelYouOn's Avatar
    Join Date
    Jul 2012
    Location
    West Yorkshire, UK
    Posts
    189
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you! I've managed to get it working using your method MuddyMole - The video was an interesting watch too! Thanks everyone!

  8. #8
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)
    elvisish's Avatar
    Join Date
    Oct 2014
    Posts
    775
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MuddyMole View Post
    The action to start the ForEach loop is under: Active (Coin) -> Count -> For each object
    ...which is not an obvious place to look for it, I agree!

    The matching condition for the second event is located much more sensibly, under: Active (Coin) -> Loops -> On each object

    Using "Collides with..." may work, but I believe only if both the coins and player are using built-in movements, which seems unlikely.
    Do built-in movements include PMO? I always used "Collides with" with PMO and had no issues.

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    WhatPixelYouOn's Avatar
    Join Date
    Jul 2012
    Location
    West Yorkshire, UK
    Posts
    189
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am using PMO and can confirm "Collides with" gives the same result as "Overlaps with" in this particular scenario, though admittedly changing those sometimes does make a difference.

Similar Threads

  1. Replies: 5
    Last Post: 4th March 2017, 02:16 PM
  2. Replies: 1
    Last Post: 11th October 2016, 10:32 PM
  3. Character doesn't touch the objects, but still collides
    By crashkandicoot in forum Fusion 2.5
    Replies: 1
    Last Post: 15th August 2015, 04:30 PM
  4. When object collides with player it wont play sound
    By District in forum Fusion 2.5
    Replies: 2
    Last Post: 22nd January 2015, 05:37 AM
  5. Determining which side of platform Player collides with
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 11th November 2011, 12:04 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
  •