#Importing a 3d model with animations
1 messages Β· Page 1 of 1 (latest)
Thanks a lot!
@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
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 π
I started from scratch following the tutorial
But some things aren't working
It appears Spatial is not a class in Godot 4.x, i think what class that Fox node is is probably Node3D
let me change it
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.
It is sometimes lol I thought about learning using Godot 3 as most of the documentation comes from it, but I think Godot 4.1 will allow you to code using old coding? So I'd have to learn Godot 4 eventually
Yes, the tutorial is from a year ago so it must be from godot 3
Feel free to do what suits you! πππI would just get really familiar with this page right here
Should I upgrade to Godot 4?: Before beginning the upgrade process, it's worth thinking about the advantages and disadvantages that upgrading would bring to your project. Advantages of upgrading: A...
So that you can see which nodes have been renamed
That'll be useful, thank you!
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 π