appwarp

AS3. How to set-up players for real-time game?

橙三吉。 提交于 2019-12-13 06:49:09
问题 I'm creating flash fighting game 1vs1. Here is Hero (local-player) and Enemy (remote-player). How I need to setup them correctly that after connection to arena they will be spawned successfully? I mean if player 1 connects to arena he should be declared as Hero (local-player) and for him player 2 should look like Enemy (remote-player). The same for player 2. He should be declared as Hero (local-player) and for him player 1 should look like Enemy (remote-player). Here are 2 character's