Remember me
You are here: HomeForumCyberix3D ForumReport a bug"move camera left" "move camera right" won't work
Welcome, Guest
Username: Password: Remember me

TOPIC: Terrain not appearing

Terrain not appearing 2 years 6 months ago #952

Hi guys! creeperbot65 here!

I'm having problems with my code... It's supposed to make a small terrain thing, but the cubes won't appear!

Here's the code:
<Loop until="terrain_z" eq="500">
    <Cube collision="1" static="1" y="0" z="0" scaleX="1" scaleZ="1" texture="Material1" scaleV="1" scaleY="1" x="0" scaleU="1" visible="1">
      <Set var="x" value="terrain_x"/>
      <Set var="z" value="terrain_z"/>
    </Cube>
    <If var="terrain_x" eq="500">
      <Set var="terrain_x" value="0"/>
      <Increment var="terrain_z" value="50"/>
    </If>
    <Increment var="terrain_x" value="50"/>
  </Loop>

Please help me!
The administrator has disabled public write access.

Terrain not appearing 2 years 6 months ago #953

  • Hamish-Kirkman
  • Hamish-Kirkman's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Thank you received: 1
What are you trying to do?
The administrator has disabled public write access.

Terrain not appearing 2 years 6 months ago #954

i'm trying to make a small platform of blocks that I will use later for stuff...
The administrator has disabled public write access.

Terrain not appearing 2 years 6 months ago #955

  • Hamish-Kirkman
  • Hamish-Kirkman's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Thank you received: 1
Why don't you just insert a cube?
The administrator has disabled public write access.

Terrain not appearing 2 years 6 months ago #956

Because I will eventually make it so it is at least 500x200 and placing them block by block would make it very laggy and will take forever!
Last Edit: 2 years 6 months ago by creeperbot65-.
The administrator has disabled public write access.

Terrain not appearing 2 years 6 months ago #957

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 395
  • Thank you received: 392
You can use the For command, instead of Loop, for immediate creation.
<For var="terrain_x" from="0" to="1000" step="100">
 <For var="terrain_z" from="0" to="1000" step="100">
   <Cube collision="1" static="1">
     <Set var="x" value="terrain_x"/>
     <Set var="z" value="terrain_z"/>
   </Cube>
 </For>
</For>

Regards,
Cyberix3D team
The administrator has disabled public write access.
Time to create page: 0.086 seconds