Post new topic    
Slime
Send private message
need help putting minigames in my game 
 PostWed Nov 03, 2010 12:40 am
Send private message Reply with quote
how do i do a minigame?
such as space invaders or pong or pacman or somthing like that as a mini game
Liquid Metal Slime
Send private message
 
 PostWed Nov 03, 2010 1:31 am
Send private message Reply with quote
It's kind of a case of "If you don't know how, you're not ready to make one."

But short answer: You have to plotscript the game yourself and activate the script from somewhere within the larger game. Wandering Hamster contains a few good examples, as well as the scripts James used to create them.
My website, the home of Motrya:
http://www.jshgaming.com
Liquid Metal King Slime
Send private message
 
 PostWed Nov 03, 2010 4:35 pm
Send private message Reply with quote
Yes, you will definitely need to know the basics of plotscripting before to get to the advanced plotscripting.

However, regarding Space Invaders, you can use my script from Space InvadeOHRs

You can import it into your own game, and make your own graphics for it.

A few things to note:

* You will want to remove the "game over" from the end of the main "space invadeOHRs" plotscript. That is because you will want to return to your main game after the mini-game ends.

* To change which graphics get used for the enemies, check the "load walkabout sprite" command in the "create armada" script. The same goes for the "create shooter" script.

* You will want to add some extra cleanup at the end of the main script. Find the place where it says "free slice(armada)" and replace it with "free slice children(sprite layer)" That will make sure that everything, enemies, shooter,and bullets all get removed when the game ends. You don't want any of those to be floating over the screen after the mini-game ends.

* You probably want this mini-game to take place on its own separate blank map. Look at the "teleport to map" command in the plotscripting dictionary.


If you haven't done the plotscripting tutorial yet (on the wiki), you should do it first. it will teach you how to compile a script and get it into your game.
Display posts from previous: