I'm trying to make a basic platformer right now, as my first real graphical project in DarkBASIC Professional, and it simply won't work. Here's the code I currently have:
Rem Project: My First Platformer
Rem Created: 03-Mar-07 1:35:43 PM
Rem ***** Main Source File *****
position camera 0,500,-500
point camera 2000,2000,1000
` Load the game images, and make a basic player object, a temporary sphere
LOAD IMAGE "mediaground1.bmp",1
MAKE OBJECT SPHERE 3,70
COLOR OBJECT 3,RGB(255,0,0)
` Done loading the images so far
DO
` Execute the main game images, starting with the ground
PASTE IMAGE 1,200,200,120
` Now position the player above the ground
` Position the temporary player sphere now
POSITION OBJECT 3,200,200,100
LOOP
` Temporary movement code
DO
IF UPKEY()=1 THEN MOVE OBJECT UP 3,.5
IF DOWNKEY()=1 THEN MOVE OBJECT DOWN 3,.5
IF LEFTKEY()=1 THEN MOVE OBJECT LEFT 3,.5
IF RIGHTKEY()=1 THEN MOVE OBJECT RIGHT 3,.5
LOOP
How can I make it so the camera is sidelong view (like a standard platformer view, not 3D, 2D), and make the player (the sphere) move left and right?
All help is appreciated.
The basic media that I have is included as well.