Hello OscarVezz,
When I use your pre-built charging system I run into the following problem.
I run the following code in the _process func of my weapon script.
if charging and Input.is_action_pressed("mb_left"):
projectile_manager.request_execution(0,0,end_of_gun.global_position,get_global_mouse_position())
if Input.is_action_just_released("mb_left"):
charging = false
The weapon gets charged properly and discharges at the correct time BUT the projectile is not spawned where the last "request_execution" method call happened but at the position where I started charging the weapon.
For charge-type CONTINUOUS this means where I started pressing the left mouse button.
For DISCRETE this means where I started the charging intervall that triggered the discharge. Independently of how much it was charged already.
For MANDATORY this means were I pressed the mouse button.
Activating "position override" introduces new problems and I would prefer to spawn the bullet at a position of my choosing.
Is that a mistake on my side? If so it would be greatly appreciated if you could point me into the right direction. Or maybe it is a bug and you did not encounter it because the grand frog mage (!) in your example scenes is stationary?
Thank you in advance