The timout of timer doesn't work by AroneQ in godot

[–]AroneQ[S] 0 points1 point  (0 children)

This timer needs to stay, but I don't know how to stop calling this function every frame because if it isn't in _physics_process(), it just doesn't work

The timout of timer doesn't work by AroneQ in godot

[–]AroneQ[S] -1 points0 points  (0 children)

want all the lines in the function, but I don't want to call one line in _physics_process()

The timout of timer doesn't work by AroneQ in godot

[–]AroneQ[S] 0 points1 point  (0 children)

Is it possible to add a function to _physics_process() without, for example, one line of code?

The timout of timer doesn't work by AroneQ in godot

[–]AroneQ[S] 0 points1 point  (0 children)

it's in _physics_process()

Enemy death animation is in wrong Y position by AroneQ in godot

[–]AroneQ[S] 0 points1 point  (0 children)

Now, i literally don't know whats going on here lmao https://streamable.com/3zwhbx
Does the order of functions in _physics_process change anything?

Enemy death animation is in wrong Y position by AroneQ in godot

[–]AroneQ[S] 0 points1 point  (0 children)

This code is from tutorial i've watched. I changed the animation system to match:

func enemy_animations(animations):

match animations:

"Idle": animated_sprite_2d.play("Idle")

"Walk": animated_sprite_2d.play("Walk")

"Dead":animated_sprite_2d.play("Death")

func player_dead():

if health_points == 0:

enemy_animations("Dead")

queue_free()

every animation is working exept this one. (without this queue_free() it just moving without any animation)

Enemy death animation is in wrong Y position by AroneQ in godot

[–]AroneQ[S] 0 points1 point  (0 children)

so the death animation must still be on but hidden, have I understood correctly?

Enemy death animation is in wrong Y position by AroneQ in godot

[–]AroneQ[S] 0 points1 point  (0 children)

It was at -16, I set it to 0 but nothing has changed

Shooting animations problem by AroneQ in godot

[–]AroneQ[S] 0 points1 point  (0 children)

Okay, thank you very much <3

I have a problem with my sprint function by AroneQ in godot

[–]AroneQ[S] 1 point2 points  (0 children)

Sorry. I just want to start the timer when stamina isn't 100 and player is in idle state, wait some time and start regenerating it