Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Network code problem

Author
Message
DMJ
13
Years of Service
User Offline
Joined: 6th Sep 2011
Location: Australia
Posted: 13th Jul 2016 05:53
The player doesn't move over a network. I uploaded the zip but here is the code.



Thank you for your time.

Attachments

Login to view attachments
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 13th Jul 2016 07:21 Edited at: 13th Jul 2016 07:25
hi,

i think cliendid+1 is not the sprite
SetSpritePosition ( clientid+1,playerx#,playery#)

try print here for testing
playerx# = getnetworkclientfloat(netid,clientid,"x")
playery# = getnetworkclientfloat(netid,clientid,"y")
print("getnetworkclientfloat x,y")
print(playerx#)
print(playery#)
AGK (Steam) V2.0.20 : Windows 10 Pro 64 Bit : AMD (16.3.2) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
DMJ
13
Years of Service
User Offline
Joined: 6th Sep 2011
Location: Australia
Posted: 14th Jul 2016 08:09 Edited at: 14th Jul 2016 19:07
DMJ
13
Years of Service
User Offline
Joined: 6th Sep 2011
Location: Australia
Posted: 14th Jul 2016 08:11 Edited at: 14th Jul 2016 19:06

Login to post a reply

Server time is: 2024-11-25 05:45:34
Your offset time is: 2024-11-25 05:45:34