The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: Milennin on January 03, 2013, 11:18:03 AM

Title: [RM2K] How to make continuous spawns
Post by: Milennin on January 03, 2013, 11:18:03 AM
The basic idea is this: Have objects/sprites spawn at one side of the map, and make them move to the other side of the map. Upon reaching the other side have them disappear, and respawn again at their original location.
How do I make something like this? If it's possible at all?
Title: Re: [RM2K] How to make continuous spawns
Post by: &&&&&&&&&&&&& on February 27, 2013, 02:39:27 PM
Yes.

This is a very quick little example, this isn't supposed to be a tutorial. 

You can't spawn entities, so you'll have to keep some off camera for later use.
Spoiler for "Waiting to strike!":
(http://i109.photobucket.com/albums/n52/dreamslayer7/untitled-2_zps37e6318c.png)

For them to walk down, just use a move event command. Use repeat action, and skip if cannot move.
Spoiler for "Hup two!":
(http://i109.photobucket.com/albums/n52/dreamslayer7/untitled2_zps481c72d6.png)

To get them back to the top, use set event location. You can use a set location, or use variable so they don't always return to the same place.
Spoiler for "Where am I?":
(http://i109.photobucket.com/albums/n52/dreamslayer7/untitled3_zps1332c6ed.png)
Title: Re: [RM2K] How to make continuous spawns
Post by: Wiimeiser on February 27, 2013, 03:16:19 PM
What I do is make switch 1 an unnamed temporary switch and turn it on for brief periods of time like cutscenes. You can exploit this to have a character teleport away without the animation mysteriously vanishing, for example.
Title: Re: [RM2K] How to make continuous spawns
Post by: Milennin on February 27, 2013, 08:13:59 PM
Heh, old topic is old, guys. But thanks for the reply.=P Yeah, I figured out how to do this a while ago, by having a second page on an event that turns it invisible when it reaches its end point, and make it move back to the other end of the screen, where it'll then turn itself visible to appear again. Although your solution is even better, Boe. I've only recently started to use variables, so I never really thought of using them to make stuff continuously spawn.