Showing results for

player

movement

on kidscancode.org
kidscancode.org › blog › 2017 › 04
Godot 101 - Part 9: Arcade Physics (KinematicBody2D) · KCC Blog
...Here is our normal movement situation, when there are no obstacles:
Two forces are acting on the player (gravity, and the movement input) so...
kidscancode.org › blog › 2018 › 01
Godot 3.0: Inheritance · KCC Blog
...As with the player, we’ll use _process()
to trigger the movement, but this time we’ll use the
fact that the move()
function...
kidscancode.org › blog › 2017 › 02
Godot 101 - Part 5: Player-controlled Sprite · KCC Blog
...Wrapping Up
That will do it for our player’s movement. In the next part, we’ll put some items on the screen for...
kidscancode.org › blog › 2018 › 04
Topdown Tank Battle: Part 5 · KCC Blog
...# other movement code
pass
Run the scene and try it out. If you drive the player in front of the enemy tank, it...
kidscancode.org › blog › 2018 › 04
Topdown Tank Battle: Part 3 · KCC Blog
...Again, for the tank’s movement, we need to supply the code in
the control()
function.
There are many possible movement behaviors we could...
kidscancode.org › blog › 2016 › 08
Pygame Shmup Part 1: Player Sprite and Controls · KCC Blog
...Movement / Controls
This is going to be a keyboard controlled game, so we want the player to move when the Left
or Right
arrow...
kidscancode.org › blog › 2018 › 07
Godot 3.0: Splitscreen Demo (Using Viewports) · KCC Blog
...This way both characters can use the same script for movement. Just assign the
appropriate value to id
for each player.
The two players...
kidscancode.org › blog › 2018 › 02
Godot 3.0: Using KinematicBody2D · KCC Blog
...The Player is controlled by W/S for forward/back and aims using the mouse. Here is
the code for the Player, using move_and_slide...
kidscancode.org › blog › 2019 › 03
Godot 101: Intro to 3D, Part 3 · KCC Blog
...Jumping
Let’s add one more movement to the player: jumping.
Add these lines to the end of get_input()
:
jump = false
kidscancode.org › blog › 2017 › 04
Godot 101 - Part 12: Camera and Scrolling Background · KCC Blog
...In this installment, we add a camera to follow the player, and make a scrolling background. If you haven’t already read through the...