You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Animation of the player is not played via code.
I am playing the Animation in _Process with Play() and it worked in 4.1.1 but not in 4.2
Its reproducible. I did it with a minimalProject and only a few lines of Code.
I Will Attach it to this report
Create Childs in characterBody2D:
-- CollissionShape2D with Capsule shape
-- Sprite2D with an simple 4 HFrames and 1 VFrame (walk down animation)
-- AnimationPlayer
In Sprite2D use Spritesheet
-- Hframes 4
-- Vframes 1
In Animation Window create a simple animation wiht Hframe 2 1 3 1
Name the Animation "Move_Down"
Create a script on the characterBody2D (I Simply rightclicked and used Add Script)
using Godot;
public partial class CharacterBody2D : Godot.CharacterBody2D
{
private AnimationPlayer _animPlayer;
public override void _Ready()
{
_animPlayer = GetNode<AnimationPlayer>("AnimationPlayer");
}
public override void _Process(double delta)
{
_animPlayer.Play("Move_Down");
}
}
From now on you can add a camera and zoom for better view and start the project.
The character isnt animating. only the first Hframe 2 of 2 1 3 1 ist shown and then stuck - no error in the console
When I now save the project and start with 4.1.1 without changing anything and start the project, the animation is playing.
Thanks for the report. Looks like a duplicate of #82828 which has been fixed by #82898 in the master. The fix should be in the next 4.2 dev/beta release. Closing as duplicate.
Godot version
v4.2.dev6.mono.official [57a6813]
System information
Godot v4.2.dev6.mono - Windows 10.0.19044 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 (NVIDIA; 31.0.15.3713) - AMD Ryzen 9 3900X 12-Core Processor (24 Threads)
Issue description
Hello there,
The Animation of the player is not played via code.
I am playing the Animation in _Process with Play() and it worked in 4.1.1 but not in 4.2
Its reproducible. I did it with a minimalProject and only a few lines of Code.
I Will Attach it to this report
Here is a Video to Show this problem: https://www.youtube.com/watch?v=DehdC076028
First I start the project inside Godot 4.2, then inside 4.1.1 and there it works.
Steps to reproduce
-- CollissionShape2D with Capsule shape
-- Sprite2D with an simple 4 HFrames and 1 VFrame (walk down animation)
-- AnimationPlayer
-- Hframes 4
-- Vframes 1
From now on you can add a camera and zoom for better view and start the project.
The character isnt animating. only the first Hframe 2 of 2 1 3 1 ist shown and then stuck - no error in the console
When I now save the project and start with 4.1.1 without changing anything and start the project, the animation is playing.
Thank you!
Minimal reproduction project
MinimalProject.zip
I am Sorry: I only able to write C# but I think this issue is not code related since it works fine in 4.1.1
The text was updated successfully, but these errors were encountered: