This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-12-16 09:11:23

fillergames
Scratcher
Registered: 2012-10-15
Posts: 1000+

How could i make achievements?

I know how to make the objectives to get them. I just need to show a list of lock/unlock achievements.


http://i50.tinypic.com/2ufvxc5_th.gif Grammer? Whats grammar?

Offline

 

#2 2012-12-16 21:58:17

fillergames
Scratcher
Registered: 2012-10-15
Posts: 1000+

Re: How could i make achievements?

Anyone?


http://i50.tinypic.com/2ufvxc5_th.gif Grammer? Whats grammar?

Offline

 

#3 2012-12-17 18:22:44

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: How could i make achievements?

You can create a list called "achievements" and make the respective values of each entry in the list the logic behind whether each achievement has been unlocked. 

Thusly, the game would start with all entries having a value of "0" (or locked) and whenever the conditions for each achievement is met, change that value to "1"  (so if the third achievement is completed, "replace item (3) of "Achievement List" with 1." 

To display the achievements, you can have sprites that check for each entry whether that value is 1, and to show or hide accordingly.

An example is provided here using a slightly different method, there's a list called "remaining achievements" that deletes each achievement entry from the list when it is completed.  The sprite that lists out the achievements checks if that entry is missing, and if it is, it considers it unlocked.

Last edited by Kileymeister (2012-12-17 18:23:51)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#4 2012-12-17 22:33:30

fillergames
Scratcher
Registered: 2012-10-15
Posts: 1000+

Re: How could i make achievements?

Kileymeister wrote:

You can create a list called "achievements" and make the respective values of each entry in the list the logic behind whether each achievement has been unlocked. 

Thusly, the game would start with all entries having a value of "0" (or locked) and whenever the conditions for each achievement is met, change that value to "1"  (so if the third achievement is completed, "replace item (3) of "Achievement List" with 1." 

To display the achievements, you can have sprites that check for each entry whether that value is 1, and to show or hide accordingly.

An example is provided here using a slightly different method, there's a list called "remaining achievements" that deletes each achievement entry from the list when it is completed.  The sprite that lists out the achievements checks if that entry is missing, and if it is, it considers it unlocked.

Thanks! This helps alot.


http://i50.tinypic.com/2ufvxc5_th.gif Grammer? Whats grammar?

Offline

 

#5 2013-01-08 12:45:28

GrateGames
Scratcher
Registered: 2012-12-30
Posts: 15

Re: How could i make achievements?

First make a sprite with the acheivement show icon and make 2 costumes with it, in fact please check this project out download it and see how i did the acheivements! I am not spamming i am just trying to help him/she!

Offline

 

#6 2013-01-09 10:44:24

GrateGames
Scratcher
Registered: 2012-12-30
Posts: 15

Re: How could i make achievements?

Offline

 

Board footer