User Tag List

Results 1 to 5 of 5

Thread: How to make it so something repeatedly happens when something collides?

  1. #1
    Quote's Avatar
    Join Date
    Mar 2015
    0 Post(s)
    0 Thread(s)

    Question How to make it so something repeatedly happens when something collides?

    I want to make it so that my character slowly loses health while it is touching a specific type floor tile. However, I can only get it to make the health go down bit by bit and only when I jump onto the tile instead of just walking onto it. Does anyone know how to fix this?

  2. #2

    Fusion 2.5Android Export Module

    Join Date
    Jan 2007
    5 Post(s)
    1 Thread(s)
    You haven't really given enough information. Try to be more in detail when making posts . . . we know nothing about your game and you haven't provided visual references. Are you using the built in platform movement? 8 directional movement? Custom movement? What does your code currently look like?

    Assuming this is for a side scrolling game - a universal solution would be to make a detector that sits 1 pixel below your character object.

    Then code this event:

    "Detector" is overlapping "Bad Tile"
    - Run damage code.

  3. #3
    Clicker Fusion 2.5Fusion 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)
    zip2kx's Avatar
    Join Date
    Jun 2015
    17 Post(s)
    0 Thread(s)
    It sounds like you have made a collision event, make an overlapping one.

    Player over laps tile
    +every 00.10 sec
    -->subtract 1 hp

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Buffalo, NY
    26 Post(s)
    0 Thread(s)
    To clarify, the “X Collides with Y” condition returns true once when a collision occurs. It will not return true again until it returns false first. This is why you need to move off the tile and back on to it to get it to work.

    As Zip2kx said, you probably need to use the “ X is Overlapping Y” condition. That always returns true as long as X and Y overlap.

  5. #5
    Clicker Fusion 2.5

    Join Date
    Jun 2017
    2 Post(s)
    0 Thread(s)
    Maybe adding something like (Always) If player overlapping object every ____ second subtract health from counter (Or whatever type of health bar your using)

Similar Threads

  1. Replies: 1
    Last Post: 11th October 2016, 11:32 PM
  2. Bug in drag and drop system when collides?
    By paobrasil in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 5th September 2012, 01:12 AM
  3. 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, 01:04 AM
  4. Pls help with collides with backdrop problem
    By Jaeu in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th August 2006, 12:15 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