How do I...create a projectile that lingers for a bit before dissipating?

Idea:

I have an event that is stationary, and is automatically activated after a certain time has passed.

Once activated, the event "spits" out a sludge bomb! The sludge bomb is "aimed" at the player, (I think in game terms, it would "jump" towards the player's last location) and jumps towards that coordinate the player was at just at spit time. When it hits the coordinate, it should "linger" for a bit before erasing itself.


Possible solutions:

I was thinking about setting up a parallel event that works with a variable for the stationary trap, so that when a certain value is met after X amount of frames, the event spits out the projectile.

I'm not really sure how to go about setting up the rest of that idea though. Any thoughts?
Try using a move route. You can put a 'wait' command into a move route for a specific number of frames.

You can use 'this.requestAnimation(animation number)' as a script in the move route to request a specific animation on the sludge bomb, and 'this.erase()' to erase it, so you can have it explode harmlessly.

If you only spit out a single sludge bomb, then you can just have the spitter transform into a bomb (or teleport one to its location). If you want to have an unlimited number of sludge bombs you'll need an event spawner plugin
Try using a move route. You can put a 'wait' command into a move route for a specific number of frames.

You can use 'this.requestAnimation(animation number)' as a script in the move route to request a specific animation on the sludge bomb, and 'this.erase()' to erase it, so you can have it explode harmlessly.

If you only spit out a single sludge bomb, then you can just have the spitter transform into a bomb (or teleport one to its location). If you want to have an unlimited number of sludge bombs you'll need an event spawner plugin

Ahh, yeah. It's a constant trap, so it seems I'll need an event spawner in that case.

To give you a better idea...the obstacle spitter thing is expected to be repeated in certain areas and it continuously spits...after X amount of frames. I want to implement this so that it keeps the player constantly on their toes and wanting to move in certain rooms.
if you only need one bomb on the map at a time (or one bomb per shooter), you can also have it turn invisible and teleport offscreen instead of erasing, and basically use it in a continuous cycle.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-create-a-projectile-that-lingers-for-a-bit-before-dissipating.136679/