User Tag List

Results 1 to 4 of 4

Thread: I need help with Temporary Invincibility

  1. #1
    No Products Registered

    Join Date
    Jun 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question I need help with Temporary Invincibility

    Hi! I'm new to MMF2 and I'm trying to make a simple platformer. Everything is going well except for the damage system. I have it to where if the player collides with a specific object, the counter will be subtracted by X amount. While it does its job with killing the player, I feel that the player should be temporarily invincible and flash for a few moments before being able to take damage again. The flashing effect after a player takes damage has a nice polished feel to it. Can anyone tell me how to do it? Thanks in advance.

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    piscesdreams's Avatar
    Join Date
    Dec 2007
    Location
    United States
    Posts
    921
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    There are a few ways you can do this.

    Upon collision & alt val a = 0 - flash object xx"xx - Set active alt value a to 20

    Alt val a >=1 - sub 1 from alt val a

    Alt val = 0 - only when event loops > reappear active

    Increase the alt val from 20 for longer invincibility times. Adjust flash time to preference. Usually 00'00'00'15" is pretty standard.

  3. #3
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleInstall Creator ProUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    574
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    I would suggest adding a time condition to Alt val a >=1 - sub 1 from alt val a otherwise its dependent on the FPS and could give different results on slower systems.

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    piscesdreams's Avatar
    Join Date
    Dec 2007
    Location
    United States
    Posts
    921
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I agree with danworth unless this is for a mobile runtime, timed conditions are finicky on mobile platforms.

Similar Threads

  1. ChartBoost [Temporary Solution!]
    By SoftWarewolf in forum iOS Export Module 2.5
    Replies: 208
    Last Post: 10th February 2015, 01:50 PM
  2. Creating a temporary event
    By Sorensen in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 16th March 2011, 02:03 PM
  3. Short Temporary Boost
    By Godspeed8118 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 28th August 2009, 12:16 AM
  4. Temporary Pause?
    By N64Mario in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 6th December 2008, 03:53 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •