What does this Event do? Well, simply put, it fires randomly placed rocks (or whatever) at people. Good for stuff like missile barrages or rocks rolling down hills.
You're going to need, um, a bunch of stuff, actually. In this case, the rocks are moving left to right, so the map is more wide than high; mine was like 100x13 and it's important to remember that later on.
XY tracker
basically, it tracks where the rock is. Very useful. Parallel process, below players, no graphic. Control variables: 1 - rock 1's map X Control variables: 2 - rock1's map Y
The Rock
same as characters, speed: 4xfaster, freq: highest, custom move route: move right, repeat action, event touch- Game over (or damage of some kind)
Distributor
This is going to be a pain to describe. It's a parallel process event, below characters. It checks if the rock has crossed a "finish line", then puts it back at the "start" in a random position. The X/Y of the "finish line" was at X25 with the Y Co. being between 0 and 12, therefore the "finish line" runs from 25/0 to 25/13, while the "starting line" runs 0/0 to 0/12. Okay, so: condition branch: variable 1 = = (equal to) 25 > condition branch: variable 2 > = (greater than or equal to) 0 -> control variables: 1 - 1 (remember where I said the starting line was) -> control variables: 2 - random (0....12) ->set event location: rock1 - variable 1, 2 branch end branch end
You have to create a condition branch like the one above for each rock, along with it's own variables. I had 5 rocks and it took up 10 variables.