When i create a few lights with SP_Light_AddPointLight(X#,Y#,Z#,Size#,Red,Green,Blue) int SP_Light.length, then i go to delete with:
SP_Light_Remove(LightID)
agk errors out with an error saying:
Array index out of bounds,index: 4, Array Length: 2 in ./../Templates/ShaderPack/Includes/SP_Lighting.agc at line 94.
Always on the last light getting deleted,no matter which order they get deleted
So when I look there I remmed out the line:
SP_Light.remove(LightID)
which fixed the above error but of course caused errors further down the line!
If need be I can code a seperate example of this but well one would need the shaders pack!
for what it is worth I am running App Game Kit Studio through Steam on Linux Mint!
Hail to the king, baby!