User Tag List

Results 1 to 2 of 2

Thread: Achievements?

  1. #1
    Clicker Multimedia Fusion 2
    Pixzel's Avatar
    Join Date
    Jul 2010
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Achievements?

    Okay, so will this work usnig global events.
    There are certain objectives in my game where you do certain stuff in order to earn these "medals". You can see the medals you unlocked on a different frame that you can access from the main menu of the game. Can anybody tell me how to do this, and how to save it when you close out the program.

  2. #2
    Clicker Fusion 2.5
    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)
    JimJam's Avatar
    Join Date
    Jun 2006
    Location
    USA
    Posts
    353
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Achievements?

    My best guess would be to use the INI++ object. Create a save file, then make a group for "Achievements". If the INI file is global, it should be able to read from any frame in your game.

    From here you can use the Global Events. Just have conditions set the achievements to the INI. Of course, to use active objects like "Player" "Enemy" and "Coins" in the global events, the objects themselves will have to be global (I think, you may be able to "import" them as well).

    + When "Player" kills "Big Enemy"
    + Run this event once
    == (INI++) Set item in "Achievements" "Killed First Big Enemy" to 1
    Of course if you want to achieve via high numbers, you'll need some way to track these values. Something like a Global Value or an Array.

    + When "Player" kills "Enemy"
    + Run this event once
    == Add 1 to "Enemy Killed" global value.

    + When Global Value "Enemy Killed" >= 100
    + Run this event once
    == (INI++) Set item in "Achievements" "Killed 100 Enemies" to 1
    Alternatively, you could just tally up the enemies killed in the INI file. This way, instead of a value of 1 equaling "unlocked achievement" you will only "unlock" if the value is greater or equal to 100.

    + When "Player" kills "Enemy"
    + Run this event once
    == (INI++) Set item in "Achievements" "Killed 100 Enemies" to ((INI++)"Achievements" "Killed 100 Enemies" + 1)
    You can also track achievements that stack like this too. For example, if you have achievements for "Collect 100 coins," "Collect 1,000 coins," and "Collect 1,000,000 coins," you could easily track them in a single item like above. In order to get 1,000,000 coins, you will have to first collect 100 and 1,000 eventually. So you can store this data as one huge "All of My Coins" item.

    + When "Player" collects "Coin"
    + Run this event once
    == (INI++) Set item in "Achievements" "All of My Coins" to ((INI++)"Achievements" "All of My Coins" + 1)
    Then just check if the values match.

Similar Threads

  1. Mochi Achievements
    By Mephistus in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 18th January 2013, 07:55 AM
  2. Achievements Problem
    By virtualrom in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 4th September 2012, 07:39 AM
  3. Achievements with different users
    By Renatos in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 11th March 2012, 10:19 PM
  4. achievements
    By life2searching in forum SWF/Flash Export Module Version 2.0
    Replies: 7
    Last Post: 4th March 2011, 10:42 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
  •