The Dink Network

Reply to Re: Achievements

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 30th 2014, 11:37 PM
custom_coco.gif
CocoMonkey
Bard He/Him United States
Please Cindy, say the whole name each time. 
I came up with a little solution for having two achievements happen at once.

//first, let's check to see if an achievement is already displaying right now
checka:
int &check = get_sprite_with_this_brain(95, 0)

if (&check > 0)
{
//Already a banner up! Let's wait a second and try again
//And since we're waiting, let's make sure this script doesn't die in the mean time.
//Not sure this is necessary, but it can't hurt.
script_attach(1000)
wait(1000)
goto checka
}


With that at the beginning of achievement.c, if you get two achievements at the same time, the second one will wait around until the first one is gone and then display as normal.