playMaker

Author Topic: Procedural world in cubes  (Read 4329 times)

Rhyuzaky

  • Playmaker Newbie
  • *
  • Posts: 32
Procedural world in cubes
« on: July 18, 2015, 10:30:01 AM »
I've been studying the playmaker and the background, and I decided to start testing grounds
self generated to start the game.
So far I managed to create the Unity Number of cubes in X, and then cubes number Z.
The problem and I can not make him repeat this action on the next line without creating cubes in the same place the first action.
Also still do not know how to create cubes in Y randomly.
Another thing I was thinking and the weight of the cubes in jogo.Sera that there is some way to make the chunks playmaker?
And so isto.Se can help me, thank you!
Sorry for my bad English, and because I am Brazilian and not quite mastered the language.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Procedural world in cubes
« Reply #1 on: July 18, 2015, 10:55:28 AM »

Here's info on how to make loops, you'll just need to replace the randomness with positional modifications or use the iterator.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Rhyuzaky

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Procedural world in cubes
« Reply #2 on: July 18, 2015, 12:08:20 PM »
I will try and see if it works. Thanks!
If it works ok post here.

Rhyuzaky

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Procedural world in cubes
« Reply #3 on: July 18, 2015, 01:08:19 PM »
Man, that is useful, but I need to put the cubes online.
For Example Create 30 cubes in X, and there 30 cubes in Z.Isso already managed to do.
What this difficult and as follows:
After finishing the 30 cubes in Z, I want him to create another 30 in X so that a line Z in the front.
And in the end I want you to turn a plot.
Any idea how to do this?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Procedural world in cubes
« Reply #4 on: July 18, 2015, 02:01:34 PM »
Use the index int, every loop add 1 to the destination instead of doing it random, then when you reach 30 add to the x insead. It's mostly just management of the count and using an Int Compare or something to jump to another state and modify the loop behaviour.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Rhyuzaky

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Procedural world in cubes
« Reply #5 on: July 20, 2015, 06:51:12 AM »
This way you told me was what I tried first of all.
 He has a problem, the loop send X to the Z loop and return to X, X to create blocks.
 This is what confused me.
 what will be I did wrong?
« Last Edit: July 20, 2015, 07:39:55 AM by Rhyuzaky »

Rhyuzaky

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Procedural world in cubes
« Reply #6 on: July 20, 2015, 10:50:18 AM »
Update.
I managed to create a land cubes generated.
 The only problem is that I can not do they generate to start the game.
 They are generating in real time, as I do they generate when starting the game?
 Another thing, I can not do they generate in y, have any idea how to do it?
 Thanks.
« Last Edit: July 20, 2015, 01:28:08 PM by Rhyuzaky »