User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Mario life lost screen question

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export Module
    Emerson3's Avatar
    Join Date
    Apr 2014
    Location
    Lafayette, Louisiana
    Posts
    719
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question Mario life lost screen question

    Hey Clickers,

    In Mario 1, when mario jumps in a hole or dies, the next screen is a life tracker. It's a black screen with Mario and a counter next to him that counts down one to indicate how many lives the player has left. It then goes back to the game and if Mario dies again, it counts down once more from the previous number. How do I accomplish this in fusion? I have the game set up and a second frame that's set up with a counter and everything, I just don't know how to keep track of lives between frames. Thanks Clickers!

  2. #2
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jan 2015
    Location
    Central Oregon, USA
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use a global value, or an alterable value of a global object.

    I believe Fusion also has a build in lives counter as well.

  3. #3
    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
    1,010
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I recommend using a global value for your lives. The Lives object is ok, but I find the Global Value to be more accurate.

  4. #4
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export Module
    Emerson3's Avatar
    Join Date
    Apr 2014
    Location
    Lafayette, Louisiana
    Posts
    719
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the responses guys!

    Okay, Piscesdreams, I think Global Value is the answer too. I did it before, about a year ago, but for the life of me, I don't remember how I did it. Here is the MFA of what I'm trying to do. I want the lives counter on frame 2 to count down every time the player crashes on frame 1. And when there's no more lives, then game over. Please help. .

    Its not finished yet, but the object is to hit 10 buildings with packages. Your a delivery van. Avoid obstacles such as trucks, buildings, some skateboarding dude, etc...

    Press "V" to shoot package right
    Press "C" to shoot package left

    Delivery Van.mfa

  5. #5
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jan 2015
    Location
    Central Oregon, USA
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It seems like you're trying to use the counter as the lives, I wouldn't recommend that, since counters are reset when the scene changes.

    Instead, create a global value by selecting the EXE in the workspace toolbar (The highlighed one in this image)



    Then in the properties menu, click the Values button (The one with the A-Z on it) and add a global value.



    You can name that value whatever you need to. I believe "Lives" won't work but in the end the name doesn't matter.

    Unlike counters, Global values don't reset when the frame is changed so you'll want to use that as your lives counter instead of the counter you're using.



    Now the issue is making that global value to display in your loss screen. You can't do that directly, so we'll use the counter you've already made to do that.

    In the events editor of your loss screen set an event with an "always" condition



    In that event, you want to set the counter to be equal to the global value, like so...


    ------


    This will make the counter in the frame always be the same value as the global value you set it to, in this case, the Lives counter.


    Now in your first event, you have it set to subtract 1 from the counter. This won't do, since the counter is always set to the global value, and the global value isn't going down.

    So, instead, subtract 1 from the global value, like so:


    ------


    You don't need to change the counter at all, it'll change on it's own.

    And there you are, a working lives counter.
    Images attachées Images attachées

  6. #6
    Clicker Fusion 2.5 (Steam)
    StevenA's Avatar
    Join Date
    Mar 2015
    Location
    Chicago
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dengarde View Post
    I believe Fusion also has a build in lives counter as well.
    Exactly, I don't know why anyone would use anything different.

    I don't understand. (I've only just now started pushing CTF2.5's limits)

  7. #7
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export Module
    Emerson3's Avatar
    Join Date
    Apr 2014
    Location
    Lafayette, Louisiana
    Posts
    719
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Dengarde,

    Awesome! That's so simple. Thank you!

    StevenA,

    I'll check out the Lives Object tonight. I do use a lot of the built in objects but sometimes I want to tackle issues in other ways to learn Clickteam better.

  8. #8
    Clicker Fusion 2.5 (Steam)
    StevenA's Avatar
    Join Date
    Mar 2015
    Location
    Chicago
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Believe me, the lives object can save you some pain. It's saving me pain right now with 1 of 3 games I'm making.

  9. #9
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jan 2015
    Location
    Central Oregon, USA
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Honestly It doesn't really matter if you use the Lives or not. But from what I've seen, you have WAY more flexibility using a regular counter than the lives object.

  10. #10
    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)
    I think the lives object is deprecated, from the days of TGF. It's just another global value, but it can only be controlled from another deprecated object, "The Player Object." It doesn't really have relevance in 2.5. There's really nothing you can do with it that can't be controlled through a global value and it can be confusing to newcomers because they confuse "count number of lives" with "count number of lives objects."

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Mario..ish question
    By Emerson3 in forum Fusion 2.5
    Replies: 2
    Last Post: 27th April 2014, 08:42 PM
  2. change screen resolution when app lost focus
    By lordzero in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 21st May 2009, 03:18 AM
  3. Screen resolution question
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 12th January 2009, 07:14 PM
  4. A question about Screen Capture
    By Person in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 7th October 2008, 04:15 AM
  5. Question about screen limits
    By nikki in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 29th December 2006, 11:08 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
  •