[8] Let's Make a Godot Space Shooter: Bullet Firing Positions

Sdílet
Vložit
  • čas přidán 21. 07. 2020
  • We make a system to define our ship's gun positions, and fire bullets from each of those locations. Let’s Make a Godot Space Shooter together - a series covering basic Godot concepts and workflows to create a full PC, mobile, and controller-supported game!
    See my website (source code link available per-episode!): codenmore.github.io/
    Follow me on Twitter - @CodeNMore - / codenmore
    Teaching to understand all subjects to the fullest extent!
    Thumbnail: Godot Logo (C) Andrea Calabró Distributed under the terms of the Creative Commons Attribution License version 3.0 (CC-BY 3.0). creativecommons.org/licenses/....
  • Jak na to + styl

Komentáře • 9

  • @Dustgfx
    @Dustgfx Před 3 lety +2

    Amazing.. Exactly what i needed!

  • @oricraft3368
    @oricraft3368 Před 3 lety

    Thanking u I am putting all the your videos into my game

  • @Dustgfx
    @Dustgfx Před 3 lety

    Any idea on how to apply somesort of recoil to the ship while shooting? (Using KinematicBody2d)

  • @Stiner75
    @Stiner75 Před měsícem

    Unfortunately, in 2024, this is where this tutorial series falls apart for me. No matter what I try, every reference to the @onready variable at the top is always null, in one way or another. Written exactly as the tutorial suggests, I get the error "Cannot call method 'get_children' on a null value." (the game crashes and points at the line with the "for" loop as the problem.) I read the code and it makes sense to me, but not to the interpreter, apparently. If anyone has any insight on how this will work on Godot 4, please enlighten me. Googling this error hasn't helped much either... (SEE EDIT BELOW!)
    It turns out I was somehow editing a second instance of the Player node. Not sure how I got into that situation, nor how I actually fixed it, but I think it might have something to do with "local" vs "remote." Just in case anyone else following this guide runs into the same issue I did.

  • @whatsthislmaoo
    @whatsthislmaoo Před 2 měsíci

    it does more harm than good to do a bad example first then correct it ages later. I'm sorry but that's not a good way to teach, its been so frustrating to follow this guide. Just show us the right way and that's it, i don't understand why teach the wrong way, it's taking up time and space in our brain.
    I'll finish this guide but honestly I'm trying not to lose will :)

    • @whatsthislmaoo
      @whatsthislmaoo Před 2 měsíci

      Actually nah, I'll just search for a guide that respects my time.

  • @gofudgeyourselves9024
    @gofudgeyourselves9024 Před 2 lety +3

    Instead of global_position use something like this
    bullet.position = child.position
    add_child(bullet)

    • @longthuong6764
      @longthuong6764 Před 2 lety +1

      but that will make the bullet line up even you moving around

    • @jeretas7200
      @jeretas7200 Před rokem

      thanks you saved me