User Tag List

Results 1 to 7 of 7

Thread: Need help with last part of game

  1. #1
    Clicker Fusion 2.5Android Export Module

    Join Date
    Mar 2014
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with last part of game

    I'm still a noob to this program but i'm making a top down game, but when my player gets hit how do I make it flash and be invincible for 3 seconds just like in Super Mario. This the last thing I need to do. Can anyone help me on this. Thanks in Advance

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    I have an open source player flash example on my web site. You will have to program the invincible part.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    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)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    I made this for someone else the other day, try this: Take Damage.mfa

  4. #4
    Clicker Fusion 2.5Android Export ModuleSWF Export Module
    Ziplock's Avatar
    Join Date
    Oct 2013
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Set a variable called "Temporary Invincibility" in your "Hero" object.

    Player collides with bullet (Player takes damage)
    + Temporary Invincibility = 0:
    -> Set Temporary Invincibility to FrameRate * 3

    Temporary Invincibility > 0:
    -> Subtract 1 from Temporary Invincibility

    Always:
    -> Make "Hero" invisible

    Temporary Invincibility mod 3 = 0:
    -> Make "Hero" reappear


    FrameRate * 3 is the number of seconds you want the invincibility to last.
    mod 3 is the amount of frames you want the hero to be invisible during the flash.

  5. #5
    Clicker Fusion 2.5Android Export Module

    Join Date
    Mar 2014
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay. But how do I make a variable?

  6. #6
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Go into the object's properties. Find Alterable Variables. Rename (double Clicking) Alterable Variable A to Temporary Invincibility.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  7. #7
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    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)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    did you download the example i attached in this thread? study that file.

Similar Threads

  1. How to make an android game Part 1 - Fusion 2.5
    By Sparckman in forum Guides, Tutorials, Examples, Widgets
    Replies: 3
    Last Post: 26th February 2015, 09:24 AM
  2. How to make an android game Part 4 - Fusion 2.5
    By Sparckman in forum Guides, Tutorials, Examples, Widgets
    Replies: 2
    Last Post: 25th February 2015, 03:28 AM
  3. How to make an android game Part 3 - Fusion 2.5
    By Sparckman in forum Guides, Tutorials, Examples, Widgets
    Replies: 0
    Last Post: 4th April 2014, 02:52 AM
  4. How to make an android game Part 2 - Fusion 2.5
    By Sparckman in forum Guides, Tutorials, Examples, Widgets
    Replies: 0
    Last Post: 4th April 2014, 02:47 AM
  5. Mochisocial ( Part 2 )
    By Pharanygitis in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 1st October 2010, 11:53 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
  •