Quote: "- Fixed DeleteTween causing a crash on Android"
The following script stops the app responding, happens on a compiled Windows exe, broadcasting to android or as an apk running on Android. Not sure if it's related to the above or just bad coding on my part but see for yourself, run script then press space bar once the sprites are moving.
// Project: GWtest
// Created: 2014-10-29
SetWindowTitle( "GWtest" )
SetWindowSize( 1024, 768, 0 )
SetVirtualResolution( 1024, 768 )
CreateTweenSprite(1, 2.0)
CreateSprite(1,0)
SetSpriteColor(1, 255,0,0,255)
SetSpriteSize(1, 100, 100)
SetSpritePosition(1, 100, 234)
SetTweenSpriteX(1, 100.0, 824.0, TweenSmooth2())
PlayTweenSprite(1,1,0.0)
CreateTweenSprite(2, 1.0)
CreateSprite(2,0)
SetSpriteColor(2, 0,0,255,255)
SetSpriteSize(2, 100, 100)
SetSpritePosition(2, 100, 434)
SetTweenSpriteX(2, 100.0, 824.0, TweenBounce())
PlayTweenSprite(2,2,0.0)
do
If GetTweenExists(1) AND Not GetTweenSpritePlaying(1, 1)
If GetSpriteX(1) = 824
SetTweenSpriteX(1, 824.0, 100.0, TweenSmooth2())
Else
SetTweenSpriteX(1, 100.0, 824.0, TweenSmooth2())
EndIf
PlayTweenSprite(1,1,0.0)
EndIf
If GetTweenExists(2) AND Not GetTweenSpritePlaying(2, 2)
If GetSpriteX(2) = 824
SetTweenSpriteX(2, 824.0, 100.0, TweenBounce())
Else
SetTweenSpriteX(2, 100.0, 824.0, TweenBounce())
EndIf
PlayTweenSprite(2,2,0.0)
EndIf
If GetRawKeyPressed(32) And GetTweenExists(1)
//StopTweenSprite(1,1) // Belt and braces but makes no difference
DeleteTween(1)
EndIf
Print( "Press <space> to delete the red tween" )
Print( Str(ScreenFPS(),2) )
UpdateAllTweens(getframetime())
Sync()
loop
Paul, AGK2 is a fantastic leap forward, so thanks for all your efforts.
"It is said that your life flashes before your eyes just before you die. That is true, it's called Life.”