User Tag List

Results 1 to 8 of 8

Thread: Lives won't subtract when frame is restarted

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

    Lives won't subtract when frame is restarted

    Hey guys! Here's my issue; i've got a counter that represents the player lives. If i set an event that when the player's HP reaches zero, it activates a death group that has animations, music etc. In this group it also subtracts 1 from the lives counter (again, a counter object, not the lives object). The problem is that when it restarts the current frame it remains at what it was when the frame started i.e start with 3 lives, die, have 2 before restart then 3 when done. Do you guys have any input you could give me on this? I haven't tried the lives object since the first day i used TGF lol, maybe that will remedy this.


    EDIT: I found a fix for this. In the global events, i set the following and it works just fine

    - Always > set "Player Lives Counter" to Current number of lives (Player 1)

    I hope this is helpful to other dumb dumbs like myself hahaha

  2. #2
    Clicker Fusion 2.5 (Steam)

    Join Date
    Sep 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for posting this, because I just encountered this same problem when I ran my project earlier! Saved me a bit of a headache figuring out what I'd forgotten to do.
    Good luck on your projects!

  3. #3
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    653
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Lol no problem, glad it could help, thanks for the comment and good luck to you too!

  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,345
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Using the lives object is global for the entire application, and require less coding. Absolutely recommended. You define the default number of lives in the Runtime Options tab of the Application Properties.
    If you for some reason don't want to use the lives object, or have other values that shouldn't be reset when the frame ends, you can use Global Values. You find them in the Values tab of the Application Properties. Both Lives and Global Values will stay in memory until the game is closed.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 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)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,423
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    make sure you don't set lives back to 3 again at start of level. that's probly why lives isn't going down.
    set lives in another frame.

  6. #6
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    653
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks sparckman, thats not what was up. It was restarting the frame with what values were there at start of frame. By changing that to jump to frame "frame" it restarts the current frame while subtracting what it is supposed to

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 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)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,423
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

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

    Re: BOSS movement pattern - Help

    Edit, I meant by my last post that I got it figured out but ill check yours out as well dude

Similar Threads

  1. Physics fail when frame is restarted.
    By MonDieu72 in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 26th December 2013, 12:44 PM
  2. Add/Subtract Effects
    By ProdigyX in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 20th February 2012, 03:20 PM
  3. Subtract effect
    By Felik in forum Hardware Accelerated Runtime
    Replies: 2
    Last Post: 24th October 2011, 01:58 PM
  4. Lives and scores from frame to frame
    By eric1894 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th November 2008, 01:18 PM
  5. Overlay add/subtract?
    By UltimateWalrus in forum Multimedia Fusion 2 - Technical Support
    Replies: 21
    Last Post: 18th July 2006, 03:16 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
  •