Fount a couple of bugs today (using AGS 2.54):
1. when starting Drag in sprite manager AGS crushes (wanted to transfer sprite to a diffrent sprite folder...)
2. When using a global function inside another global function, before defining the function itself, the defenition is considered a second declaration when doing "save game"
1. yep this is a known bug, I should really add it to the knowledge base
2. I don't understand what you mean, can you provide an example?
Header:
import function loose_energy ();
import function kill_player (int);
Global:
function loose_energy ()
{
.......
kill_player(1);
.......
}
function kill_player (int why)
{
......
}
---> Error: Already refernced name as import (for fun. kill_player)
<--------------- but
function kill_player (int why)
{
......
}
function loose_energy ()
{
.......
kill_player(1);
.......
}
---->works fine
Please forgive me for this little diatribe.
But.
It's lose not loose.
They mean two totally different things ::)
Forward references are not currently supported - this is not so much a bug as a 'feature'. The solution is as you discovered it.
Thanks for spotting it though.