Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: FHZebedee on December 18, 2006, 06:12:24 PM

Title: Soccer Game?
Post by: FHZebedee on December 18, 2006, 06:12:24 PM
Okay, I was wondering. How do I make a soccer style minigame, one on one? I want the player to play against one NPC opponent. Nothing fancy is needed, just the methods for making a game where the ball moves away when the player touches it, and by pressing a key, the player can kick the ball two spaces. It's tempting to just give up on this due to the difficulty, so some help would be nice.
Title:
Post by: Meiscool-2 on December 19, 2006, 02:47:17 AM
Well, a good place to start would be looking for a "Crate Pushing" tutorial. There should be one on gamingw.net.

Pushing the ball and pushing the crate are basically the same thing.
Title: Thanks.
Post by: FHZebedee on December 19, 2006, 04:03:59 PM
I know on that one. Touched by hero, move event (soccer ball) away from hero, set a variable to location of event (soccer ball). Set something to check if it ever equals the ID of either goal, and result in win or loss accordingly. Have events that bounce it out of corners to prevent stalemates. That all works moderately well, if a tad sluggish.

I guess that my problem is that I don't have any idea on how to make a keypress result in a sudden kick, and I can't figure out how to script an event that actively tries to push that soccer ball towards the other goal. The best I could do was have him set to max speed, move towards hero and continuously get in the way.
Title:
Post by: Moosetroop11 on December 19, 2006, 05:35:05 PM
So, what you're asking is that you can press to kick, and then move around whilst dribbling the ball? Or what? Otherwise Meiscool's right.
Title: Thanks!
Post by: FHZebedee on December 20, 2006, 02:01:07 PM
Yeah, luckily I managed to figure out how to make it work as far as Meiscool gave me advice on.

I'll try the kick solution. And I guess I'll just add challenge by setting the guy to pester, adding a goalie, and making it take three points or so.