176
1
177
1

Long overdue post on the potential for using Godot for GUI app development and why I think it's pretty cool!

178
1
submitted 11 months ago by Jozzo@lemmy.world to c/godot@programming.dev

Wanted some opinions on ways to set up triggering "on-kill" effects. In short: The player can have abilities that trigger effects whenever they shoot and kill an enemy. I'm also looking to extend abilities to enemies as well, so can't just hardcode a player reference.

Currently I'm doing it like this:

  • Enemy signals that it died -> the bullet receives this and signals that it killed Enemy -> the player's weapon receives this and signals that it's bullet killed Enemy -> the player receives this and triggers it's on-kill abilities.

It simultaneously feels like a good way to go about it but also a long mess. The other option I've considered is:

  • Each bullet has a reference to it's owner (eg. player). When an enemy dies to a bullet, it looks to the bullet's owner reference and tells it to trigger it's on-kill effects.

This way is a lot simpler to write, but is error prone eg. In cases where the bullet's owner is killed while their attack is mid-air.

Thank you all!

179
1

Hi everybody! In this video, I would show how we can set up a glow effect on a selected sprite in a 2D project. Such a shader may come in handy if we want to understand how the glow calculation works, or if we decide to work without setting up a global glow in the WorldEnvironment node. Let’s do it.

180
1
submitted 11 months ago by mac@programming.dev to c/godot@programming.dev
  • RYbot
  • No Gasoline
  • Pillory
  • Fallacy Quiz
  • Stunt Xpress
181
0

Godot

6106 readers
10 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

founded 2 years ago
MODERATORS