Achievements
Achievements are goals that can only be one of two values: reached or not reached. GameMaker Server provides a collection of functions for implementing achievements and syncing them to an online account or username.
There's no maximum number of achievements. Every achievement has a short name. This is used to easily distinct different achievement. An achievement named 'reach_level10' is easier to recognise than an achievement named '946258.'
Replies (5)
Last message on 15 Mar 2015
When i use multiple achievements they for some reason just don't work.
1. I don't get the achievement up in the upper left corner.
2. When i use gms_show_achievements() all the achievements will be called the name of the last achievement i put in. Btw when i move around in a bigger room while having gms_show_achievements() open, the box doesn't follow me. Looks kinda silly.
3. I am using the latest version (1.8.3)
And could you please tell me what the extension for an achievement is? I am setting them as blank. Maybe that is the problem?
Nvm the first part of number 2, but the thing with i can't see the achievements and the gms_show_achievements() bug is actually true. Apparently it doesn't support views. Is there a way to fix that?
Size43
(Administrator)
on
15 Mar 2015, 17:19:55
You can use
gms_show_set_position to change the position of the overlay. Use view_xview, view_yview, view_xview+view_wview, view_yview+view_hview to set it to a view (add the [...] after every variable)
Do you mean Extension name by "extension"? The extension name is used to identify achievements in your code. So you'd use something like
gms_achievement_something("extension_name")
I get an error like this:
___________________________________________
ERROR in
action number 1
of Begin Step Event
for object __newobject1:
In extension function gms_step:
Error in code at line 380:
gms_show_message(global.__as_get + " " + gms_action_get_argument_string(0))
^
at position 46: Unknown variable __as_get
Size43
(Administrator)
on
1 Dec 2014, 20:32:22
This will be fixed in update 1.8. A workaround: place this code right below the gms_settings call:
global.__as_get = "Achievement:";