User Tag List

Results 1 to 5 of 5

Thread: Save level counter issues on a failed level

  1. #1
    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,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Save level counter issues on a failed level

    Ok,.this is going to be hard to explain (I think). I have a number of objects that need to be destroyed in every level to advance to the next level.

    First level starts with 2 objects. You need to destroy at least one of the objects or both for a "perfect" and to advance to the next level. Each level adds one more object,.so the next level there are 3 objects and you need to destroy at least 2 of them to advance and so on. I have an INI that records your best score or number of objects destroyed and it works great,.... Now here's the bad part. Say I'm on the second level (3 objects),.but I only destroy 1 (it still adds it to my best score even though I only destroyed 1) and the level is a "FAIL" because I didn't destroy at least 2 objects and restarts on that level. How can I not add to my best score if it's a failed level?

    I know you are probably saying, what the heck is he talking about!! LOL.

    I guess the best solution is just save the level the player is on instead of the number of objects destroyed.

  2. #2
    Clicker 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)
    Bree's Avatar
    Join Date
    May 2014
    Posts
    317
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hmm.. I can't think of a way to do it either without saving which level the player is on first. If you did that you could use that to determine if it saves or not. Hopefully someone has a good idea for you!

  3. #3
    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,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thank you. I know it has me totally baffled of a way to do this.

  4. #4
    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,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Ended up saving the level the player is on and saving total objects/points also. Worked out better without any crazy math expressions..

  5. #5
    Clicker Fusion 2.5 Developer
    PBarwick's Avatar
    Join Date
    Jul 2014
    Posts
    390
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I would have suggested only saving when the 'Level complete' condition is reached, glad you found an alternative way

Similar Threads

  1. Game over AND level failed
    By playdiune in forum Fusion 2.5
    Replies: 2
    Last Post: 28th November 2014, 05:31 PM
  2. Level-Save Object
    By Jaffob in forum Released Extensions
    Replies: 2
    Last Post: 23rd January 2014, 04:25 PM
  3. Level-Save Object
    By MechatheSlag in forum Extension Development
    Replies: 16
    Last Post: 29th July 2009, 04:38 PM
  4. New Extension: Level Save
    By Jeff in forum News
    Replies: 0
    Last Post: 26th June 2009, 05:54 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
  •