Shooting a Bullet - Godot Tutorial

preview_player
Показать описание
I realized that I hadn't covered instancing objects. A topic that my next tutorial would need you to know about before starting. Because of this, I thought I would make a video covering it in one of the best ways possible. Shooting a bullet. Hope you enjoy it and leave a comment letting me know what you thought of the video.

#DiskArena #Tutorial #Shoot #IndieGameDev #Godot #2D #TopDown #PixelArt #Bullet #Multiplayer #Powerup
Рекомендации по теме
Комментарии
Автор

"instance" is now "instantiate"
"Position2D" is now "Marker2D"
"KinematicBody2D" is now "CharacterBody2D"

CfopCubing
Автор

if anyone is wondering why is not working if you are using godot 4 the reason is that u should be using "instantiate" instead of "instance"

tenguxxc
Автор

Like it, straightforward just the thing you need when having just "One" Problem.

nighthawk__
Автор

one of the best Godot tutorials out there, we appreciate it man

kidus-st
Автор

Thanks mate, I was in a gamejam and this tutorial really helped me

Ozzymandias
Автор

Life saver! The only tutorial that worked for me!

haotehmao
Автор

This is the first time i have seen someone type out the object path, you are on a next level

lemone
Автор

Thanks mate, I've been looking at all these confusing tutorials, but yours is the first that really seems like a step by step guide. Really appreciate it

santiromero
Автор

Thank you, kind man, we are developing game with my friend and total rookies when it comes to code, and without this tutorial we would just stuck in the creating of bullet.

negativefg
Автор

i dont expect a response but it's worth a shot. The bullet just doesn't move at all.

func shoot():
if Bullet:
print("bullet made")
var bullet_instance = Bullet.instantiate()
bullet_instance.position = get_global_position()
= rotation_degrees + 90
bullet_instance.apply_impulse(Vector2(), Vector2(bullet_speed, 0).rotated(rotation))



it just spawns in on the player sprite

jakeandrws
Автор

thank you very much! I'm currently making a game, and i have problem with stomping enemy physics, so this video really helped me out! Thanks bud, i'll credit you when the development of my game finishes, btw, have an amazing day!

henrydbby
Автор

tysm, this is the only tutorial that worked for me

antonyxd
Автор

3:38 Thank you! That's the one issue I had in my code!

soundrogue
Автор

Awesome tutorial!
The first, after which my game work.

darchankaen
Автор

having a problem, it says: “Invalid set index ‘velocity’ (on base: Node2D’) with the value of type ‘Vector2’”

gekah
Автор

you probably wont respond but why does my bullet only go right even with all the code? its spawning where it should its just not going anywhere else except right im also using godot 4

BoTheBroDev
Автор

How do i make the bullet face the same way as my character tho?

NotFigstuck
Автор

How to make the bullet rotate to the position of the mouse

teammerdoss
Автор

I'm using Gadot 4.3 and @6:42, var velocity. doesn't work and getting errors.

NokeiadkZ
Автор

For anyone getting the (Member "velocity" redifened) ERROR:
now vector2() is part of velocity in GODOT 4 so you simply have to deleted the 3rd line in the video

nhuleneusse