User Tag List

Results 1 to 3 of 3

Thread: Count number of times a frame has restarted?

  1. #1
    Clicker Fusion 2.5

    Join Date
    Jun 2014
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Count number of times a frame has restarted?

    I'm currently working on a small platforming game that requires resetting the current frame whenever the player gets through it. I need a way to count how many times the frame has reset, but naturally any counter I try to use just gets reset back to zero when the frame resets. Is there any way to work around this?

    Thanks and appreciation in advance.

  2. #2
    Clicker Fusion 2.5 DeveloperiOS 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)
    Sumo's Avatar
    Join Date
    Jul 2008
    Posts
    642
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Use a global value. Global values are internal counters in your game that save the value across multiple frames. When your frame resets, add 1 to Global Value A (located under the special conditions). You can rename this global values too in the properties window if you select your application/game name in the workspace toolbar. It's under the 4th tab named "Values" similar to changing alterable value names when selecting active objects.

    Then always set a counter in game to that global value A. That should work.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jul 2010
    Location
    Belgium
    Posts
    246
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    - Start of Frame
    + Add 1 to Global Value 1

Similar Threads

  1. Count number of times a number appears
    By Hydra in forum Fusion 2.5
    Replies: 3
    Last Post: 13th October 2014, 06:13 PM
  2. Lives won't subtract when frame is restarted
    By Warmachine in forum Fusion 2.5
    Replies: 7
    Last Post: 16th September 2014, 03:04 PM
  3. Physics fail when frame is restarted.
    By MonDieu72 in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 26th December 2013, 01:44 PM
  4. Making animation play random number of times....
    By mussashimits in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 18th July 2007, 01:37 AM
  5. Animate a Random number of times
    By Sarah in forum File Archive
    Replies: 0
    Last Post: 17th July 2007, 08:20 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
  •