SetVirtualResolution(1080,1920) //1080p Cross-Platform Resolution : Created: 2017-02-13 : Project: Cool 8 line'er
SetOrientationAllowed(1,0,0,0) :SetSyncRate(60,0) :UseNewDefaultFonts(1) :t As Integer :For t=1 to 10 :CreateSprite(t,0) :Next t
SetSpriteColor(1,255,0,0,255) :SetSpriteScale(1,10.0,5.0) :SetSpriteColor(2,0,255,0,255) :SetSpriteScale(2,10.0,5.0)
SetSpriteColor(3,0,0,255,255) :SetSpriteScale(3,10.0,5.0) :SetSpriteColor(4,255,0,255,255):SetSpriteScale(4,10.0,5.0)
SetSpriteColor(5,0,255,255,255):SetSpriteScale(5,10.0,5.0) :Index As Integer
Do :Index=GetRawFirstTouchEvent(1) :While Index>0 :SetSpritePosition(Index,GetRawTouchCurrentX(Index)-50.0,GetRawTouchCurrentY(Index)-150.0)
Index=GetRawNextTouchEvent() :EndWhile
PrintC(" "+"ScreenFPS "+Str(Ceil(ScreenFPS()))+" / ") : Print("Number of touch events _"+Str(GetRawTouchCount(1))) :Sync() :Loop
This will explain the simple process taking place
// *PLEASE OPEN IN A LARGE BROWSER TO VIEW COMPLETE EXPLANATION TEXT*
// Example using LEFT-HAND
// gr( F )te - Stands for - GetRawFirstTouchEvent(1)
// gr( n )TE - Stands for - GetRawNextTouchEvent()
// Red ( First-Finger )
// [ Index = gr( F )te = 1 ]
//[ FirstTouch = Index = 1 ] : SetSpritePosition( Index=1 , GetRawTouchCurrentX(Index=1) , GetRawTouchCurrentY(Index=1) )
//---------------------------------------------------------------------------------------------------------------------
//Index = gr( N )te = 0 : Exit While>0 _ Loop
// Green ( Second-Finger ) Red ( First-Finger )
// [ Index = gr( F )te = 2 ] [ Index = gr( N )te = 1 ]
//[ FirstTouch = Index = 2 ] : SetSpritePosition( Index=2 , GetRawTouchCurrentX(Index=2) , GetRawTouchCurrentY(Index=2) )
//[ Next_Touch = Index = 1 ] : SetSpritePosition( Index=1 , GetRawTouchCurrentX(Index=1) , GetRawTouchCurrentY(Index=1) )
//---------------------------------------------------------------------------------------------------------------------
//Index = gr( N )te = 0 : Exit While>0 _ Loop
//Blue ( Third-Finger ) Green ( Second-Finger ) Red ( First-Finger )
//[ Index = gr( F )te = 3 ] [ Index = gr( N )te = 2 ] [ Index = gr( N )te = 1 ]
//[ FirstTouch = Index = 3 ] : SetSpritePosition( Index=3 , GetRawTouchCurrentX(Index=3) , GetRawTouchCurrentY(Index=3) )
//[ Next_Touch = Index = 2 ] : SetSpritePosition( Index=2 , GetRawTouchCurrentX(Index=2) , GetRawTouchCurrentY(Index=2) )
//[ Next_Touch = Index = 1 ] : SetSpritePosition( Index=1 , GetRawTouchCurrentX(Index=1) , GetRawTouchCurrentY(Index=1) )
//---------------------------------------------------------------------------------------------------------------------
//Index = gr( N )te = 0 : Exit While>0 _ Loop
//Blue ( Third-Finger ) Green ( Second-Finger ) LIFT ( First-Finger )
//[ Index = gr( F )te = 3 ] [ Index = gr( N )te = 2 ] [ Index = gr( N )te = 0 ]
//[ FirstTouch = Index = 3 ] : SetSpritePosition( Index=3 , GetRawTouchCurrentX(Index=3) , GetRawTouchCurrentY(Index=3) )
//[ Next_Touch = Index = 2 ] : SetSpritePosition( Index=2 , GetRawTouchCurrentX(Index=2) , GetRawTouchCurrentY(Index=2) )
//---------------------------------------------------------------------------------------------------------------------
//Index = gr( N )te = 0 : Exit While>0 _ Loop