The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5327 - File: inc/functions.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions.php 5327 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



2DWorlds Forums
10/16/10 - Tools! - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: News (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=8)
+--- Thread: 10/16/10 - Tools! (/showthread.php?tid=1083)



10/16/10 - Tools! - Jacob__mybb_import1 - 10-16-2010

Tools are now working; see the Insert Object menu. Place them in the StarterInventory and they will be given to all new players.

When a player is added, the tools are shown in a row along the top of the screen. Use the number keys to select a tool.

Tools have 4 events. When making a game with scripted tools, you should always use a script inside the tool to connect the events so they will work when the tool is copied from the StarterInventory to the player's inventory.

The events are: selected, deselected, mousedown(button, position), mouseup(button)

You will also see Drag, Copy, Delete, and Rotate tools; these are building tools that don't require any scripting to use.

New players will have a fancy new default game, others can download it here: http://buildism.net/default.buildism
[Image: ippgtw.jpg]

Other features in this update:
  • The camera is centered over the player's head rather than the middle of their body
  • getChild(name) global member function. This is the same as using dot notation (game.World.Model.Part, etc.) except that when the child doesn't exist, it returns nil rather than causing an error. You should use this function when you're not sure if a certain child exists or not.
  • game.World:getPartAt(Vec2D(x, y)) - gets the part at the specified world location; very useful for tools
  • message() function for players (game.Players.PlayerName:message(text)). This makes a line of text appear at the bottom of their screen; use the function without any arguments to clear the message.
  • Fixed registration error (why didn't anyone tell me?)
  • Fixed an odd bug related to dragging parts