in this how to play screen there are still ~ 600 sprites.
i made a function that delete any sprite under mouse cursor.
sometimes you can see the count of managed sprite go down often at the same location.
this DisplayHowToPlayScreen is also very long, you should try to make it more functional.
something like this i would put into a type, then you have only one variable that you can give a function by reference
HowToPlayClearDirection = Horizontal
HowToPlayClearAll = FALSE
HowToPlayShowAll = TRUE
type howto
HowToPlayClearDirection
HowToPlayClearAll
HowToPlayShowAll
endtype
local game as howto
game.HowToPlayClearDirection = Horizontal
game.HowToPlayClearAll = FALSE
game.HowToPlayShowAll = TRUE
function Test()
print ("Managed Sprite Count "+str(GetManagedSpriteCount()))
local spr as integer
if GetPointerState()=1
spr=GetSpriteHit(GetPointerX(),GetPointerY())
DeleteSprite(spr)
endif
endfunction
AGK (Steam) V2017.09.25 : Windows 10 Pro 64 Bit : AMD (17.11.4) Radeon R7 265 : Mac mini OS High Sierra (10.13)