Create a "Parallel Process" event on your map with the following content:
1. Wait until the player presses a button
2. Move the Event on top of the player and change its graphic to resemble a bomb.
(You can move the event by storing the players location in variables first and use the variables within the "Set Event Location" command)
3. Wait for a specific time
4. Display an explosion
5. Check all possible targets whether they are in range and initiate additional code when they are hit:
To calculate the distance to another event or to the player there are several possiblilities. One would be using the
pythagorean theorem, with a and b being the distances along the X- and Y-axis of the map. In this case, it might be useful to measure the positions by the characters screen coordinates, which is a bit more precise than using the tile they stand on.
In the end, it could look like this
(screenshot made with the RMVXAce, but it looks the same in RMMV):
