i had no problems with AGK_Player_Beta108_6 and 108 8 IDE.
i using pc>router<wlan<tablet
rem
rem AGK Application 108B8
rem
SetDisplayAspect ( 4.0 / 3.0 )
LoadImage ( 1, "chip5.png" )
CreateSprite ( 1, 1 )
SetSpritePosition ( 1, 10, 20 )
SetSpriteSize ( 1, 10, -1 )
LoadImage ( 2, "chip25.png" )
CreateSprite ( 2, 2 )
SetSpritePosition ( 2, 50, 20 )
SetSpriteSize ( 2, 10, -1 )
State = 0
xType = 0
NetworkID = 0
do
if State = 0
Print ( "Select yellow chip to host a game" )
Print ( "Select blue chip to join a game" )
if GetPointerPressed ( ) = 1
hit = GetSpriteHit ( GetPointerX ( ), GetPointerY ( ) )
if ( hit = 1 )
NetworkID = HostNetwork ( "AGK Test Game", "Player 1", 1025 )
xType = 0
endif
if ( hit = 2 )
NetworkID = JoinNetwork ( "AGK Test Game", "Player 2" )
xType = 1
endif
State = 1
endif
endif
//--------------------------------------------------------------------------
if State = 1
if IsNetworkActive ( NetworkID ) <> 0
id = GetNetworkFirstClient ( NetworkID )
while id <> 0
Print ( GetNetworkClientName ( NetworkID, id ) )
id = GetNetworkNextClient ( NetworkID )
endwhile
if xType = 0
//send position
x# = GetSpriteX ( 1 ) + GetDirectionX ( )
y# = GetSpriteY ( 1 ) + GetDirectionY ( )
SetSpritePosition ( 1, x#, y# )
messageid = CreateNetworkMessage ( )
AddNetworkMessageFloat ( messageid, x# )
AddNetworkMessageFloat ( messageid, y# )
SendNetworkMessage ( NetworkID, 0, messageid )
endif
if xType = 1
//get position
messageid = GetNetworkMessage ( NetworkID )
while messageid <> 0
x# = GetNetworkMessageFloat ( messageid )
y# = GetNetworkMessageFloat ( messageid )
SetSpritePosition ( 1, x#, y# )
DeleteNetworkMessage ( messageid )
messageid = GetNetworkMessage ( NetworkID )
endwhile
endif
endif //NetworkID
endif
Sync ( )
loop
end