#Importing a 3d model with animations

1 messages Β· Page 1 of 1 (latest)

jagged jackal
limber dragon
#

@jagged jackal

jagged jackal
jagged jackal
#

@limber dragon godot 4 comes with preset coding lol. how should I fill this?

#

Ik it's telling me some of it, but lines 7 to 8 and 20 to 26 are still confusing lol

limber dragon
#

I think 7 and 8 are just a nice way to have a uniform gravity setting across all your scripts
22 to 26 are just a simple straightforward way to accept user input and convert that to a direction vector πŸ‘

#

You could always start from scratch too if you wanted to. So if you were following some other movement based example you could just scrap all the template code and begin from a clean slate πŸ‘

jagged jackal
#

But some things aren't working

limber dragon
#

It appears Spatial is not a class in Godot 4.x, i think what class that Fox node is is probably Node3D

limber dragon
#

My guess is you are trying to follow along to a Godot 3.x tutorial using Godot 4.x
Unless you are pretty comfortable looking up what has changed between the versions and making the translations, I must warn you you may be in for some tough sledding.

jagged jackal
jagged jackal
limber dragon
#

Feel free to do what suits you! πŸ‘πŸ˜πŸ‘I would just get really familiar with this page right here

#

So that you can see which nodes have been renamed

jagged jackal
limber dragon
#

No problem, yeah just so you understand my motivation:

If a student comes in here and has a post like β€œhelp! This code isn’t working in Godot 4.x!”
And then I look up the node type and what it was changed to, technically I’m the one who is learning Godot 4.x right? And not only that, I’m practicing a technique that I can use to bail me out of many many more similar situations that are bound to come up as I try to adapt at 3.x tutorial to 4.x

By encouraging you to look up the changes and figure them out on your own, I’m trying to equip you to become a) more self-reliant and b) learn the Godot 4.x engine inside and out and have those aha moments of β€œah yes, I see this node has been changed to this name.”

Hope that makes sense πŸ‘