2DWorlds Forums
Tutorial: Basic Editor Usage - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Help (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=21)
+--- Thread: Tutorial: Basic Editor Usage (/showthread.php?tid=11)



Tutorial: Basic Editor Usage - Jacob__mybb_import1 - 09-29-2012

To make games on 2DWorlds, you use the Game Editor. There are two ways to access the editor:
  • Go to your profile, and find an empty game. Click "Build."
  • Click "Launch Editor" in the top right corner of your screen.

Once you're in the editor, you'll notice a row of buttons at the top of the screen, called the toolbar. Here's what it should look like:

[Image: Labeled_Editor_Screenshot.PNG]

  1. New game
  2. Open game
  3. Save game to your computer
  4. Copy selected objects
  5. Cut selected objects
  6. Paste the objects that you have copied
  7. Group/ungroup selection
  8. Arrow-select/move parts
  9. Hand - grab parts (only works when physics are running)
  10. Resize - change the size of boxes that you have already placed
  11. Rotate
  12. Build box
  13. Build circle
  14. Place hinge
  15. Place weld
  16. Place rope (click then drag)
  17. Place water
  18. Place ladder
  19. Place seat
  20. Create terrain
  21. Start/stop physics simulation
  22. Show/hide grid
  23. Enable/disable snapping parts to grid
  24. Draw in front of parts

Buttons 8-20 control the mouse mode; only one can be selected at a time.

To place boxes, circles, water, or ladders, click and drag your mouse.

To place a weld or hinge, click where two parts (and ONLY two parts) intersect.

To place a rope, click and drag the mouse from one part to another.

You can move the camera by clicking your right mouse button and dragging. If you want to zoom in or out, use the scroll wheel or press the +/- keys.

A: If you wish to test your game, click the Add Character button. Make sure physics are running (button 21). Click again to remove your character.

B: You can change some more properties of parts by using the advanced tools; click the pencil icon on the left to access them. Select the parts you want to change by click them, or select multiple ones by clicking the left mouse button and dragging. The table at the bottom lists all of the properties you can change. If you don't understand what a property means, go to the Object List on our wiki.
Some useful properties to know:
  • Fixed: If this is set to 'true', the part will not be affected by physics. It won't rotate and it won't move.
  • Collidable: If this is set to 'true', parts can hit and bounce against this part. If 'false', other parts will go though it and it will fall through other parts -- including the ground, unless it is Fixed (see above).
  • CharacterCollide: If this is set to 'true', players can hit and bounce against this part. Collidable must be set to true for this to work though. If it is set to 'false', players can go through this part, even if Collidable is set to 'true'.
  • MaxForce: If you change this value to something higher than 0, then impacts with enough force will 'shatter' this part into many smaller parts.

C: The Lua icon opens up the Scripting Console, which is a grey bar at the bottom of the editor. Type in a one-line Lua script and click "Run".

D: The box opens the Model Showcase, which contains several premade items that you can add to your game, such as lava, a spawner, a helicopter, a gun, or a chasing NPC.

As with any other programs, you should save often to ensure that you don't lose much work. To save to 2DWorlds.org, use the appropriate item in the file menu. However, it's a good idea to keep a copy on your local computer as well; to do this, use the save button. You can open saved games by using the open button and navigating to where you saved the file.

More relevant guides: Scripting, Welds, Textures