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.

Newcomers AppGameKit Corner / multi-player (lan) and sprite physics

Author
Message
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 21st Aug 2015 03:47
Hi, I have wrote code learning from Hands On AppGameKit Basic which I had purchased a while ago, all the players sprites get their physics turn on, all the level loaded also! I send the x&y coordinates of each back and forth between host and client of course, but I notice the physics don't seem to work as the player can struggle and get through the sprites physics! what do I need to add to stop this?
here is a screen shot of it happening:


the player starts off on the other side of the crate and has just managed to bust through so to speak, the game running is acting as a host, physics debug is on of course to see things!


thanks!

Hail to the king, baby!

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 23rd Aug 2015 09:54
If he has burst through, then it is possible that the movement was too large to detect. You will need to set the player to have continuous collison detection (CCD), which is what is normally used for bullets. I don't recall the exact command at the moment.

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt

Login to post a reply

Server time is: 2024-11-21 15:11:32
Your offset time is: 2024-11-21 15:11:32