User Tag List

Results 1 to 4 of 4

Thread: How to make a checkpoint?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Daniel_M's Avatar
    Join Date
    May 2011
    Location
    Chicago, Illinois
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make a checkpoint?

    Hiya! I wanted to make it so when the player touches an object, the object gets destroyed, and next time the player dies, He respawns where the object used to be! Anyone know how to do this? Please! Thanks!

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    XStar's Avatar
    Join Date
    Feb 2012
    Location
    Winchester, VA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here you go! This helped me a ton!
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Daniel_M's Avatar
    Join Date
    May 2011
    Location
    Chicago, Illinois
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That doesnt work. When I attempt to open it, it says something about missing extension. Ini + + v1.5 Object (INI+ +15.mfx)! Im using the demo version by the way.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS 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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    If you restart the frame when the player dies, you will need to store the respawn-position somewhere. For instance set Global Value A to the player's X-position, and Global Value B to the player's y-position when the player touches the respawn-object. Then, when the level restarts, at Start of frame, set the x-position of the player to Global Value A, and the y-position to Global Value B. You must make sure that this only occur when the Global Values has a value different than 0, or else it will reposition the player the first time the level starts as well.

    If you don't restart the frame when the player dies, you can simply place an invisile object at the Respawn-location when the player touches it, and position the player at the hidden object when he dies.

    If you want the game to remember the respawn-location the next time you start the game, you would need to store it in a file, like the ini-file which XStar suggested. You can use the normal ini object for this, or the INI++ extension. You can also use an array or a simple textfile.

Similar Threads

  1. How to make?
    By PolSito in forum File Archive
    Replies: 1
    Last Post: 8th June 2009, 10:37 PM
  2. i want to make a rpg
    By kainan in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 30th June 2008, 08:55 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
  •