![]() This makes the motion smooth again without needing any more data. ![]() For example if data is coming in every other frame, then the frame which does not receive an update will use a value half way between the two updates either side. In the case of positions, it will linearly interpolate between updates. To improve the gameplay experience, the multiplayer engine interpolates between updates for values like X and Y co-ordinates. I am confused whether photon is not giving smoothness or maybe I'm doing something wrong So then I have used another approach of sending angel of motion and bullet speed to both players and that how Ball is moving smoothly until paddle hits ball which can change paddle's angel and then both balls are going in different directions. ![]() ![]() I have used every Tick event ( which is just to show that this event runs every tick i know that)īall only moving at player 1's game and player 1 sends ball position every tick to player 1.īut I am facing extreme lag as if Data is getting loss in between and not receiving all the data sent. Hello guys, I have made simple pong game just for seeing if photon can be used to make smooth multiplayer games.Ĭonsider a scenario : A ball in pong game moves on its own and the moment change happens only either paddle hits the ball or ball gets hit on walls. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |