Godot 4 Tutorial for Beginners: Create an First-Person Character Controller Part 1

  Рет қаралды 614

Apple Minecraft

Apple Minecraft

Күн бұрын

Пікірлер
@oskarmllerandersen1145
@oskarmllerandersen1145 Ай бұрын
Nice tutorial
@1Ryde
@1Ryde 2 ай бұрын
i was looking stuff to learn godot and this video pop up in my recommends, nice work on the explanation, keeping it simple while teaching a bit. thank you!
@smokysmoky3451
@smokysmoky3451 2 ай бұрын
i like it
@yeazye
@yeazye 6 күн бұрын
extends CharacterBody3D @export var MoveSpeed: float = 5.0 @export var JumpPower: float = 4.5 @export var Sensitivity: float = 0.005 @onready var head: Node3D = $Head func _ready() -> void: Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) func _input(event: InputEvent) -> void: # Rotate the character with mouse motion if event is InputEventMouseMotion: rotate_y(-event.relative.x * Sensitivity) # Rotate head and clamp its rotation to prevent over-rotation var new_head_rotation_x = head.rotation_degrees.x - event.relative.y * Sensitivity * 180 / PI new_head_rotation_x = clamp(new_head_rotation_x, -90, 90) # Clamping rotation head.rotation_degrees.x = new_head_rotation_x func _physics_process(delta: float) -> void: # Apply gravity if not is_on_floor(): velocity.y -= float(ProjectSettings.get_setting("physics/3d/default_gravity")) * delta # Handle jumping if Input.is_action_just_pressed("jump") and is_on_floor(): velocity.y = JumpPower # Process movement process_move(delta) func process_move(delta: float) -> void: var input_dir = Input.get_vector("move_left", "move_right", "move_forward", "move_backward") var direction = (global_transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized() if direction.length() > 0: velocity.x = direction.x * MoveSpeed velocity.z = direction.z * MoveSpeed else: velocity.x = lerp(velocity.x, 0.0, 0.1) velocity.z = lerp(velocity.z, 0.0, 0.1) # Move and slide using velocity move_and_slide()
Juiced Up First Person Character Controller Tutorial - Godot 3D FPS
10:47
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Why I'm Moving To Godot In 2025
14:23
Acerola
Рет қаралды 137 М.
Learning C++ by making a Game... in 1 Week?!
10:14
Floky
Рет қаралды 631 М.
How Do Game Devs NOT Overscope??
9:04
Green Light Dev
Рет қаралды 10 М.
Godot Scripts I add to Every Game
12:34
Aarimous
Рет қаралды 59 М.
10+1 MUST HAVE addons for Godot 4
11:18
MrElipteach
Рет қаралды 19 М.
OpenAI's o1 just hacked the system
26:31
AI Search
Рет қаралды 63 М.
How to use Resources in Godot 4
8:08
Bitlytic
Рет қаралды 8 М.
every step to actually make your dream game (then sell it)
24:27
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН