User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 20

Thread: My Achievement system (it works, but sucks?)

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Red face My Achievement system (it works, but sucks?)

    I have created an Achievement system for my game and uploaded an example of it. It works, but I feel that its a very clumsy system I have made (160 events).

    I wonder if someone who is a better coder then my could look at it and maybe change it so its not so clumsy and have so many events? Its also a real headache to add new stuff or extra achievements to it as it is now I feel with this many events and conditions.

    Also I used up a lot of global values to be able to check if an achievement have been unlocked in the game and set the direction of the medal to the right direction if it has been fulfilled. Maybe I could use something else then globals? It need to be able to carry over all frames though.

    I have attached my example to this thread. You can mouse over an achievement to make it "pulsate" and display its text. You can also use the arrow keys to jump between achievements if the player prefer keyboard controls.
    Attached files Attached files

  2. #2
    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)
    Outcast,.it seems to be working the way it should. What don't you like about it and what are you trying to accomplish?

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by TheSmanman View Post
    Outcast,.it seems to be working the way it should. What don't you like about it and what are you trying to accomplish?
    Yes it works very well, but I just feel that I over complicated things with my coding? Maybe I didn't.. It just feels like the same results could be achieved with much lesser coding then 160 events? And if I want to put in more achievements I think I will have to change almost all the events to match this. It just feels a bit clumsy :/

  4. #4


    Join Date
    Jul 2011
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I made something similar...
    with 2 events 0.o
    Something similar but without sound and all that

    Download it and try it
    Attached files Attached files

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by devripper View Post
    I made something similar...
    with 2 events 0.o
    Something similar but without sound and all that

    Download it and try it
    Wow 2 events!
    It would be very nice if I did just a mouse based game I need it to support keyboard controls at the same time however, and preferable have an event that make the animation of the button "pulsating" by changing its size in event instead of by an extra animation (I need to conserve as much file size as possible due to it being for the Flash market)

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2006
    Location
    UK
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should make use of qualifiers, and then strings / values within the objects - as devripper has done with his example. You can cut down your amount of events by a long way even with keyboard control

    Your goal should be to try and make the system as dynamic as possible, so that it is very easy to add a new achievement and not have to change any code at all, other than the starting values of the new object (achievement)

    At least this is the way I would tackle this over the way you have done it.

  7. #7
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Uh yeah I would use qualifiers and strings and values stored in the objects in question to cut down on a lot of events.

  8. #8
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Could someone show how this would be made to work with both mouse and keyboard controls at the same time?

    I am having some vague idea about having an active object and events that if you press Down key for example it sets the active object to its Y position + 15 or something and turn on a flag. Then it always activates the button the active is currently overlapping. But I dont know if this is best method..

  9. #9
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jan 2010
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here you go. But this only works for the up and down arrow. If you want achievements to the sides too, you will need to do some changes :P
    Attached files Attached files

  10. #10
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Bow down to this.

    Global achievement system using no global values.
    Attached files Attached files

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Any way to check an achievement was sent on PC?
    By mobichan in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 9th November 2013, 09:23 PM
  2. [Gamecenter] Notification on Achievement
    By Sphax in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 29th October 2013, 01:32 PM
  3. GameCenter Achievement Object Bug (and fix) [beta 8]
    By UrbanMonk in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 14th May 2013, 11:43 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
  •