How to Make Conveyor Belts: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Cecibean
m Removed section
>Mindraker
m Reverted edits by Therex (Talk) to last version by Cecibean
 
(26 intermediate revisions by 4 users not shown)
Line 14: Line 14:
Select the brick using the [[Resize]] button, and stretch it out to the size you want the conveyor belt to be.  While the brick is selected, change the brick property called "TopSurface" to "Smooth" - so that the items being moved will not get stuck on the belt.  If you don't have the Property window open, click View from the menu bar, and select Properties to open it.
Select the brick using the [[Resize]] button, and stretch it out to the size you want the conveyor belt to be.  While the brick is selected, change the brick property called "TopSurface" to "Smooth" - so that the items being moved will not get stuck on the belt.  If you don't have the Property window open, click View from the menu bar, and select Properties to open it.


You can change the color of the brick to your choice. You may want to add short walls on the sides of the conveyor belt brick so when it is finished, the items you are moving don't fall off the sides.
You can change the color of the brick to your choice.
 
The last change is to set the [[Anchored]] property of the brick to checked.  In the Property Window, find the property [[Anchored]] and check it.


== Turn the Conveyor Belt On ==
== Turn the Conveyor Belt On ==


This section will describe how to make the brick move the items that are on top of it.
The [[Velocity]] property of a brick describes the speed and direction of an object.  It has 3 values - one for each x, y and z axis.  These values refer to the directions of the workspace - not of your brick.


Select the brick and look for the property called [[Velocity]] in the Properties window.
To change the velocity property, select the brick and open the Properties window.  Click the [+] sign to expand the [[Velocity]] property and show the values for each axis.  The x value will move the bricks along the x-axis of the workspace.  The y value will try to move the bricks vertically along the y axis.  The z value will move it along the z-axis of the workspace.  Since it is hard to tell which is the x-axis and which is the z-axis, try entering a value of 5 on the x-axis - and test the brick in [[Play Solo]] mode by clicking Tools > Test > Play Solo.  You can add a value to more than one axis which will change the angle of the motion.  Negative numbers apply the same amount of force as positive numbers, but in the opposite direction.


Change its coordinates according to the direction of your conveyor belt.
For this example, set the x value of the [[Velocity]] property to 5.


They're X, Y, Z coordinates, so you won't need the middle one, Y, -- the vertical direction.  Negative numbers apply the same amount of force as positive numbers, but in the opposite direction.  You MUST do this in edit mode or it won't work.


== Final Step - Anchor It ==
The final step is to highlight the conveyor belt brick in the Roblox Editor.  In its properties, there should be a checkbox labeled, 'Anchored'.  Place a check here to lock it in place.  Now that it's locked in place, it applies its velocity to whatever touches it.


== Making a Flowing River ==


== Rivers ==
Rivers are simply colored conveyor belts - which have a transparent brick above the conveyor belt to make it look like water.


Rivers are simply colored conveyor belts.
To make a river, follow the steps described above for how to create a Conveyor belt.  Then continue with these steps to make it act like a rushing river.


* If you can't see the [[Properties|properties]] window in [[Roblox Studio]], go to View->Properties.
* Change the [[BrickColor]] property of the conveyor belt to Bright blue.
* Insert > Object > Part.  This will insert a brick into your map.
* Make sure that brick is solid; it has the [[Transparency]] property set to 0.
* [[Resize]] that brick to what ever size you want.
* Copy and paste the conveyor belt brick, and make sure they are right on top of each other.
* Change the [[BrickColor]] to Bright blue.
* Change the [[CanCollide]] property of the top brick to unchecked, so that players will be able to walk through this top brick.
* Make sure the [[Anchored]] box is checked.
* Change the [[Transparency]] property to 0.5 - so it looks like water you can see through.
* Make sure that brick is solid (i.e., a [[Transparency]] of 0).  (Bricks added to the map are solid by default).
* Copy and paste this same brick, but uncheck the [[CanCollide]] box (i.e., set the value to false).
* Make sure the [[Anchored]] box is checked on this piece, too.
* Make sure the [[Anchored]] box is checked on this piece, too.
* If you want earthen sidebanks to the river, then add them.
* Set the [[Velocity]] property to 0 for all the axes of this top brick.  Only the bottom brick will move objects.  All objects that land on top of the 'water' brick will sink down to the conveyor brick.
* Finally, group the bottom and top together.
 
Now we have to test it. Go to Tools > Test >  Play Solo. You should get another window where you're playing solo. Go to your river, and step on it. If it isn't flowing the right way, then go back to studio and set the [[Velocity]] value to a different axis (either x or z axes.)  Test it again to make sure the water is flowing in the right direction.
 
== Making a Whirlpool ==
Instead of using the [[Velocity]] property to move items in one direction, you can use the [[RotVelocity]] property to make the conveyor belt move objects around in a circle. 
 
Follow the steps describing how to create a conveyor belt and 'Making a Flowing River'.  Then complete these steps:
 
*  Remove the values from the [[Velocity]] property.
*  Expand the [[RotVelocity]] property to show the values for the 3 axis.
*  Add a 5 to the x-axis property, and a 5 to the z-axis property.
*  Add walls around the river - to keep the pieces inside.
*  Test the whirlpool in [[Play Solo]] mode.  Bricks that are placed on the river will begin to move in a circular fashion.


===Making it a Flowing River===
== Tips ==
Now we'll look at how to make it work! Select the bottom river piece (The solid one) and look in properties. Find the [[Velocity|velocity]] property, and press the + sign. Now, you should see three values. X, Y, and Z. Now, set the X value of the property to 100. Finally, group the bottom and top together.<br>
*If the brick is not anchored, it will not move the objects on top of it.
Now we have to test it. Go to Tools->Test->Play Solo. You should get another window where you're playing solo. Go to your river, and step on it. If it isn't flowing the right way, then go back to studio and rotate it. Test it again to make sure.





Latest revision as of 09:08, 12 December 2008

Introduction

A conveyor belt is an object that pulls other objects along on top of it. They are often used in assembly lines in factories, in airports to carry luggage, or in grocery store checkout aisles. This tutorial will teach you how to build a working conveyor belt, a rushing river, and a rotating whirlpool - all using either the Velocity or the RotVelocity properties of a brick.


Create The Brick

Edit your place using Roblox Studio. You will need the additional features available from Roblox Studio to build the conveyor belt. If you are in Edit mode, click the menu on the top left called Tools to open up the Roblox Studio features.

From the menu, click Insert and select Object. From the pop up window, select Part - which will insert a brick into your place. Click the Zoom Extents button on the top button bar if you cannot find the new brick. This will center your screen on the brick.

Select the brick using the Resize button, and stretch it out to the size you want the conveyor belt to be. While the brick is selected, change the brick property called "TopSurface" to "Smooth" - so that the items being moved will not get stuck on the belt. If you don't have the Property window open, click View from the menu bar, and select Properties to open it.

You can change the color of the brick to your choice.

The last change is to set the Anchored property of the brick to checked. In the Property Window, find the property Anchored and check it.

Turn the Conveyor Belt On

The Velocity property of a brick describes the speed and direction of an object. It has 3 values - one for each x, y and z axis. These values refer to the directions of the workspace - not of your brick.

To change the velocity property, select the brick and open the Properties window. Click the [+] sign to expand the Velocity property and show the values for each axis. The x value will move the bricks along the x-axis of the workspace. The y value will try to move the bricks vertically along the y axis. The z value will move it along the z-axis of the workspace. Since it is hard to tell which is the x-axis and which is the z-axis, try entering a value of 5 on the x-axis - and test the brick in Play Solo mode by clicking Tools > Test > Play Solo. You can add a value to more than one axis which will change the angle of the motion. Negative numbers apply the same amount of force as positive numbers, but in the opposite direction.

For this example, set the x value of the Velocity property to 5.


Making a Flowing River

Rivers are simply colored conveyor belts - which have a transparent brick above the conveyor belt to make it look like water.

To make a river, follow the steps described above for how to create a Conveyor belt. Then continue with these steps to make it act like a rushing river.

  • Change the BrickColor property of the conveyor belt to Bright blue.
  • Make sure that brick is solid; it has the Transparency property set to 0.
  • Copy and paste the conveyor belt brick, and make sure they are right on top of each other.
  • Change the CanCollide property of the top brick to unchecked, so that players will be able to walk through this top brick.
  • Change the Transparency property to 0.5 - so it looks like water you can see through.
  • Make sure the Anchored box is checked on this piece, too.
  • Set the Velocity property to 0 for all the axes of this top brick. Only the bottom brick will move objects. All objects that land on top of the 'water' brick will sink down to the conveyor brick.
  • Finally, group the bottom and top together.

Now we have to test it. Go to Tools > Test > Play Solo. You should get another window where you're playing solo. Go to your river, and step on it. If it isn't flowing the right way, then go back to studio and set the Velocity value to a different axis (either x or z axes.) Test it again to make sure the water is flowing in the right direction.

Making a Whirlpool

Instead of using the Velocity property to move items in one direction, you can use the RotVelocity property to make the conveyor belt move objects around in a circle.

Follow the steps describing how to create a conveyor belt and 'Making a Flowing River'. Then complete these steps:

  • Remove the values from the Velocity property.
  • Expand the RotVelocity property to show the values for the 3 axis.
  • Add a 5 to the x-axis property, and a 5 to the z-axis property.
  • Add walls around the river - to keep the pieces inside.
  • Test the whirlpool in Play Solo mode. Bricks that are placed on the river will begin to move in a circular fashion.

Tips

  • If the brick is not anchored, it will not move the objects on top of it.


See also

Cartesian Coordinate System