How do I change the sprite of an animated 3D sprite based on how you look at it?

I’m trying to make a Wolfenstein 3D inspired 3D Game and can’t manage to get the sprite rotating correctly. The enemy is a animated 3D Sprite and has the behaviour “Billboard”.

What is the expected result

Based on how the Player looks to the Enemy, the enemy should rotate.

What is the actual result

The enemy sprite is set to “StandingFrontRight” all the time.

Related screenshots


The soldier should currently have the sprite for front-facing.


This is the code which should rotate the enemy (currently only from the front to the right) (ignore the windows 7 taskbar, its actually windows 10)

It should be Change angle of soldier set to Player.AngleToObject(ObjectName) + some number here
Instead of some number you should just try few things 1st try -90 and 90 if default value is not ok
Then you can try to adjust it further

1 Like