Тёмный
Arith metic
Arith metic
Arith metic
Подписаться
Relax With Christmas Puzzles and Music -
2:23
8 месяцев назад
Small Space Game Demo
1:12
8 месяцев назад
The Dice Roller - Trailer
0:24
2 года назад
Building A Scene - Godot Tutorial
6:44
2 года назад
Button Prompts - Godot Tutorial
5:05
2 года назад
404 Sub Special
0:07
3 года назад
1 year of game dev
7:31
3 года назад
Scene Transitions - Godot Tutorial
8:37
3 года назад
Wild Jam 31 - Making a game in 1 week
6:24
3 года назад
Splitting a Bullet - Godot Tutorial
9:07
3 года назад
Shooting a Bullet - Godot Tutorial
10:22
3 года назад
Комментарии
@user-yk1wy3nv1k
@user-yk1wy3nv1k 2 дня назад
un video muy util :) gracias por hacerlo!
@403gtfo
@403gtfo 4 дня назад
Glob damn that is so much easier than the path I was going down.
@sebastianczubacki1599
@sebastianczubacki1599 12 дней назад
too outdated
@HansChristian-bj2pt
@HansChristian-bj2pt 15 дней назад
Great video. So far so good, a bit of syntaxes have to be adjusted to fit the newer verision of godot (4.3 RC2). I had a problem where it ignored a fall point and went thru my platform to the point beneath it (wich was an edge point on a lower platform) Don't really know why it ignored the fall point and took the edge point below, probably has something to do with the cell_size or something like that. Used a variable for max fall distance to get rid of the problem. Will probably try to redo this with the AstarGrid2D in the future.
@HansChristian-bj2pt
@HansChristian-bj2pt 16 дней назад
I just cant get the intersect ray to work at all. It just returns empty no matter what i try. I am using a TileMapLayer node instead and for some reason it just wont work. I get my debugging faces to line up so i have one at the correct position to the left side of the edge and then i have another one below that point past the tilemap. the tilemap layer node dont have the map_to_world function but from reading the docs it seems like to_global(tileMapLayer.map_to_local()) should do the same. The PhysicsRayQueryParameters2D is set up with the from and to and i also tried to enable and disable the collide_with_areas and bodies. I still get nothing.... Anyone have any idea on why? If i add an area and collision shape manually it will register that shape. But not the tilemap collisions...
@HansChristian-bj2pt
@HansChristian-bj2pt 15 дней назад
So figured the problem out. I added a small delay of 0.1 sec before we create the map. For some reason it seemed that the tilemap collisions was not ready when i tried to perform the intersect ray. Maybe it will help someone else that encounters this problem.
@user-gs3mn8cc3x
@user-gs3mn8cc3x 19 дней назад
one of the best Godot tutorials out there, we appreciate it man
@biomajor099
@biomajor099 20 дней назад
Does anyone know what kinenmaticbody2d means now in godot 4?
@biomajor099
@biomajor099 20 дней назад
I figured it out. It is now sprite2d
@takeabao23
@takeabao23 25 дней назад
This is great! Could it be updated to work in Godot 4?
@redbrickfilmsofficial
@redbrickfilmsofficial 27 дней назад
Thank you very much, had been searching for hours for an answer.
@nudgemepapi2804
@nudgemepapi2804 Месяц назад
if u click on yourself the bullet kinda just freezes
@charliecharliewhiskey9403
@charliecharliewhiskey9403 Месяц назад
I swear everyone pronounces "godot" differently. Here, go-doT. Elsewhere, goh-doh, goh-doT, gedough, yedough, yedot.
@TimberLine534
@TimberLine534 Месяц назад
Hi, I was hoping anyone might know why the bullet wont move? Everything else seems fine. Here's the player's script: extends CharacterBody2D const bulletpath = preload("res://Player/Bullet.tscn") const SPEED = 100.0 const JUMP_VELOCITY = -350.0 var gravity = ProjectSettings.get_setting("physics/2d/default_gravity") @onready var anim = get_node("AnimationPlayer") func _physics_process(delta): if not is_on_floor(): velocity.y += gravity * delta if Input.is_action_just_pressed("ui_up") and is_on_floor(): velocity.y = JUMP_VELOCITY $AnimatedSprite2D.play("Jump") $"Jump SFX".play() var direction = Input.get_axis("ui_left", "ui_right") if direction == -1: get_node("AnimatedSprite2D").flip_h = true elif direction == 1: get_node("AnimatedSprite2D").flip_h = false if direction: velocity.x = direction * SPEED if velocity.y == 0: $AnimatedSprite2D.play("Walk R") else: velocity.x = move_toward(velocity.x, 0, SPEED) if velocity.y == 0: $AnimatedSprite2D.play("Idle") move_and_slide() func _process(delta): if Input.is_action_just_pressed("Shoot"): print("Im shooting") shoot() func shoot(): var bullet = bulletpath.instantiate() get_parent().add_child(bullet) bullet.position = $Marker2D.global_position Here's the bullet's script: extends CharacterBody2D var speed = 1000 func _physics_process(delta): var collision_info = move_and_collide(velocity.normalized() * delta * speed)
@sosonena1238
@sosonena1238 Месяц назад
about collisions how to add to them after doin bitmask
@LEGnewTube
@LEGnewTube Месяц назад
Much thanks for the quick and easy explination
@mintshake8138
@mintshake8138 Месяц назад
move and collide doesnt work
@sadhumanz
@sadhumanz Месяц назад
Excellent tutorial. Took a bit of handwork to convert it to Godot 4.2, but in the end it turned out great and works well! Concise, in depth explanations, and exactly the help I needed. 10/10
@diegogonzalezart825
@diegogonzalezart825 22 дня назад
Bro yo can share a link?
@smutnazaba2365
@smutnazaba2365 2 месяца назад
Hi Thats Tutorial Is Good But I Have Problem Cuz When I Wanna Test My Game and Click Something The Game Just Stops and I Need Quit, Whats Wrong?
@h4shcub3
@h4shcub3 2 месяца назад
KinematicBody2D is now CharacterBody2D
@LegowynStudios24
@LegowynStudios24 2 месяца назад
I had no idea you could edit the property name in the animation player! Such a cool feature
@nhuleneusse7645
@nhuleneusse7645 2 месяца назад
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
@TimberLine534
@TimberLine534 Месяц назад
Thanks man
@mcscwiggles1201
@mcscwiggles1201 2 месяца назад
How do I get this to work? In my game, i dont want to have the bullet follow my mouse. Rather when the player flips left or right, the bullet with then shoot left or right. I was able to follow your vid and get the bullet to shoot to the right fine. Just need to be able to shoot to the left when the player faces left. Any ideas would be great ❤
@split9853
@split9853 2 месяца назад
What if i wanted to split an asteroid in two smaller pieces when my bullet hits it. ive already made the big asteroid dissapear but i cant figure out how to instantiate two objects at different positions. Help?
@md.mizanurrahmanxendpdc.369
@md.mizanurrahmanxendpdc.369 2 месяца назад
It is easy and simple.You just have to make the bullet have in its own group.Use an area node in the asteroid script to detect if the bullet(using the body and group name) has hit it.if this does then use the same functions used in the video to make it split into two pieces.(I haven't watched the video yet.so I can't tell if the process might be that easy or not.but good luck understanding the code,the works will be the same) And you will be able to split the asteroid into many pieces as you want after you have done it.(But a quick reminder don't fall into any kind of rapid hole .if you find it hard to complete it within 2-3 days then stop developing games for a while.you will simply find the answer to the solution by interecting with the outside world. But don't get into fixing it immediately as you find the answer cuz you may lose courage to dev if you fail again.so only with enough gathering information and courage get into It
@RainierFajardoProduction
@RainierFajardoProduction 2 месяца назад
Godot 4.2 sucks man. I can't do this. I've been trying for weeks now :( The hunting aspect of my game is slowly gone :(
@just_a_n0rmal_person
@just_a_n0rmal_person 17 дней назад
Why I did this entire tutorial in Godot 4 and it works pretty well
@RainierFajardoProduction
@RainierFajardoProduction 16 дней назад
@@just_a_n0rmal_person nevermind. I found another tutorial and it worked better on my situation
@anthonymcgavock4928
@anthonymcgavock4928 2 месяца назад
Unfortunately, with the update to Godot 4, the intersect_ray() function now only requires one argument, and I'm not sure how to correct for this in the code. It's now throwing errors at line 171 and 178 for this block "var result = space_state.intersect_ray(pos, pto)"
@anthonymcgavock4928
@anthonymcgavock4928 2 месяца назад
I was about to fix this by adding a new variable. "var query = PhysicsRayQueryParameters2D.create(pos, pto)" and updating the next line to "var result = space_state.intersect_ray(query)"
@colefitzgerald8467
@colefitzgerald8467 2 месяца назад
This is good but is there a way to do this with one scene Just think of the thousands and thousands of rooms in your normal RPG there's no way to keep that organized
@CfopCubing
@CfopCubing 2 месяца назад
"instance" is now "instantiate" "Position2D" is now "Marker2D" "KinematicBody2D" is now "CharacterBody2D"
@manishkanyal10a18
@manishkanyal10a18 2 месяца назад
thanks bro
@alondovrat
@alondovrat 2 месяца назад
thank you so much i got stuck on it for like 30 minutes so i checked the comments thanks man
@uberium2004
@uberium2004 Месяц назад
godsent
@biomajor099
@biomajor099 20 дней назад
this comment is a lifesaver!
@jayem7773
@jayem7773 13 дней назад
And KinematicBody2D is now CharacterBody2D
@256a64
@256a64 2 месяца назад
Kin body died so WTF do I do, normal decided to die
@sato2500
@sato2500 3 месяца назад
Hello, thank you for your amazing tutorial I followed it in godot 4 but its give me some errors like type[1] give me null or all grids fill with face Do you know how I can fix them in godot 4? Thank you again❤💕
@catmist4651
@catmist4651 3 месяца назад
I don't expect a response but I can't find Position2D on godot 4.2
@MindSweptAway
@MindSweptAway 2 месяца назад
It’s now “Marker2D”
@dwried
@dwried 3 месяца назад
This may be an easier way to do this, in case people are researching this: I have a scene for the gun which i put these 3 lines and one for the gun, so i had to reference my player @onready var player = get_node("/root/Game/Player") var aim_direction = Input.get_vector("aim_left","aim_right","aim_up","aim_down") look_at(player.global_position + aim_direction) also the input map shows a setting for dead zones on each input map which defaults to 0.5
@romancherrez
@romancherrez 3 месяца назад
I had a problem with this, you are using Vector2 to check if a cell is in cells, but cells is an Vector2i array which makes all comparisons fail. I changed the Vector2 to Vector2i and all my problems were fixed. Note that usually when comparing exact values ( == ) is better to use integers, and if you need to compare floats, it's better to compare ranges and not exact values. Great video btw.
@ValidShortking
@ValidShortking 3 месяца назад
How do you delete the bullet after it reaches a certain point or distance
@Aminrexa
@Aminrexa 3 месяца назад
there are different ways you can do that, what I do is that I create a VsibleOnScreenEnabler2D node in my bullet scene, set it up, connect the on screen exited signal to the script and then queue_free() it. the whole process takes about 2-5 minutes you can look it up on youtube
@ValidShortking
@ValidShortking 3 месяца назад
@@Aminrexa I been waiting for you to response, thank you. I know no one asked but im still 15 and im trying to learn as much godot as I can and me and my friends dream game.
@Aminrexa
@Aminrexa 3 месяца назад
@@ValidShortking that's actually a perfect age to start learning game dev, I'm also a beginner still learning Godot and GDScript, just remember making big games takes lots of time and patience, for now keep making smaller projects to both learn new things and improve your skills, don't spend all day watching tutorials, keep working on your project and look up a specific tutorial if you're stuck somewhere, wish you the best
@JusTTimer07
@JusTTimer07 3 месяца назад
Hello ! This video is a bit old but does anyone knows why when I move my pivot position (something else than 0,0) it stops working with the joystick but still works with the mouse ? I know it's caused by the position vector but I don't understand why exactly :(
@AtomicTocomple
@AtomicTocomple 2 месяца назад
use global_position instead
@maxave7448
@maxave7448 3 месяца назад
This was really helpful, thanks!
@UglyPython
@UglyPython 3 месяца назад
you probably wont repsond to this but i followed brackeys new godot tutorial, and i tried copying this to make a gun shoot. i have the gun always facing towards the mouse while as a child of a parent, and have everything working including the instantiating. The player is a scene, in a Game scene. When i shoot, the bullet comes from a random position, that moves further, the more i move my character
@MrBrigadierArchived
@MrBrigadierArchived 3 месяца назад
my favorite tilemap tutorial!
@scottwarner7729
@scottwarner7729 3 месяца назад
Hey, awesome video - thank you for making it! Extremely helpful in understanding node generation for a 2D platformer map. Just a quick note - When you printed out the number of nodes at 22:18 it returned 44, but there are actually only 42 nodes on the map (I counted multiple times). There must be two extra overlapping nodes created somewhere, but I'm not sure which ones are being duplicated. My gut thinks maybe there's one on each "middle step" of the tiered diagonal spaces (at the middle-left and bottom right of the map) because those are the first two spots with potential weird conditions that jumped out to me, but you're checking for nodes in the same position before generating a node, so I'm not really sure where the extra two are coming from. I'd recommend doing a quick for each loop and print each cell's coordinates to see if any are still being duplicated or almost duplicated (maybe off by a small decimal or something?)
@arithmetic1938
@arithmetic1938 3 месяца назад
Thanks for the comment. Because this code generates a node at ever corner it also generated 2 nodes above the map outside of the screen area, even though the area is completely unreachable
@Frostbyte-Game-Studio
@Frostbyte-Game-Studio 3 месяца назад
godot community is the fucking best
@mage-sc5qz
@mage-sc5qz 3 месяца назад
Thanks for the tutorial, you can't image how helpful this video is for me. Here is a question about this tutorial. In my game, when my character jump up or drop, its horizontal speed will be changed to zero, which leads to that my character can only jump straightly up or down, how can I fix this??
@arithmetic1938
@arithmetic1938 3 месяца назад
Make sure your adding to the y velocity only. Not touching the x velocity. Another potential issue is it's still trying to move toward the node it jumped from causing it to just jump straight up
@mage-sc5qz
@mage-sc5qz 3 месяца назад
@@arithmetic1938 Thanks for your reply, I have corrected the issue!~
@HalfFang
@HalfFang 2 месяца назад
@@arithmetic1938 is there a way to do this in Godot 4? I am new to godot/game dev and have been referencing your videos how to get this set up (lots and lots of trying to update the code into godot 4) right now i am trying to figure out how to get them not to jump straight up, but the only way I've been able to move the character is by velocity. Haven't found any way to move them in any other way that isn't just teleporting them also you are a god for responding 3 years later
@miceonvenus647
@miceonvenus647 4 месяца назад
Thank you so much for this great in-depth tutorial. Do you think platforms (that you can stand on as well as pass through upwards by jumping and backwards by dropping) would be possible to implement with a method like this one? Or maybe even more complicated mechanics such as a Mob capable of climbing ledges?
@spxcyinc
@spxcyinc 4 месяца назад
Niceee! this works :) had to change some stuff with godot 4: extends RigidBody2D var ball_speed = Vector2(200,200) func _physics_process(delta): var collision_info = move_and_collide(ball_speed * delta) if collision_info: ball_speed = ball_speed.bounce(collision_info.get_normal())
@someoneradiant6213
@someoneradiant6213 4 месяца назад
thank you, i couldn`t get it to work, thought i had to use Characterbody2D.
@StupidChess0
@StupidChess0 3 месяца назад
Thank you very much for this
@marcelsunyercaldu3917
@marcelsunyercaldu3917 Месяц назад
The correct code for godot 4 with a CharacterBOdy2D its: extends CharacterBody2D var ball_speed = Vector2(200,200) func _physics_process(delta): var collision_info = move_and_collide(ball_speed * delta) if collision_info: ball_speed = ball_speed.bounce(collision_info.get_normal())
@ralpholi
@ralpholi 19 дней назад
@@marcelsunyercaldu3917 is this fundamentally similar for 3D? i changed Vector2 to Vector3 (and gave it 3 floats rather than 2).
@marcelsunyercaldu3917
@marcelsunyercaldu3917 15 дней назад
@@ralpholi Idk I only worked with 2D srry :(
@jube3289
@jube3289 4 месяца назад
nice Video easy explanation use it for my final exam Thank u bro. 👍
@joejensen7717
@joejensen7717 4 месяца назад
Thank you very much! I was looking everywhere to see how to increase velocity after a bounce, I didn't realize it was so simple! Appreciate it!
@someoneradiant6213
@someoneradiant6213 4 месяца назад
did it work for you,because for me collision_info.normal just doesnt exist?
@kalpayux7712
@kalpayux7712 4 месяца назад
for some reason in mine it just don't stop shooting
@Qilemonade
@Qilemonade 4 месяца назад
Does this work in godot 4?
@lucas_pscheidt
@lucas_pscheidt 4 месяца назад
thanks bro <3
@Moneion
@Moneion 4 месяца назад
Good tutorial ! If anyone see this issue "Invalid get index 'normal' (on base: 'KinematicCollision2D')." In line " velocity = velocity.bounce(collision_info.normal)" change to collision_info.get_normal()
@minecafth7959
@minecafth7959 4 месяца назад
Thank you so muchh
@Mohamed_abdalrahman
@Mohamed_abdalrahman 4 месяца назад
ممكن كود
@wurmpletactico824
@wurmpletactico824 5 месяцев назад
hey do you know how to do it for godot 4
@bobro1005
@bobro1005 5 месяцев назад
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
@arithmetic1938
@arithmetic1938 4 месяца назад
Made sure to change the velocity and travel direction of the bullet when it spawns
@bobro1005
@bobro1005 4 месяца назад
@@arithmetic1938 ty