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 / rpg help with tiles

Author
Message
REDIS
17
Years of Service
User Offline
Joined: 29th Aug 2007
Location:
Posted: 7th Mar 2008 22:17
okay i want to make an rpg and i got all the images and stuff but
i can't make the tiled backgrounds, with the data command.
but it dont load the image at all..please help

heres a sample

load image "ding",1

data 1,1,1,1
data 1,1,1,1
data 1,1,1,1
data 1,1,1,1
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 7th Mar 2008 22:24
whaa...
Surely, that code can't do anything?
Are you sure that you don't have to actually use the data in some way?

"I kören hörs de brummande busarna Björnligan och Gondolen"
REDIS
17
Years of Service
User Offline
Joined: 29th Aug 2007
Location:
Posted: 7th Mar 2008 22:59
no
Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 7th Mar 2008 23:07 Edited at: 8th Mar 2008 01:08
you forgot to put the extension in the back of the image file e.g.


Tip Of The Day!: a new rouge anti-virus has risen in 2008 called xpantivirus 2008 don't download this. Please help spread the word.
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 8th Mar 2008 00:24
Actually, the extension would be .jpg, not .jpeg.

REDIS:
Have you made an array in which to read the data values into so that you can use it as a basis for which tiles/images to display on screen? Also, are you sure that the file is located in the current directory?

To be candid, making an RPG seems like a lot to take on for you at this point. I would suggest you consider making a more basic game and building your skills before moving on to an RPG.

Best of luck,

LB

Login to post a reply

Server time is: 2024-11-25 07:29:43
Your offset time is: 2024-11-25 07:29:43