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: Gah...So much logic...

Previous Thread :: Next Thread 
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
28 Feb 2013 06:02 PM
What's the quickest way to check what walls are left in a cell I create?
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
28 Feb 2013 06:03 PM
I'm sorry, could you explain more? Are these terrain cells? In this case what are these walls you're talking about?
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
28 Feb 2013 06:03 PM
How is the data stored?
Report Abuse
BrandonFireflower is not online. BrandonFireflower
Joined: 09 Feb 2010
Total Posts: 731
28 Feb 2013 06:03 PM
Look at it and see if they are there.

By that I mean go to SH.
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
28 Feb 2013 06:07 PM
No, not terrain cells. They're maze cells, so there's six sides. I'm going to be making a random 3D maze generator, and I'm getting mad at the way I'm *currently* doing it. They're stored in a model-per-cell way, then in a cell-per-row way. I have the cells specified inside of a table as well.
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
28 Feb 2013 06:10 PM
Not much experience there. Use raycasting maybe?
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
28 Feb 2013 06:13 PM
That might work, actually. Maybe I could assign a number to each possible outcome. Sure, thats a few outcomes, but it's worth a shot, right?
Report Abuse
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
28 Feb 2013 06:16 PM
random storage suggestion

Make each cell a character in a multidimensional table. Each cell should have 64 possible values. (i.e. 2^6, or two to the power of the number of sides a square has) When you want to determine which sides have walls in a cell, use some function to extract the bits from the character.
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
28 Feb 2013 06:17 PM
That's a good idea. I'll try it.
Report Abuse
Garnished is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
28 Feb 2013 06:35 PM
How big are the cells?
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