Skip to main content

All Questions

0 votes
0 answers
87 views

Enemies not registering hits from the player in Godot

I am making a 2D game where the player can attack enemies using a designated Area2D node as an attack area. I set up signals to manage attack phases and ensure ...
buzzbuzz20xx's user avatar
1 vote
1 answer
81 views

Issue with AttackArea Monitoring Before Attack in Godot 2D Game

I'm developing a 2D game where the player character can attack enemies using a designated attack area (Area2D node named AttackArea). I've encountered a problem where the AttackArea is active and ...
buzzbuzz20xx's user avatar
1 vote
1 answer
442 views

Area2D only detecting body_exited once

I am new to game development, I am practicing by creating a pong game. I currently have an Area2D set up with a signal listening for ...
zeroparity's user avatar
3 votes
1 answer
1k views

Equivalent of RigidBody2D's body_exited on StaticBody2D?

I'm building a type of Pinball game using Godot 4.0. I've got two types of components relevant to this question: balls, represented as a RigidBody2D scene with <...
Jeroen's user avatar
  • 635
0 votes
0 answers
184 views

How can I debug a y-sort clipping issue?

OS: Mac Godot 3.5.1-stable Language GDScript I have created a Level object as a YSort. Under it I have a ColorRect, 2 Tilemaps, a Tree Scene, and the Player. The tree scene is composed of a ...
Doug Noel's user avatar
  • 101
3 votes
2 answers
1k views

How to differentiate between enemy and something else in Godot?

So, I have a simple 3D game with a player, an enemy, and walls. I've figured out how to detect collisions between my player (RigidBody) and an enemy or wall (Static Body). I want to know how can I ...
Programmer's user avatar
2 votes
1 answer
709 views

How can I keep a node in-place while I re-parent it?

I have an object that needs to follow various Path2D paths in my scene. To do this, when it needs to follow a path, I re-parent it to a ...
yoozer8's user avatar
  • 1,144
1 vote
1 answer
3k views

Why is Area2D not detecting collisions?

I am making a sidescrolling shooter and I am working on the shooting mechanism. I have two scenes, one contains a KinematicBody2D with a Sprite, position2D and a collisionshape2D and a second ...
pion's user avatar
  • 55
1 vote
1 answer
370 views

How to compute the points of a CollisionPolygon2D?

Godot v3.3.1.stable.mono.official I am trying to draw a CollisionPolygon2D programmatically but I cannot resize or write the ...
pietrodito's user avatar