Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Requesting volleyball mini-game
xtian3426
post Jun 6 2012, 04:31 AM
Post #1


adorable kyon
Group Icon

Group: Revolutionary
Posts: 171
Type: None
RM Skill: Undisclosed




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


__________________________
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
Alt_Jack
post Jun 6 2012, 10:56 PM
Post #2


Level 19
Group Icon

Group: Revolutionary
Posts: 377
Type: Event Designer
RM Skill: Skilled
Rev Points: 40




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

This post has been edited by Alt_Jack: Jun 6 2012, 10:58 PM


__________________________

the Alternate Jacks event demo
As well as all of my images in one place, free for use.
Most of my images will be there, since this site takes too long to approve stuff and VX.net has no bulk uploader.
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- xtian3426   Requesting volleyball mini-game   Jun 6 2012, 04:31 AM
- - Lato   Idea! Ok im no master of anything but think ab...   Jun 6 2012, 04:40 AM
- - xtian3426   haha confused back there a demo would be nice   Jun 6 2012, 08:52 AM
|- - Lato   QUOTE (xtian3426 @ Jun 6 2012, 09:52 AM) ...   Jun 6 2012, 09:08 AM
|- - xtian3426   QUOTE (Lato @ Jun 6 2012, 10:08 AM) QUOTE...   Jun 6 2012, 09:26 AM
|- - xtian3426   could you post a video of you playing then? like y...   Jun 7 2012, 12:07 AM
|- - Alt_Jack   QUOTE (xtian3426 @ Jun 7 2012, 01:07 AM) ...   Jun 7 2012, 04:32 PM
|- - xtian3426   QUOTE (Alt_Jack @ Jun 7 2012, 04:32 PM) Q...   Jun 8 2012, 01:36 AM
- - Lato   If he was confused by my simple 3 step event you t...   Jun 8 2012, 07:06 AM
|- - Alt_Jack   QUOTE (Lato @ Jun 8 2012, 08:06 AM) If he...   Jun 8 2012, 06:07 PM
|- - Lato   QUOTE (Alt_Jack @ Jun 8 2012, 07:07 PM) Q...   Jun 8 2012, 06:15 PM
- - xtian3426   ill try it copy em all then and see the results   Jun 8 2012, 08:40 PM
|- - Alt_Jack   QUOTE (xtian3426 @ Jun 8 2012, 08:40 PM) ...   Jun 8 2012, 09:08 PM
|- - xtian3426   QUOTE (Alt_Jack @ Jun 8 2012, 09:08 PM) Q...   Jun 9 2012, 01:46 AM
- - kayden997   Here's what I got The only problem is you ca...   Jun 9 2012, 10:36 AM
|- - Alt_Jack   QUOTE (kayden997 @ Jun 9 2012, 10:36 AM) ...   Jun 9 2012, 12:42 PM
- - kayden997   True, but again, jump speed is a problem. And to j...   Jun 9 2012, 01:06 PM
- - Alt_Jack   On a side note, I'd like to submit both this a...   Jun 9 2012, 01:18 PM
- - kayden997   Make another topic for the volleyball. Your meteor...   Jun 9 2012, 01:34 PM
- - Alt_Jack   I'd like to know what the verdict on it is...g...   Jun 9 2012, 10:40 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 06:12 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker