You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
588 B
31 lines
588 B
if (open == 1)
|
|
{
|
|
if (image_index < (sprite_get_number(sprite_index) - 1))
|
|
image_index += 0.5
|
|
}
|
|
if (open == 0)
|
|
{
|
|
if (image_index > 0)
|
|
image_index -= 0.5
|
|
else if (showlock == 0)
|
|
{
|
|
if (lockdelay > 0)
|
|
lockdelay -= 1
|
|
else
|
|
{
|
|
showlock = 1
|
|
if (lock == 4)
|
|
sfx_play_single(232)
|
|
}
|
|
}
|
|
if highlight
|
|
{
|
|
hltimer += 0.15
|
|
if (hltimer > 99999999)
|
|
hltimer = 0
|
|
hlalpha = abs(sin(hltimer))
|
|
if (hlalpha > 1)
|
|
hlalpha = 1
|
|
}
|
|
}
|