How would I go about making a sprites animation for shooting change based on the mouse position.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By THE_PHISH

I am trying to implement a sort of run and gun system for my game where the player can run in a direction and shoot in a separate one. How would I go about implementing this?

Is this a 2D game? What do your sprites look like right now?

exuin | 2021-03-07 22:04

:bust_in_silhouette: Reply From: Tato64

Is this a side-scroller or a top-down view game?

You could always use a separate sprite for the “arm” and use the “look_at()” function.