User Tag List

Results 1 to 7 of 7

Thread: Q: Delayed Damage/Enemies don't cause damage for an amount of time after collision?

  1. #1
    Clicker Fusion 2.5

    Join Date
    Nov 2017
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Q: Delayed Damage/Enemies don't cause damage for an amount of time after collision?

    Hello,

    I'm an after school instructor and I teach kids how to create video games using Clickteam Fusion 2.5.

    One of my students asked me an interesting question that I didn't immediately have the answer to.

    Is there a way to program a collision with an enemy, where after we've collided with the enemy our character doesn't take any damage from the enemy for a certain amount of time - for example 3 seconds. I have a bad guy set on bouncing ball movement and after the bad guy has collided with our character the student would like a "buffer period" where he doesn't take any damage from any bad guys.

    Any help you can give me on this question is very much appreciated!!! Thanks in advance

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleInstall Creator Pro
    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
    Feb 2014
    Posts
    18
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I've created an example like that a couple of days ago, I've modified it a bit so the enemy now has a bouncing ball movement and the timer is 3 seconds before you can get damage again.
    Attached files Attached files

  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
    Posts
    780
    Mentioned
    17 Post(s)
    Tagged
    0 Thread(s)
    Havent seen example above, but you have to use either flags or an alt value. E.g. object collidies with player, set alt value a to 180. then make another event where if alt value a is over 0, subtract 1. In the damage event check that alt value a is equal or lower than 0.

  4. #4
    Clicker Fusion 2.5

    Join Date
    Nov 2017
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Know1 View Post
    I've created an example like that a couple of days ago, I've modified it a bit so the enemy now has a bouncing ball movement and the timer is 3 seconds before you can get damage again.
    Hi Know1, thank you, this has been a huge help and is working great for me! One quick question, how did you code the "Debug Stuff" section? I'm having trouble getting my code to match what you have : Always/Set alterable string to Str$(invisible timer("Active"))

    If you can help me understand how you achieved that coding and what exactly it does, i'd appreciate it alot! Everything else makes perfect sense to me and my game file is working great!

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Norway
    Posts
    325
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The Str$(invisible timer("Active")) expression is converting the alterable value named "invisible timer" of the object "Active" to text. It won't work if you don't have an active object named "Active" with an alterable value named "invisible timer".
    This event just lets you see the value of that alterable value on screen with the string object.

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleInstall Creator Pro
    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
    Feb 2014
    Posts
    18
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I've made a small change compared to the MFA file, in this example so you only need one string for each value you want to keep track of.


  7. #7
    Clicker Fusion 2.5

    Join Date
    Nov 2017
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for all of the great help guys! I've learned something new and my student will really appreciate it!

    All the best,
    Tyler

Similar Threads

  1. Replies: 0
    Last Post: 2nd November 2017, 10:55 PM
  2. Delayed Damage Counters - Mobile Compatible
    By Nicholas Martin in forum Guides, Tutorials, Examples, Widgets
    Replies: 2
    Last Post: 29th August 2017, 02:45 PM
  3. Replies: 7
    Last Post: 13th November 2016, 11:10 AM
  4. Multiple targets in 1 collision, limit damage
    By Swiff in forum Fusion 2.5
    Replies: 4
    Last Post: 28th October 2014, 08:10 AM
  5. Enemys take damage.
    By Dakk in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd March 2010, 11:09 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
  •