User Tag List

Results 1 to 8 of 8

Thread: Lives object - best practice?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Sep 2012
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lives object - best practice?

    I have a Lives object in my game and I can get it to subtract when a collision occurs. What I can't get to happen is to have an action actually work when "All Lives are Destroyed" condition is done. I want it to go back to the start screen. I have that jump set under the condition linked to the storyboard control but it doesn't work.

    Is there something fundamental I'm missing. I looked through the forum and the help file, so it seems like I must be since I didn't see the issue anywhere else.

    Any assistance is appreciated.

    Creating an XNA phone application if that matters.

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,820
    Mentioned
    7 Post(s)
    Tagged
    2 Thread(s)
    Hmmm without seeing the MFA its hard to say whats going wrong.
    Are you doing something like this to detect when all the lives are gone?

    If your testing from inside MMF and you want to jump frames you need to "Run Application" and not just run the frame when testing something that jumps frames.
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Sep 2012
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, Jeff, I'll load that MFA up tonight. I did use Run Application. Does the order of events in the Event editor matter? Right now it is the last event.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Sep 2012
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the great example. I was using the Lives object "have all lives been destroyed" and was not getting the right results. Your way worked.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,862
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    The only event you need to add to the lives object to complete the line, is add in "All Lives are destroyed" + "run this event once". If you don't it will loop the first line over and over again and the event will never happen.

  6. #6
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    MTCMusic's Avatar
    Join Date
    Jan 2007
    Location
    Montreal, Canada
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think what you were doing wrong was testing for the actual lives object being destroyed and not its counter value. The lives object will contunue to exist even after the lives value is zero. Unless you actually set an "destroy" action for the lives object, the "All Lives are destroyed" condition will never occur.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Sep 2012
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by KLiK-iT View Post
    The only event you need to add to the lives object to complete the line, is add in "All Lives are destroyed" + "run this event once". If you don't it will loop the first line over and over again and the event will never happen.
    Doesn't that event actually need to loop until the condition is met? If it ran once and the lives weren't destroyed, would it ever come back to that event?

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,862
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sbucci View Post
    Doesn't that event actually need to loop until the condition is met? If it ran once and the lives weren't destroyed, would it ever come back to that event?
    I'm sorry, I thought in your original post the event was when lives = zero.

Similar Threads

  1. Hey all, got a question regarding the lives object
    By csprinks in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 14th August 2018, 04:38 PM
  2. My Sandbox Practice Game
    By celticafro in forum File Archive
    Replies: 0
    Last Post: 8th January 2011, 08:19 PM
  3. Lives Object Problem
    By That_Sean_Guy in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 16th May 2008, 03:54 PM
  4. Getting the value of Lives
    By Krisando in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 30th April 2008, 07:24 AM
  5. Lives object
    By kmarshall in forum The Games Factory 2 - Technical Support
    Replies: 6
    Last Post: 19th June 2007, 09:35 PM

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
  •