Godot 3.0: Top-down Tank Battle - Part 7

  Рет қаралды 12,489

KidsCanCode

KidsCanCode

6 жыл бұрын

Follow the written version of the series here:
kidscancode.org/blog/2018/05/g...
Code for this part can be downloaded here:
github.com/kidscancode/topdow...
Art by Kenney: kenney.nl/assets/topdown-tanks...
Support me on Patreon: / kidscancode

Пікірлер: 25
@MattHuisman
@MattHuisman 6 жыл бұрын
Your a natural teacher and know great programming techniques. Keep it up! :D
@Glankonian
@Glankonian 6 жыл бұрын
Moving along nicely. I appreciate the work you put into this.
@NeilRoy
@NeilRoy 5 жыл бұрын
Very well done. Nice, clear explanations.
@tralavala9808
@tralavala9808 6 жыл бұрын
Thx for another part :)
@giggleghost3751
@giggleghost3751 4 жыл бұрын
Thank you so much for this!
@SergioCandelaRamirez
@SergioCandelaRamirez 4 жыл бұрын
As always, amazing tutorial!! :)
@j.d.waterhouse4197
@j.d.waterhouse4197 6 жыл бұрын
I was having lots of problems and discovered they were mostly because of how I had checked layers in the Inspector/Collision section. The term "Mask" seems to me a very counter-intuitive word to use! I kept thinking 'Mask' meant the object would NOT react to objects in that layer.
@TheCromcrom
@TheCromcrom 4 жыл бұрын
thank you soooooooo much for your tutorials
@yikescloud
@yikescloud 5 жыл бұрын
I think the efx explosion can be instance in the map before bullets die, I think that's be more nature like that: var efx = preload("res://efx/Explosion.tscn") var explode = efx.instance() var map = get_node("/root/Map01") map.add_child(explode)
@_flavio_silva
@_flavio_silva Жыл бұрын
Amazing tutorial :)
@LinuxGuides
@LinuxGuides 6 жыл бұрын
Thanks! It would be great if you could add some sound to the tanks (with pitchscale etc., wich is controlled in gdscript) in one of the following parts.
@Kidscancode
@Kidscancode 6 жыл бұрын
We'll be adding sound at some point soon.
@Bianchi77
@Bianchi77 4 жыл бұрын
Good one!
@petrickmail7349
@petrickmail7349 5 жыл бұрын
Great tutorial. i'm using different approach for enemy tank. i manage enemy tank to follow player but i can't figure it out how do i rotate enemy tank toward player? :( Can you give me something about this?
@Kidscancode
@Kidscancode 5 жыл бұрын
The same way you rotate the turret to follow the mouse.Find the angle of the direction vector between the enemy and the player: var direction = (target_position - position).angle()
@kasperfma
@kasperfma 6 жыл бұрын
Hiya! Will you ever be making more pygame tutorials? Cuz i really enjoy them. I would love to see a game like this in pygame.
@Kidscancode
@Kidscancode 6 жыл бұрын
I don't have any plans currently. Compared to modern frameworks and tools, pygame is just feeling more and more primitive. I love it as a way to learn Python, but it is kind of a dead-end when it comes to learning game development.
@kasperfma
@kasperfma 6 жыл бұрын
KidsCanCode Ok 😀. What is the best language to learn if i want to get into programming games?
@settergren938
@settergren938 5 жыл бұрын
@@kasperfma The software he's using in this video, Godot Engine, is pretty solid for learning game dev imo
@kacperNFS
@kacperNFS 4 жыл бұрын
6:10 Global rotation doesn't seem to work for me in godot 3.2, the bar acts similar to the blocked AI, it flies off the tank doing some wobbles and comes back after a while. Any ideas lads? I see that your project still works though so I will try and reverse engineer it.
@kacperNFS
@kacperNFS 4 жыл бұрын
@Reese Barrs I know, but it's so bizaire that there is not really a way I can think of to fix it. Maybe it's a problem with the collision masking. I will check it tomorrow.
@LarsZulfoDKJensen
@LarsZulfoDKJensen 3 жыл бұрын
Did you ever find a fix? Just started coding in GD Script, Godot 3.2.3, and my healthbar acts just as you say...
@LarsZulfoDKJensen
@LarsZulfoDKJensen 3 жыл бұрын
I actually just think that I did a dirty fix myself. Under the UnitDisplay's _process function, I just get the position of the parent, and position the unitbar var pos = get_parent().get_node("Body").global_position global_rotation = 0 global_position.x = pos.x - 70 global_position.y = pos.y - 70 You can play around with the x and y positioning, but now my healthbar stays above the tank
@kacperNFS
@kacperNFS 3 жыл бұрын
@@LarsZulfoDKJensen I actually never found the fix, but copying the project files everything seemed fine, so I guess it must have been something on my end that I haven't switched on. Great work on your part working it out though.
Godot 3.0: Top-down Tank Battle - Part 8
9:08
KidsCanCode
Рет қаралды 10 М.
Returning from MERCURY! [ SFS ]
8:36
Ray Mapa
Рет қаралды 2
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 167 МЛН
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 59 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 75 МЛН
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 7 МЛН
Godot 3.0: Top-down Tank Battle - Part 3
18:47
KidsCanCode
Рет қаралды 31 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 3,9 МЛН
Mirrors, Every Way You Can Make Them In A Video Game
8:14
Code It All
Рет қаралды 63 М.
I Melted Wood With Friction
8:44
The Action Lab
Рет қаралды 721 М.
You're not using Godot to its potential
6:12
Tienne_k
Рет қаралды 83 М.
Godot 3.0: Top-down Tank Battle - Part 4
17:45
KidsCanCode
Рет қаралды 35 М.
The Best New Features Coming in Godot 4.3
11:40
Gamefromscratch
Рет қаралды 49 М.
How to make a Video Game - Godot Beginner Tutorial
1:17:12
Brackeys
Рет қаралды 1,4 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 167 МЛН