Title Screen:
global.timeRecord01 = 9999999
I have a persistent object with this code:
scr_BossArrays()
scr_BossArrays:
global.timeRecord[1] = global.timeRecord01
Boss Create Event:
global.bossNo = 1
When the boss dies:
if global.bossTotalHP <= 0
{
script_execute(scr_EndFight,boss01_A,boss01_B,boss01_C,global.timeRecord01)
}scr_EndFight:
if global.timeValue < global.timeRecord[global.bossNo] && global.title != 12
{
global.timeRecord[global.bossNo] = global.timeValue
}Here's the relevant code that I need help with.
if global.bossTotalHP <= 0
{
script_execute(scr_EndFight,boss01_A,boss01_B,boss01_C,global.timeRecord01)
}boss01_A, B, and C are all constants that work perfectly.global.timeRecord01 is your best time on the first boss, in tenths of a second.
scr_EndFight:
if global.timeValue < argument3
{
argument3 = global.timeValue
}This code changes your best time if you beat the boss more quickly. However, it always changes, regardless of your time.
So what can I do to fix this? There's obviously something I don't fully understand.
Edited by Mr Weird Guy, 01 May 2012 - 05:01 AM.











