Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / help for dbpro

Author
Message
Rtheone
19
Years of Service
User Offline
Joined: 27th Nov 2004
Location: Um... Nowhere?
Posted: 5th Aug 2005 20:48
I am completely new to forums and dbpro. I am wondering how do you create tiles for a scrolling game. I searched the beginners guide and couldn't find anything. Help!

Jonathan Chuang
Louiz ofRohr
20
Years of Service
User Offline
Joined: 11th Nov 2004
Location:
Posted: 6th Aug 2005 03:39
You can use sprites..
Look:

The easier way is to create your tiles
in images..
Create the image files with the tiles
inside..
Then load the images, and paste them as
sprites by using the command:
"sprite [spriteNumber], [positionX], [positionY], [image Number]"

in example:
load image "Grass.bmp", 1
sprite 1, 100,100, 1

this is gonna load the image and paste it in x=100 and y=100 in the
screen...

Hope that helps..

The worst foe lies within the self...
Rtheone
19
Years of Service
User Offline
Joined: 27th Nov 2004
Location: Um... Nowhere?
Posted: 20th Aug 2005 19:48
I was actually wondering on like how to create a FFI like game. The game works like this:
If the player presses upkey() the screen will go up a little bit and if the player holds the upkey() it will go up loading more tiles.

Jonathan Chuang

Login to post a reply

Server time is: 2024-11-27 21:37:55
Your offset time is: 2024-11-27 21:37:55