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.

2D All the way! / Making a tile map

Author
Message
Dr Manette
20
Years of Service
User Offline
Joined: 17th Jan 2006
Location: BioFox Games hq
Posted: 30th Aug 2006 04:35 Edited at: 30th Aug 2006 04:36
I have the basic concept down of making a tile map. Most of this code:
is from a thread I found on the subject, but it was inconclusive. And yes, I have searched for this on the forum. What my code is suppose to do is first make my tile map and then the sprite (character) which will be able to be moved based on the tiles. But when I make the sprite the screen is blue. To fix that, I did backdrop off and cls 0 but those get rid of my tile map!

Could someone point me in the right direction. I heard there was a Stickied RPG toutorial around, but I haven't seen it. Any help would be appreciated.

(edit) Stratch that, I found it!

Bio Fox...four guys, one computer, games like nobody's business.
Jack LOL
19
Years of Service
User Offline
Joined: 4th Aug 2006
Location: Near the CPU Close to the graphic card
Posted: 30th Aug 2006 11:45
Basicly whats happening is that when u paste the images they stay but u dont keep pasting them so when u cls it clears the screen.
so what u need to do is to change them into sprites and put them in an array with types of num,posx,posy as i always do with those kind of things, and then u must keep showing them in the loop.

lol?! xD
Cave Man
19
Years of Service
User Offline
Joined: 22nd Aug 2006
Location: North Carolina, US
Posted: 30th Aug 2006 15:20
Like Jack said, your'e using cls, youv'e gotta refresh it every loop, here i made an example




hope i helped.

Dr Manette
20
Years of Service
User Offline
Joined: 17th Jan 2006
Location: BioFox Games hq
Posted: 4th Sep 2006 04:47
Okay, thanks everyone. I've got that fixed now.

Bio Fox...four guys, one computer, games like nobody's business.

Login to post a reply

Server time is: 2026-07-07 01:30:38
Your offset time is: 2026-07-07 01:30:38