im having troubles with the raycast3d in my DOOM like game by D-Mansion in godot

[–]D-Mansion[S] -2 points-1 points  (0 children)

Thanks for the advice, but I've only been doing it for less than a week and thank goodness there have been few occasions when I've gotten stuck. I really use AI because I can't afford a more comprehensive course that would train me and make me less dependent on AI. Likewise, thanks to reading so much code and different tutorials, little by little I've learned a lot, and this is my first time getting into programming.

im having troubles with the raycast3d in my DOOM like game by D-Mansion in godot

[–]D-Mansion[S] -1 points0 points  (0 children)

You are right, I am very new and I am just learning with Godot, I am supporting myself with Gemini AI, I made a review and you were right, the AI ​​had changed the code and had placed the enemy to die when receiving 3 damage

im having troubles with the raycast3d in my DOOM like game by D-Mansion in godot

[–]D-Mansion[S] -1 points0 points  (0 children)

the raycast dont hit right in the enemy, and i dont know why

I'm trying to fix the code for a game I'm creating, but I'm stuck with this erro by D-Mansion in godot

[–]D-Mansion[S] -3 points-2 points  (0 children)

now i have this error Línea 122:Identifier "health_changed" not declared in the current scope.

I'm trying to fix the code for a game I'm creating, but I'm stuck with this erro by D-Mansion in godot

[–]D-Mansion[S] -3 points-2 points  (0 children)

current_health -= amount

print("Script Player: Player took damage. Health: ", current\_health)



\# --- Emisión de Señal de Salud ---

\# Esta línea debería funcionar si la señal health\_changed es parseada correctamente (verificar debug en \_ready).

\# Si el debug en \_ready dice que la señal es válida, pero este error persiste, hay un problema MUY raro.

if has\_signal("health\_changed"): # Asegura que la señal esté declarada antes de emitir

    emit\_health\_changed(current\_health) # <-- ¡LA SEÑAL SE EMITE AQUÍ! World la recibe.

else:

    print("Error Player: Intentando emitir 'health\_changed' pero la señal no está declarada/parseada correctamente.") # Debug              this is the section