Create Tesla gun in Godot using simple shaders | Dicode

Поделиться
HTML-код
  • Опубликовано: 2 авг 2024
  • hello everyone,
    I am here again with another visual effect tutorial in Godot
    this time i have made a really cool tesla gun that fires lightning.
    It is very similar to creating a Laser because the main mechanics is almost the same in both the cases. I have used the line2D node to create the main lightning and then applied a simple shader code in it.
    and this lightning is going to be fully interactable with other object as well and the collision is checked by the Raycast2D node.
    I will say that it look great because of the Kenny image pack.
    you can download the image pack from here:
    godotengine.org/asset-library...
    I hope this video helps you in your project or if you have learnt something new from this.
    don't forget to like and subscribe to this channel
    and I will see you guys in the next one :)
    TimeStamp:
    (0:00) - final result
    (0:13) - images required
    (0:28) - main lightning
    (1:47) - main lightning shader
    (3:36) - end spark
    (4:03) - end spark shader
    (4:41) - positioning everything
    (5:00) - lighting script
    (6:15) - adding color
    (6:35) - adding to gun

Комментарии • 27

  • @N0stalgicLeaf
    @N0stalgicLeaf 2 года назад +9

    OK, you earned a sub. Godot community is something special and you're definitely doing your part. Keep it up.

  • @TheRealKaiProton
    @TheRealKaiProton 2 года назад +2

    Shockingly simple for such an amazingly kool effect..

  • @schnitzelhannes6431
    @schnitzelhannes6431 2 года назад +1

    Thats some quality content right here

  • @boerbol9422
    @boerbol9422 Год назад +1

    This is so fun and practical. Great work!

  • @kingkelpo554
    @kingkelpo554 2 года назад +2

    your vids are great! keep it up man

  • @roadtomillion9499
    @roadtomillion9499 2 года назад +3

    You are doing a great work
    Thank you very much

    • @dicode1q
      @dicode1q  2 года назад

      Thanks and welcome :)

  • @titangamezhere
    @titangamezhere 2 года назад

    Cool video man!

  • @GameDevForLife
    @GameDevForLife 10 месяцев назад +1

    If you add the reflection mecanism After collision with the wall it would be awesome

  • @TheScreamless
    @TheScreamless 2 года назад

    very nice tutorials :)

  • @bitbotzgames
    @bitbotzgames 2 года назад +1

    You are awesome. Subscribed

  • @user-yh2hv3iw2r
    @user-yh2hv3iw2r 2 года назад

    I love it

  • @ukrsolid
    @ukrsolid Год назад +1

    cool trick

  • @collinvisser7108
    @collinvisser7108 2 года назад +1

    Neat

  • @wash99
    @wash99 2 года назад +1

    Tyyyyy

  • @villainsgame9778
    @villainsgame9778 2 года назад +2

    Tq so much......

  • @maniksharma9736
    @maniksharma9736 2 года назад +2

    Can u please explain how raw colour work....????

    • @dicode1q
      @dicode1q  2 года назад +2

      Raw mode is used to add extra (over brighten the image) colors to image
      . When you select color from color picker it is only in range of 0 to 1. But in raw you can go from 0 to 255. Also it gave move control on handling specific color channel.

  • @bernardoandrescartesromero3050
    @bernardoandrescartesromero3050 2 года назад

    my laser is really short, how can i fix it?

    • @dicode1q
      @dicode1q  2 года назад

      increase the cast to variable of your Ray2D to a higher value, something like 1000 on x axis

  • @hhcdghjjgsdrt235
    @hhcdghjjgsdrt235 2 года назад

    Indian accent !!!

  • @Charlexkeipha
    @Charlexkeipha Год назад

    My spark stuck when the time frequency is over 4.0 🥲. My pc can only run Godot GLES 2.0