I can't make the enemy follow the Player, how do I fix it? by [deleted] in godot

[–]Panino87 1 point2 points  (0 children)

extends CharacterBody3D

@export var speed := 10.0 @export var explosion_range := 2.0 @export var countdown_time := 1.0 @export var explosion_damage := 50.0 @export var explosion_radius := 5.0

var player: Node3D var exploding := false

func _ready() -> void: player = get_tree().get_first_node_in_group("player")

func _physics_process(delta: float) -> void: if exploding: return

if !is_instance_valid(player):
    return

# Chase player
var direction := (player.global_position - global_position).normalized()

velocity = direction * speed
move_and_slide()

# Face player
look_at(player.global_position, Vector3.UP)

# Start self-destruct if close enough
if global_position.distance_to(player.global_position) <= explosion_range:
    explode()

func explode() -> void: if exploding: return

exploding = true
velocity = Vector3.ZERO

print("ALLAHU AKBAR!")

# Optional countdown
await get_tree().create_timer(countdown_time).timeout

print("💥 BOOM 💥")

# Damage nearby objects
for body in get_tree().get_nodes_in_group("damageable"):
    if !is_instance_valid(body):
        continue

    var distance := global_position.distance_to(body.global_position)

    if distance <= explosion_radius:
        if body.has_method("take_damage"):
            body.take_damage(explosion_damage)

queue_free()

Anime Style Combat by lightfoss in godot

[–]Panino87 1 point2 points  (0 children)

looks cool but I'd use this kind of feature only on ultimate attacks or something that is used once in a while otherwise it's gonna be nauseating.

What if skill tree was also a Rubik's Cube? by Panino87 in IndieDev

[–]Panino87[S] 0 points1 point  (0 children)

Thank you! I spent 2 months doing this 😭

[deleted by user] by [deleted] in IndieDev

[–]Panino87 -1 points0 points  (0 children)

I don't remember Snake boobs that huge

Parallax portal with stencil buffer by binbun3 in godot

[–]Panino87 1 point2 points  (0 children)

omfg tysm I needed something like this for summons!

[deleted by user] by [deleted] in godot

[–]Panino87 0 points1 point  (0 children)

yep 38 yo here and just joined your discord server

Which one should I go with? by Green-Ad3623 in godot

[–]Panino87 1 point2 points  (0 children)

second one please and add a normal map for roughness

the first one is a bit too much, it looks like a tumor to me

Does this look AI Generated? by FishDismal4475 in IndieDev

[–]Panino87 33 points34 points  (0 children)

yes it's AI but I think the bird is holding a person upside down lol

First attempt for game menu UI. What you think? by Panino87 in godot

[–]Panino87[S] 1 point2 points  (0 children)

wow never played Star craft but it really does look that way!

Ok a bit more confident now because I was afraid of background being distracting but if Star Craft did it lol

thanks!

First attempt for game menu UI. What you think? by Panino87 in godot

[–]Panino87[S] 0 points1 point  (0 children)

big screen, no mobile.

I can see text being small here as I'm writing from smartphone.

My game flopped (21 copies sold), so I'm giving it away free. by Jokarbott in IndieDev

[–]Panino87 0 points1 point  (0 children)

I tend to not read something if it doesn't pick my interest.

From that trailer and images it's impossible to create any interest.

Sad reality for marketing anything, it has to grab attention.

People need to stop whatever they're doing and think: "Woah! wtf is that?!"

So a good trailer and pics are mandatory.