8 Directional Sprite Billboarding

Godot 4.2.x

Hello, I want to change the appearance of the sprites when we return to the doom-style 8-way camera, but I could not find any tutorial, what should I do for Godot 4?

I’ve been gaming for a LOOOOOOOONG time and I have no idea what “doom-style 8-way camera” is.

Maybe my old age is showing. :sweat_smile:

Like this sir https://www.youtube.com/watch?v=q0sLPbyIbQg&ab_channel=Miziziziz
:smiley:

1 Like

Off the top of my head:

You have 8 animated sprites rendered as billboard.
The correct sprite will be shown depending on the facing of the entity relative to the camera.

I think that’s the basic of things.

Yeah sir but I can’t figure out how can do it :smiley:

That youtube video shows how to do it and links to the source, did you have some issues with that implementation?

1 Like

Actually, It works but i have one problem when I scale up the enemy the angles are not working properly…

But I fixed :slight_smile: Thanks a lot for your answers.