Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Doom-like 8-directional sprites... but in multiplayer

Discussion in 'General Graphics' started by citizengoosevv, Oct 29, 2020.

  1. citizengoosevv

    citizengoosevv

    Joined:
    Jun 27, 2019
    Posts:
    11
    So, I want to make enemies like the ones in Doom, in the sense that they are 2D sprites, and depending at what angle you are facing them, their sprite changes to that corresponding sprite.

    I can do that with a script... if it was singleplayer. I want to add multiplayer. Imagine I have an enemy, and two players facing it from the front and back. How can I make the enemy show player1 the front and player2 the back?
     
  2. JoNax97

    JoNax97

    Joined:
    Feb 4, 2016
    Posts:
    611
    You would do that exactly like you do in single player. Sync the position and rotation of the enemies over the network and calculate the sprite locally for each player