How do I make a bomb trap spawn from a treasure chest and feel like it’s thrown at the player?

How do I…

Hi everyone,

I’m working on a loot drop system where treasure chests can spawn a bomb trap (as a hazard) instead of a heart or coin. The idea is that when a bomb is chosen as loot, it should appear like the chest is throwing the bomb toward the player (King). The King should be able to dodge it, or take damage if hit.

Right now, the bomb just appears and sits still or moves oddly. I’m looking for advice on making this feel more dynamic and dangerous.

What is the expected result

  • The bomb trap should spawn from the center of the chest.
  • It should fly or arc toward the King as if being thrown.
  • The bomb should bounce or roll a little on the ground when it lands.
  • If the bomb touches the King after landing, it should explode and reduce health.
  • It should work correctly for multiple chest instances.

What is the actual result

  • The bomb spawns from an incorrect position (not centered).
  • It doesn’t move toward the player in a believable way.
  • There is no arcing, bouncing, or rolling—it either stays still or slides flatly.
  • The bomb sometimes doesn’t trigger damage when it should.

Related screenshots

Let me know if you need any logic details. Since I am a new user, I can only attach 1 screenshot. I’m trying to stick to GDevelop’s built-in tools (no Physics unless absolutely necessary). Any tips or sample events would be appreciated!

Thanks in advance!
Byeol

In your other pots you are using tween for loot
Why not use the same here?

I am using tweens for all 3 of the loot objects. I am unable to share all the screenshots because of me being a new user but I hope you will understand what I have in my events and how to solve the errors.

Ok i took another look at your events
Tweens CANNOT run each frame
You need in your case add trigger once to condition in event where you want to play tween

Where exactly do I have to put this? But isn’t the problem with the part where the bomb is moved towards the player but applying force?

Take a look:

The create object has chest.X()+RandomInRange()… part. This was my initial implementation. Then I wanted the spawned objects to appear from the chest and centered as well. I experimented with creating a point on chest by the name “LootSpawned” and then changed the create object part to chest.pointX(“LootSpawned”), chest.pointY(“LootSpawned”) but it didn’t work. In one of the gdevelop tutorials, I saw them use centerX(),centerY() so i used it as well but that too didn’t work.

Trigger once