godotengine / godot-demo-projects

Demonstration and Template Projects
https://godotengine.org
MIT License
5.48k stars 1.53k forks source link

3D Platformer #996

Closed DoctorMikeReddy closed 8 months ago

DoctorMikeReddy commented 8 months ago

Which demo project is affected:

godot-demo-projects/3D/platformer

OS/device including version:

Windows 10

Issue description:

Game hangs with error: Invalid set index 'parameters/state/current' (on base: 'AnimationTree') with value of type 'int'

Screenshots of issue: image

DoctorMikeReddy commented 8 months ago

Fixed. I just had to use transition_request instead of current

Calinou commented 8 months ago

This is already fixed in the latest revision of the demo: https://github.com/godotengine/godot-demo-projects/blob/40ce32c5da977981139d7abedb52c9d4ec01177a/3d/platformer/player/player.gd#L174

Demos on the asset library are only for 3.x, not for 4.x, so make sure to grab demos from this repository in the meantime.

DoctorMikeReddy commented 8 months ago

I did get it from the repo EDIT: Ah, I was on the 4.0 branch where, ironically, this isn't fixed. Assume that 'master' is where I need to be