✨ General: Make Coins automatically move to player

In this tutorial, I'll show you how to make an event drop Gold, and the coins will move toward you. Here's the result.


First, let's set up a gold event in your template map. The first page will contain the starting animation. You can design it as you prefer, but for my approach, I'll have it jump to a random nearby location within 3 tiles, then switch to Page 2 using a Control Self Switch.


On Page 2, I'll set the coin to continuously move toward the player using the Movement Route script moveToPosition('player'). Then, I'll add a conditional branch to check if the coin is on the same tile as the player using checkRange(this._eventId, 0, 'player'). This condition returns true when the coin and player are on the same tile (due to the 0 range). For more details on checkRange, please refer to its documentation to better understand this condition.


That's basically it. Now, you just need to call Spawn Event and spawn the Gold event you've just created.


5 RPG Maker Action Combat Manual: ✨ General: Make Coins automatically move to player In this tutorial, I'll show you how to make an event drop Gold, and the coins will move toward you. Here's the result. First, let...
< >