User Tag List

Results 1 to 5 of 5

Thread: How to restart level when character uses last life

  1. #1
    No Products Registered

    Join Date
    Oct 2009
    Location
    California US
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to restart level when character uses last life

    Ok, I used to know how to make it so that when the main character dies, they lose one life and go back to the beginning, but I need the character to have three lives at the start of each level. I have start of frame -> set player lives to three. I also need to restart that level when the main character loses a life. I tried having the frame restart, only that also sets them back at three lives.


    I have an idea, i could make it so that when the player presses the button to play that level, they could be set at three lives, and then it could go to the level. Would this work, or can you think of a better solution?

  2. #2
    No Products Registered

    Join Date
    Oct 2009
    Location
    California US
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to restart level when character uses last life

    My idea seems to be working, any suggestions, or warnings about using it?

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to restart level when character uses last life

    It sounds like you have the right idea - the setting of three lives is something that should be done before going to the level, rather than at the start of it (because setting three lives at the start of the level will also do it when the level's restarted), so you moved that off to a place where it's only done once.

  4. #4
    No Products Registered

    Join Date
    Oct 2009
    Location
    California US
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to restart level when character uses last life

    Thanks!

  5. #5
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    664
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How to restart level when character uses last life

    If im thinking right you could also set an alterable value like "Player Lives" and set it up to "At start of Frame" to 3 and every time the player dies, "Subtract 1" from "Player Lives" and set your properties to global. Its been awhile since i've played with stuff like that but it may work out for you. You may also want to play with the Restrict Actions under the "At Start of Frame" and choose something like, "Only once". Hope that helps! :grin:

Similar Threads

  1. Character Image: Load Character Images from Folder
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th May 2011, 06:56 PM
  2. Character-Based Level System
    By LB in forum File Archive
    Replies: 1
    Last Post: 4th May 2008, 12:17 AM
  3. Load Level after Last Completed (saved) Level
    By Diepek in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd January 2008, 09:50 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
  •