one question, why did you use _process instead of _physics_process? i tried both and noticed _process seems to trigger more often in this empty game but wouldnt we want to use _physics_process so the input is consistent despite framerate?
_process is tied to frame rate and _physics_process is tied to physics engine ticks. You can change an object's movement in the _process node, but then it won't be synced up with the physics engine and your project will be waiting on the next physics tick to execute it's movement. It also has an affect on your games FPS performance, because if the calculations are slow enough the engine will be waiting on your code to execute before it starts rendering the next frame, but that won't be a problem in the physics process
RigidBody2D, CharacterBody2D, StaticBody2D, KinematicBody2D, which one use? Lets say one of the bodies has to be pushed by physics and other don't? And bounces?
for physics you use rigidBody2D For things that move use CharacterBody2D (often used for players) For things that do not move use StaticBody2D (examples: walls, trees or world border but if your game is tiled use a tilemap instead) KinematicBody2D is a godot 3 Node (it does not show up in the add node menu)
Access COMPLETE COURSES on Godot 4 here: academy.zenva.com/product/godot-game-development-mini-degree/?
hey guys, we found one more underated channel to learn godot
I'd love to see a 3D version of this, like a first person character being pulled towards a planet and walking/jumping around on a planet or something.
Thanks! Keep Up with Godot Videos ;D
thank you for the tutorial but I did not expect to get flashbanged
We switched to dark mode a few months ago 😎
Join the dark side. 😷(We have cookies)
This is the greatest godot begginer tutorial i've came across, thanks! :)
That's fantastic to hear! 🌟 We're thrilled you found our Godot beginner tutorial helpful.
Super helpful, thank you!
one question, why did you use _process instead of _physics_process? i tried both and noticed _process seems to trigger more often in this empty game but wouldnt we want to use _physics_process so the input is consistent despite framerate?
_process is tied to frame rate and _physics_process is tied to physics engine ticks. You can change an object's movement in the _process node, but then it won't be synced up with the physics engine and your project will be waiting on the next physics tick to execute it's movement. It also has an affect on your games FPS performance, because if the calculations are slow enough the engine will be waiting on your code to execute before it starts rendering the next frame, but that won't be a problem in the physics process
RigidBody2D, CharacterBody2D, StaticBody2D, KinematicBody2D, which one use? Lets say one of the bodies has to be pushed by physics and other don't?
And bounces?
for physics you use rigidBody2D
For things that move use CharacterBody2D (often used for players)
For things that do not move use StaticBody2D (examples: walls, trees or world border but if your game is tiled use a tilemap instead)
KinematicBody2D is a godot 3 Node (it does not show up in the add node menu)
@vulnoryx what if you give instructions to your characters? like in a rts, would be rigibody right?
Thanks, you helped me a lot
I tried to follow the directions, but apply_impulse does not exist.
make sure that your script is attatched to a RigidBody2D node and that the script extends RigidBody2D
thanks
¡Thank you!
I like it how bro uses light mode 💀
We use it for accessibility
More videos from Godot!
light mode gadot is crazy
Thanks for the feedback! This video is from our older content, our newer ones are rolling out with dark mode. Hope you give those a try!
Duo lesson xd
putting physic code in _process is not very clever
@@AbdelbariGuenichi are you alright? do you need some help?
this video is fucking evil. Why Bright mode?!
Blue light filter glasses are required in tutorial hell 😈 joking aside, we have moved to dark mode in recent courses.
Sorry, I can't afford to get blinded by your awful choice of godot theme. cya.
Hi! We've switched to dark mode to meet WCAG AAA accessibility standards. You'll see more dark mode content on the channel over time