Help - Search - Members - Calendar
Full Version: [VX/XP] Meteor Dodgeball
RPG RPG Revolution Forums > Scripting > Event Emporium > Eventing Tutorials
Alt_Jack
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.
Nub Cake
I like this a lot, always liked dodge ball in other games, so this will be fun to try out, although, i gotta wait till the exams are over :/
Thanks for sharing smile.gif
Alt_Jack
It all depends when the projectiles go back to the starting line; if you just have to avoid one volley and you're home free....so I added in some heat-seeking missiles for some added excitement.
Nub Cake
Could you upload a demo so i could check it out earlier than i plan? tongue.gif
And i like the heat-seeking missiles u speak off smile.gif

Also, if you cannot provide a demo, do not worry, will be able to work it within next week if so ^^
Alt_Jack
Why would it require a demo? It's an object moving in a straight line. tongue.gif
Here's me trying to play it:
http://www.youtube.com/watch?v=5nWQXUcwa_g...eature=youtu.be
At about 45 seconds in a get totally fried. pinch.gif

You can also check out some of the other event vids I've made. sorcerer.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.