finepointcgi / FinepointCGI-Suggestions

MIT License
4 stars 0 forks source link

Player interacting with each other, for example in a beat em up game #65

Open SplendidFoxGames opened 6 months ago

SplendidFoxGames commented 6 months ago

Hello,

I have been struggling immensely trying to make a co op beat em up game. At the moment I'm basically trying to get 2 players to grapple each other, and vault over each other, like in Streets of Rage.

I did eventually get it working but I'm sure my approach is garbage, basically when 2 players collide I always have the player with id 1 (the host) run the grapple code, and the other player run the code for being grappled.

However what I really wanted was for player id 1 to decide everything, then set the values on player 2 directly, but I can't seem to do that, the values never change when player 1 tries to change it directly on player 1. So it must be some multiplayer security thing.

So I have no idea if I'm doing this right with my current method or if there is a better way.

Hope you can help.

Thanks in advance.