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
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:
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...
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:
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.
This post has been edited by Alt_Jack: Jun 6 2012, 10:58 PM