Got another problem with Gnet and zombies.
"Zombies cannot be synced" is a message I get from time to time while playing my game. It only appears when one player is standing on top of another player and shooting. This means that the bullets hits the target as soon as they are created. Looks like I create and remove bullets too fast for Gnet. :P
I had the same problem earlier when a player was shooting outside the screen. (The playfield is warping so players going too far to the right will end up on the left side of the screen, but bullets cannot warp)
I solved that problem by giving bullets a limited life time instead of just removing them when they leave the screen, but I have no idea of how I should solve the stand-on-top-of-foe bug.
I call GnetSync and flushmem so that's not the problem. I used the gnet demo over here http://www.blitzbasic.com/Community/posts.php?topic=50966#568079
as a guide on how to use gnet and can't find what's so different between that one and my code.
Anyone had this problem before and some ideas I could try?
"Zombies cannot be synced" is a message I get from time to time while playing my game. It only appears when one player is standing on top of another player and shooting. This means that the bullets hits the target as soon as they are created. Looks like I create and remove bullets too fast for Gnet. :P
I had the same problem earlier when a player was shooting outside the screen. (The playfield is warping so players going too far to the right will end up on the left side of the screen, but bullets cannot warp)
I solved that problem by giving bullets a limited life time instead of just removing them when they leave the screen, but I have no idea of how I should solve the stand-on-top-of-foe bug.
I call GnetSync and flushmem so that's not the problem. I used the gnet demo over here http://www.blitzbasic.com/Community/posts.php?topic=50966#568079
as a guide on how to use gnet and can't find what's so different between that one and my code.
Anyone had this problem before and some ideas I could try?