Sidescroller

by Forum_account
Sidescroller
This library gives you the basic movement system of a platformer. You can make an action/platform game in minutes!
ID:389576
 
BYOND Version:493
Operating System:Windows XP Home
Web Browser:Firefox 10.0.2
Applies to:DM Language
Status: Open

Issue hasn't been assigned a status value.
i try to compile then run the demos but it just comes up with a list of errors on all of them. i dont know if im doing something wrong or not please help >.<

example when i try to run mario:


loading sidescroller.dme
mario-demo\demo.dm:4:error: SIDESCROLLER_DEBUG: undefined var
mario-demo\demo.dm:44:error: move_speed: undefined var
mario-demo\demo.dm:46:error: jumped: undefined var
mario-demo\demo.dm:41:error: key_down: undefined proc
mario-demo\demo.dm:51:error: move_speed: undefined var
mario-demo\demo.dm:48:error: key_up: undefined proc
mario-demo\demo.dm:57:error: base_state: undefined var
mario-demo\demo.dm:62:error: move_speed: undefined var
mario-demo\demo.dm:64:error: pwidth: undefined var
mario-demo\demo.dm:65:error: pheight: undefined var
mario-demo\demo.dm:72:error: on_ground: undefined var
mario-demo\demo.dm:73:error: vel_y: undefined var
mario-demo\demo.dm:71:error: gravity: undefined proc
mario-demo\demo.dm:76:error: vel_y: undefined var
mario-demo\demo.dm:75:error: jump: undefined proc
mario-demo\demo.dm:82:error: vel_y: undefined var
mario-demo\demo.dm:97:error: camera.py: undefined var
mario-demo\demo.dm:95:error: set_camera: undefined proc
mario-demo\demo.dm:99:error: movement: undefined proc
mario-demo\demo.dm:130:error: p.knockback: undefined proc
mario-demo\demo.dm:136:error: pwidth: undefined var
mario-demo\demo.dm:137:error: pheight: undefined var
mario-demo\demo.dm:144:error: scaffold: undefined var
mario-demo\demo.dm:146:error: vel_x: undefined var
mario-demo\demo.dm:147:error: RIGHT: undefined var
mario-demo\demo.dm:154:error: set_state: undefined proc
mario-demo\demo.dm:161:error: vel_x: undefined var
mario-demo\demo.dm:164:error: scaffold: undefined var
mario-demo\demo.dm:171:error: LEFT: undefined var
mario-demo\demo.dm:171:error: RIGHT: undefined var
mario-demo\demo.dm:172:error: turn_around: undefined proc
mario-demo\demo.dm:169:error: bump: undefined proc
mario-demo\demo.dm:179:error: at_edge: undefined proc
mario-demo\demo.dm:180:error: turn_around: undefined proc
mario-demo\demo.dm:183:error: inside: undefined proc
mario-demo\demo.dm:174:error: movement: undefined proc
mario-demo\tiles.dm:14:error: m.vel_y: undefined var
mario-demo\tiles.dm:86:error: ladder: undefined var
mario-demo\demo.dm:34:error: m.scaffold: undefined var
mario-demo\demo.dm:32:error: can_bump: undefined proc
mario-demo\demo.dm:78:error: bump: undefined proc

sidescroller.dmb - 41 errors, 0 warnings (double-click on an error to jump to it)

Do you have the Keyboard library? The sidescroller library requires it.
Yeah i downloaded it, im geussing i have to add it to the sidescroller files right? Lol feel preety newby if thats the case xd
The sidescroller library should include the keyboard library automatically. If you have the keyboard library and are still getting this error, open the sidescroller library and then open sidescroller.dme (the top file in the file list when you have the library open). The first few lines of the file should look like this:

// DM Environment file for pixel-movement.dme.
// All manual changes should be made outside the BEGIN_ and END_ blocks.
// New source code should be placed in .dm files: choose File/New --> Code File.

#define NO_KEY_REPEAT
#include <forum_account\keyboard>

// BEGIN_INTERNALS
// END_INTERNALS

The "#include " line includes the keyboard library. If this line is there, you shouldn't have to do anything else to make it work.
ah thank you yh i just needed to include that part, thanks works all fine now