Is it possible to make this type of Bomb in 2K3?

Halloo, how are you, I'm recently working on a project with many sources of inspiration, including The Binding of Isaac, I would like to implement a bomb mechanic which can be used on the map but is functional while you play, let me explain:


1731680666246.png

1731681850183.png


Another idea to illustrate them would be Bomberman, but without the side explosions.

I would like to use them to break walls and obstacles, however I can't figure out how to make it work perfectly, for now I have only worried about making the bomb appear in the indicated position and explode without altering anything and even then I can't do it. let it serve

1731680860656.png


Does anyone have an idea what I'm doing wrong or what system could be functional for my mechanics?

I'd like to do something different than just have the player interact with a strange wall and be given the options of blowing up the wall or not.
Well for one, erasing a common event doesn't do much. Assuming you got a bomb event on every map, you could potentially use a switch. First page of the bomb event is blank, turn on the switch inside of your "bomb spawning" common event for the second page of the bomb, which then runs on "parallel" (2k3 has that, yes?) on that parallel page you'll then play the SE and perhaps run a check to see if it's in range of any bombable walls.

If so, turn on the switch of whatever wall needs destroying (assuming your bombable walls are also events with a second, empty page), then turn off the bomb switch, making it go back to the blank page, ready to be reused.
The explosion needs to be coded in addition to everything else.

basically check all possible explosion targets based on the position of the bomb and then affect those targets.

a cross-bomb would simply go into all four directions until the tile encountered blocks the blast.
a circular bomb would use pythagoras to determine all affected tiles
and so on.
I also don't see anything about how you're calling this common event.
Ahem.

1731698535294.png


Probably overwriting the X coordinate's variable (#2) with the Y coordinate and never filling variable #3 at all is not right.

Next time it's best to debug the problem further first - try to understand why it's not working. In this example, you'd start by outputting the coordinates before spawing the event to make sure they are correct (using @> Show Message: \v[2] \v[3] for example), then you'd probably more easily notice what's wrong.
I have reviewed everything that has been told to me, I have managed to make it work to call the event to position the bomb, but now I only need to program the explosion section and its interaction with the obstacles. 😀👍

1731721263397.png
1731721324502.png
Thst interaction part is probably the really hard part (unless maybe with Maniacs Patch)
This has really burned my mind a lot, I think I'm going to simplify it so that it is the same wall event that detects the location of the bomb, but it would complicate it if I wanted the bombs to affect the enemies on the map, it would be sacrificing one mechanic for another.

Doesn't anyone have a reference to a mechanic similar to or related to checking adjacent positions in that way?
1731976745246.png


I've thought about limiting the bomb to destroying specific walls and obstacles.
if you want the explosion to hit objects and NPCs from a distance, use this method:

If it's to function as a simplified version of the 2D era games in the Bomberman franchise:
I did something like this a while ago, but I never did it as an explosion that only hits objects on the same X or Y line. I used this method as an obsolete tracker, and I reused it for something that might be useful to you.

It's done in a simple way just to understand how to make the coordinates be read without error and in almost instantaneous time.

The explosion event works like this: if the bomb is placed in the middle of the map, the first place it will hit is its own coordinate. In the sequence, the entire line above, then to the left, below and right. So the greater the distance, the longer it takes for the event to happen. On a small map, it is practically instantaneous. The image is an example:
1732077834317.png



Some things to consider:
I can't think of a practical way to make slow flames like in 2D era games without making it a giant event that's difficult to modify later.

About good practices, unfortunately for some reason when I use LABEL instead of LOOP it generates lags in some situations, I really don't want to think about it now, but it would solve for slow fire in all directions

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-make-this-type-of-bomb-in-2k3.173235/