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 "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
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
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
I can't figure this out. - 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: I can't figure this out. (/showthread.php?tid=131)



I can't figure this out. - Leonartist - 12-02-2012

I am trying to make a side scrolling train game for 2DWorlds. It will include a train that pulls train cars linked together with ropes, and I might make it into an obby.

I tried to work on it, but I don't know how to do several things on the editor. First I need to know how to make a platform with rotatable wheels. I also need to know how to make the train move by its self. It would be great if some one could tell me how to add a horizontal tiled image to the terrain. Lastly I need some help with adding background audio.


RE: I can't figure this out. - Ghosty - 12-02-2012

You can't add a solely horizontal tiled image to the terrain, AFAIK, but you can add vertically and horizontally tiling images -- the Terrain.Image property.

As for making a platform with rotatable wheels that move on their own:

Pause the game and make the platform, then place two circles on it so that they make decent wheels. Then, use the Hinge tool on the center of the circles -- as close to the center as you can. Then, select the Pointer tool and click on the black hinge circles. In the Properties section, there should be two number properties, one related to motor force and one to motor speed. Turn them up a bit, hit play, and see if the platform starts rolling. If not, turn them up even more. Once you get it working at a good speed, you can drag it back and set up a block in front of it to stop it from moving until you want it to.

And background music is pretty easy. If you want perfectly looping audio, use .wav, but if it doesn't loop seamlessly, like an actual song, use MP3s, for better file size.

Set the Looping property to True and put a script inside the sound object. One line is all you need: script.Parent:play() and you're good.


RE: I can't figure this out. - Leonartist - 12-02-2012

Thanks for the help.