Hidden attack circle

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

School project:
Hello there! I currently creating my own 2D jump and run game and wanted to implement a attack mechanic. Basically I want my character to shoot at the point where Im aiming at with my mouse. I looked a lot of stuff online up and I cant find anything related to my problem. Would be nice if someone has some advices.

character shooting circle

:bust_in_silhouette: Reply From: deaton64

you mean something like this: Look at mouse

yes almost. Now whats there missing is a hidden circle on which a crosshair is applied to. So that you see where youre aiming at.

Panni2000 | 2020-04-23 07:15

You could do when the distance_to from your player to the mouse position is less than X, show a crosshair.

deaton64 | 2020-04-23 10:11

thank you! I will try that out~

Panni2000 | 2020-04-23 13:09