Thank you so much for your feedback, it means a lot. About the distorted sounds I thought it would be fitting for a horror game thats why I kept it that way. Also, there are a couple walls I hit while making the game and I couldn't understand why, like the secret notes that take you to two 2D levels if you find them, but it makes sense now how out of place the first 2D level was. And again thanks for the comment.
Diving Dev
Creator of
Recent community posts
Hey everyone, I was working on my game then I hit a wall, the shooting delay and reloading is not working, even though I followed everything in a tutorial but it just doesn't work. Here is the part of the code:
if Input.is_action_just_pressed("shoot primary") && can_shoot == true && current_ammo > 0:
can_shoot = false
current_ammo = current_ammo - 1
$"Head/Camera3D/SpringArm3D/retro shotgun/reload timer".start()
$"Head/Camera3D/SpringArm3D/retro shotgun/AnimationPlayer".play("shot animation")
var bullet_instance = bullet.instantiate()
bullet_instance.position = pos.global_position
bullet_instance.transform.basis = pos.global_transform.basis
get_parent().add_child(bullet_instance)
$"Head/Camera3D/SpringArm3D/retro shotgun/handle/GPUParticles3D".emitting = true
$"Head/Camera3D/SpringArm3D/retro shotgun/handle/GPUParticles3D2".emitting = true
elif current_ammo <= 0:
can_shoot = false
$"Head/Camera3D/SpringArm3D/retro shotgun/reload timer".start()
$"Head/Camera3D/SpringArm3D/retro shotgun/AnimationPlayer".play("reload animation")
else:
can_shoot = true
func _on_cooldown_timer_timeout():
print("aaaaaaaaaaa")
I would appreciate the help.
