Help - Search - Members - Calendar
Full Version: Requesting volleyball mini-game
RPG RPG Revolution Forums > Scripting > Event Emporium
xtian3426
i would like to request a tutorial or a demo of how to make a mini-game "volley-ball"

everyone is probably know what a volleyball game is

You follow the ball and when the player touches it, it bounces back to the opponents court for the net issues you need to press for example the "z" button twice so it will increase your toss over the net and for the directions arrow keys will determine where the ball goes

when the ball goes out, you score a point

for enemies, it will be hard to make an AI for him XD

goodluck and hope you can help me
Lato
Idea! Ok im no master of anything but think about this, You know the event when you can make a char jump in differnt directions? Well thats just a char sprite right, so just change that sprite to a ball sprite and have it jump in the air whenever you come touch it, its a poor mans Volleyball right? happy.gif
xtian3426
haha confused back there

a demo would be nice tongue.gif
Lato
QUOTE (xtian3426 @ Jun 6 2012, 09:52 AM) *
haha confused back there

a demo would be nice tongue.gif


So would some winning lotto numbers lol.

Just make a event, and have that event jump backwards when the player touches it. Got it? Then just edit the chat that is jumping to look like a vollyball.
xtian3426
QUOTE (Lato @ Jun 6 2012, 10:08 AM) *
QUOTE (xtian3426 @ Jun 6 2012, 09:52 AM) *
haha confused back there

a demo would be nice tongue.gif


So would some winning lotto numbers lol.

Just make a event, and have that event jump backwards when the player touches it. Got it? Then just edit the chat that is jumping to look like a vollyball.



hmm still haha ill try it then , ill tell ya the results later
Alt_Jack
Well, I've figured out most of it, and I'll try and post it here as I get all the event coding together. I used a girl as the opponent (my tribute to DOAX) Here's what I've got so far:

Ref 1
parallel process, below characters.
control variables 1 = girl's map X
control varibales 2 =girls's map Y
control variables 3 = ball's map x
control varialbes 4 = ball's map y
control variables 5 = player's map x
control variables 6 = player's map y

now that we know where everyone is...
Ref 2

This one uses common events, so I'll put that one in next
parallel process, below chars
condition branch variable 1 == variable 3
->conditoin branch variable 2 == variable 4
-->call common event: v-ball (this can be replaced with the move route if you want just straight forward shots)
Condition branch: variable 5 == variable 3
->condition branch: variable 6 = variable 4
-->call Common Event: v-ball

And here's the common event:
Common event
This randomizes the volley and isn't totally necessary. Make sure that when you are editting the move routes for the jump, that "wait" is turned OFF
condition branch variable 1 == variable 3
->condition branch variable 2 == variable 4
--> control variables 7 = random number 1-3
..and then a bunch of condition branches that say where you want it to go. They'll look something like this:
conditional branch - variable 7 == 1
set move route: ball (remember to turn OFF wait)
$> jump -x,y
else.... (same format, but for 2 and 3)

then you copy/paste that to make the player's conditions. Just remember that the player (assuming he's on the left and she's on the right) has a positive X and the girl has a negative X. Speaking of the girl, I'm still trying to figure out how to get her to move towards the ball.
I'll post the coding for where the ball lands later. sorcerer.gif
xtian3426
could you post a video of you playing then? like you did with your other events?
Alt_Jack
QUOTE (xtian3426 @ Jun 7 2012, 01:07 AM) *
could you post a video of you playing then? like you did with your other events?

No. tongue.gif

I could tell you how the perimeter is calculated, though.
xtian3426
QUOTE (Alt_Jack @ Jun 7 2012, 04:32 PM) *
QUOTE (xtian3426 @ Jun 7 2012, 01:07 AM) *
could you post a video of you playing then? like you did with your other events?

No. tongue.gif

I could tell you how the perimeter is calculated, though.



haha im confused with it lol a demo? haha
Lato
If he was confused by my simple 3 step event you think he gonna understand all that? Even I didn't understand any of that lol.
Im telling you dude just make a jump char event and edit a char, its to easy man just play around with it and youll learn so much.
Alt_Jack
QUOTE (Lato @ Jun 8 2012, 08:06 AM) *
If he was confused by my simple 3 step event you think he gonna understand all that? Even I didn't understand any of that lol.

It's like when people post scripts. You don't need to understand it; it's written word-for-word, so you just copy it. Besides, I'd rather finish the rest of it beforehand.
QUOTE
Im telling you dude just make a jump char event and edit a char, its to easy man just play around with it and youll learn so much.

No, because that's not going to work. confused.gif I don't mind being proven wrong, but...
There's an option to go backwards, but it's only 1 step, and depends which way the char is facing. The jump command uses X/Y co-ordinates (backwards, I might add) and doesn't take into account which way the character is facing.
If you can figure out an easier event coding, I'd love to see it. mellow.gif
Lato
QUOTE (Alt_Jack @ Jun 8 2012, 07:07 PM) *
QUOTE (Lato @ Jun 8 2012, 08:06 AM) *
If he was confused by my simple 3 step event you think he gonna understand all that? Even I didn't understand any of that lol.

It's like when people post scripts. You don't need to understand it; it's written word-for-word, so you just copy it. Besides, I'd rather finish the rest of it beforehand.
QUOTE
Im telling you dude just make a jump char event and edit a char, its to easy man just play around with it and youll learn so much.

No, because that's not going to work. confused.gif I don't mind being proven wrong, but...
There's an option to go backwards, but it's only 1 step, and depends which way the char is facing. The jump command uses X/Y co-ordinates (backwards, I might add) and doesn't take into account which way the character is facing.
If you can figure out an easier event coding, I'd love to see it. mellow.gif


So? You need to be facing a ball to hit it??? just backwards head but that thing! If its possible its on the table dude lol, though unlikely you just proved my point that it would work.
xtian3426
ill try it copy em all then and see the results smile.gif
Alt_Jack
QUOTE (xtian3426 @ Jun 8 2012, 08:40 PM) *
ill try it copy em all then and see the results smile.gif

....or you could just try out the demo. sorcerer.gif

http://www.mediafire.com/?c27jjqo4lxvmh5w

Fair warning: there are a couple kinks in it, mainly the scorekeeping display. But, since I've only seen a handful of people who don't claim to be super-awesome at eventing, it shouldn't be a problem getting help with it around here.
xtian3426
QUOTE (Alt_Jack @ Jun 8 2012, 09:08 PM) *
QUOTE (xtian3426 @ Jun 8 2012, 08:40 PM) *
ill try it copy em all then and see the results smile.gif

....or you could just try out the demo. sorcerer.gif

http://www.mediafire.com/?c27jjqo4lxvmh5w

Fair warning: there are a couple kinks in it, mainly the scorekeeping display. But, since I've only seen a handful of people who don't claim to be super-awesome at eventing, it shouldn't be a problem getting help with it around here.



yeah a demo haha been waiting for this im gonna check it out
kayden997
Here's what I got


The only problem is you cannot change the jump speed. If so, I would be able to randomize the positions where it lands.
Alt_Jack
QUOTE (kayden997 @ Jun 9 2012, 10:36 AM) *
Here's what I got
The only problem is you cannot change the jump speed. If so, I would be able to randomize the positions where it lands.

...you also apparently can't return the ball once it comes to you. mellow.gif
Correct me if I'm wrong, but isn't that a major aspect of volleyball?
kayden997
True, but again, jump speed is a problem. And to just to a "move" command would be more like ping pong
Alt_Jack
On a side note, I'd like to submit both this and my meteor dodgeball for the Event list. sorcerer.gif
kayden997
Make another topic for the volleyball. Your meteor one is in there under "M"
Alt_Jack
I'd like to know what the verdict on it is...good enough?
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.