generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Is this a good way to make minigames?

Previous Thread :: Next Thread 
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
05 Feb 2015 11:16 AM
rather than having the main script do what the map does

I have a script inside each map which is undisabled when that map is chosen and cloned

Mr. Chang wants some poodle with his noodles
Report Abuse
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
05 Feb 2015 11:24 AM
That seems sensible. I would personally just have one huge script with all the stuff, but if your way works I don't see anything obviously wrong with it.
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
05 Feb 2015 11:27 AM
A better way to put it is having in a Folder with all the scripts disabled to handle the mini-games
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
05 Feb 2015 11:29 AM
I'd do something like

local minigames = {}
function minigames.HideAndSeek()
--do minigame stuff
end
function minigames.Arena()
--do minigame stuff
end

minigames[math.random(1, #minigames)]()

⬡
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
05 Feb 2015 11:30 AM
^
Do what he said. Like this.
Make a folder in ServerStorage.
Put scripts within it.
Name the scripts, to the map names; maybe add something at the end? Like: The map name is: Mansion, and the scripts name is: MansionScript.
Whenever a minigame is chosen, search for the script situated in the Folder you have.
Enable it.

Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
05 Feb 2015 11:35 AM
I might do that.

Mr. Chang wants some poodle with his noodles
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
05 Feb 2015 11:36 AM
helps with optimization because the main script is only 76 (including empty lines) long

Mr. Chang wants some poodle with his noodles
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
05 Feb 2015 11:39 AM
Minigames are quite simple. And, You have VAST competition; Ripulls Minigames is a good example. There are some things like: Map Voting which you could add, to boost your game up.
Report Abuse
Crythox is not online. Crythox
Joined: 03 Oct 2011
Total Posts: 1188
05 Feb 2015 11:42 AM
I'd put game scripts for each minigame in the map. And have the script repeat wait() until the map's GameEnded value is set to true
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image