Blood Effect in Godot 3 Tutorial

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 55

  • @yutprogramming
    @yutprogramming 10 місяців тому +6

    in the gpu particles you can follow with the timer but instead of having to write all this just write speed_scale = 0 (quick tip)

  • @creekworks
    @creekworks 4 роки тому +3

    Good to see you back!

  • @davidphillips9366
    @davidphillips9366 4 роки тому +1

    Welcome back! I was just thinking about your channel the other day

    • @PlugWorld
      @PlugWorld  4 роки тому

      Thanks, I am glad to be back, I had to post something in between this and filming my tutorial series haha.

  • @AgnisNeZvers
    @AgnisNeZvers 4 роки тому +18

    All those processes you disabled are already disabled if you didn't include callback methods in the script. If you want only a single burst then check the "One Shot" under the Time section and every time you want a new SPLAT just set emitting = true which gets turned off automatically because of "One Shot".
    When you have bullet vs instance collision and setting damage, you can use that to pass the direction of bullet velocity instead of looking up the player position which can be different from where the bullet came from.
    Still, thumb up for making a tutorial for Godot.

    • @PlugWorld
      @PlugWorld  4 роки тому +9

      So the reason I used the player's direction to the enemy is for compatibility with other people's scripts. There was a chance some people were going to have the issue that it would be rotated in the wrong direction because they didn't use a knock back system or they used it in a different way. So I just wanted to keep it easy for them to follow along.
      I did think about using the one shot method instead of disabling all of those processes. But I didn't know if the particles would be processed after. I just wanted to make sure the particles were well optimized.
      Thanks for the feedback! I often overcomplicate my tutorials, so it's good to hear of the other solutions. Thanks for watching 👍

    • @AgnisNeZvers
      @AgnisNeZvers 4 роки тому

      @@PlugWorldDirection didn't make sense for me because you can't have damage without collision and where's a collision there's a reference to colliding bodies.

  • @HowToBlin
    @HowToBlin 4 роки тому +2

    I like this little tutorials!

    • @PlugWorld
      @PlugWorld  4 роки тому

      Thanks, I enjoy making them! 👍

  • @michelles.3835
    @michelles.3835 2 роки тому +1

    good pacing! I like that you move fairly fast

  • @zZMazeZz
    @zZMazeZz Рік тому

    Great tip about keeping a reference to the player in the globals!

  • @clecioespindolagamedev
    @clecioespindolagamedev 4 роки тому +1

    Great, welcome back... 👏👏👏

  • @thrasher1462
    @thrasher1462 8 місяців тому

    great tutorial, thanks for keeping it brief!

  • @ed5215
    @ed5215 4 роки тому +7

    Yo I don't know if you remember but I was a huge fan back during your Godot spaceship game tutorial series. I'm now using Unity but I really wanted to thank you for getting me into game development and now seeing you with over 1000 followers is Awesome. Keep up the great videos. 👍

  • @aminebenz1411
    @aminebenz1411 9 місяців тому

    Simple and precise, thank you !

  • @tonmate7175
    @tonmate7175 4 роки тому +2

    Thnks m8, i really needed that tutorial

    • @PlugWorld
      @PlugWorld  4 роки тому

      No problem, thanks for watching :)

  • @chance_E
    @chance_E 2 роки тому +1

    Thx a lot, going to use this for the mini jam 118 vampire.

  • @तंत्र
    @तंत्र 3 роки тому +2

    Amazing tutorials

    • @PlugWorld
      @PlugWorld  3 роки тому

      Ah thanks, glad you enjoy them

  • @roadtomillion9499
    @roadtomillion9499 3 роки тому +1

    Will the blood splash only at under _process function?
    I tried connecting tree_exited signal to another func and it didn't work :/

  • @БРАТ-р8к
    @БРАТ-р8к 3 роки тому +2

    Thanks for the tutorial
    Btw, you dont have to disable every process, only process_internal is enough)

  • @NeZversSounds
    @NeZversSounds 4 роки тому +1

    Perfect timing!

  • @vickylance
    @vickylance 8 місяців тому

    will having thousands of these in a scene impact performance?

  • @spodarman3823
    @spodarman3823 3 роки тому +1

    hey can we add a timer that makes the blood disappear after some time (im a noob)

    • @PlugWorld
      @PlugWorld  3 роки тому

      Yeah that would work. You can't do it on the blood specifically since they disabled all processes. But if you do it under a node2d and modulate the transparency over time that would work.

  • @betterteen
    @betterteen 3 роки тому +1

    Can you make it disappear after a certain amount of time that you can change!?!

    • @PlugWorld
      @PlugWorld  3 роки тому +1

      Yeah, put the particles under a Node2D and put a timer under the Node2D. Once the timer goes off, lerp the modulate alpha of the Node2D to zero.

    • @bhBlacky82
      @bhBlacky82 2 роки тому

      or you can use a visibilitynotifier2d node and remove the node once its no longer visible at the screen.
      add the node, connect the signal..
      func _ready():
      get_node("notifier").connect("screen_exited", self, "_on_screen_exited")
      func _on_screen_exited():
      queue_free()

  • @synthoelectro
    @synthoelectro 3 роки тому

    Sometimes I think the Internet reads my quiet mind.

  • @AlphabeticalNugget
    @AlphabeticalNugget Рік тому +3

    FOR GODOT 4
    instead of setting all the processes to false, it's
    process_mode = PROCESS_MODE_DISABLED

    • @hugobelperron9647
      @hugobelperron9647 11 місяців тому

      I came to the same conclusion but my particles start to jitter when paused like this and I don't know why..

    • @AlphabeticalNugget
      @AlphabeticalNugget 11 місяців тому

      @@hugobelperron9647 could they be colliding with each other?

    • @HuganTheUnknown
      @HuganTheUnknown 11 місяців тому

      @@AlphabeticalNugget I'll have to check but I don't believe I enabled collisions in the particle node

    • @Asilhan
      @Asilhan 8 місяців тому +2

      @@HuganTheUnknown Turn off the interpolation or set fixed FPS to 0.

  • @Lui5J7
    @Lui5J7 4 роки тому

    Thanks for your time :)

  • @hdhwkq
    @hdhwkq 4 роки тому

    So far so good

  • @LimeChrome
    @LimeChrome 3 роки тому

    Best video

  • @PeshangGM
    @PeshangGM 4 роки тому +1

    Hello
    Please Make a Tutorial about how at add Joysticks in godot for mobile games
    Thank You

    • @PlugWorld
      @PlugWorld  4 роки тому

      I'll look into it. But you can already find tutorials on joysticks in Godot right now. All you need to do is apply the values of the joysticks to the Player's direction and position.

  • @tobynuttall4354
    @tobynuttall4354 3 роки тому +1

    Thank you

  • @julianojosoa2145
    @julianojosoa2145 3 роки тому

    Good video! But I have a question. Can i paint 2D particles on a 3D surface. like for example I want to make painting splatter on walls.How can i achieve that?

    • @PlugWorld
      @PlugWorld  3 роки тому +2

      That's a lot more difficult to achieve in 3D. Decals aren't a thing yet, until 4.0. So you will have to program all of that base functionality yourself. I recommend watching some bullet decal videos. Then after that, you can look into using this as the blood decal. Maybe shoot a raycast at a slight random rotation offsets (so the blood particles don't hit the same place) and instance a blood decal where the point is that the raycast collides. You would have to do this in a for loop if you want multiple blood splatters. Idk I haven't done it before. Let me know if you have any questions.
      Maybe I'll make a tutorial about it later 😉

    • @julianojosoa2145
      @julianojosoa2145 3 роки тому

      @@PlugWorld I think my comment keep being automatically deleted. I just want to know your opinion about the results I made on itch. I am not promoting or spamming.

    • @PlugWorld
      @PlugWorld  3 роки тому

      Oh it's all good, yeah UA-cam probably thinks it's spam because of the link. Just send it to me on Discord, I'll give it a look, thanks!

  • @archon3949
    @archon3949 3 роки тому +1

    i modified this for the player. it turned out well
    3 hours of figuring out whats wrong and the answer was too simple...

    • @PlugWorld
      @PlugWorld  3 роки тому

      Glad you figured it out. Welcome to programming! 😂

  • @terogamer345
    @terogamer345 2 роки тому

    Thank you very much for your help. The code for adding the instance to the scene tree did not work for some reason (i wasnt able to see the blood particles in the game), but i made it work with this code -> get_tree().get_root().call_deferred("add_child",bloodSplatter)
    Posting it so it may help someone with the same problem.

  • @Rob-cq1nf
    @Rob-cq1nf 4 роки тому

    Nice! Thanks a lot ⭐

  • @jorge43786
    @jorge43786 4 роки тому +2

    first, welcome back!

  • @vhv3862
    @vhv3862 3 роки тому

    love your voice :v

  • @ratazanablumenau5330
    @ratazanablumenau5330 3 роки тому

    Thanks for video, +1 subscribe

  • @velavanvenkat1173
    @velavanvenkat1173 2 роки тому

    ThankYou