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.

Author
Message
Southside Games
16
Years of Service
User Offline
Joined: 1st Jan 2010
Location: Don\'t tell me what to do!
Posted: 8th Jun 2012 04:08
Hello.

I was wondering how I can make an image map. what I mean is a user can add a bitmap to the file, dark basic will load it, and make a map depending on what color the pixels are. i.e white pixels are walls, green are power ups, ect.
zeroSlave
17
Years of Service
User Offline
Joined: 13th Jun 2009
Location: Springfield
Posted: 8th Jun 2012 05:00 Edited at: 8th Jun 2012 05:00
There are a couple ways of doing it. The easiest would be load and paste the image, then use POINT(x,y) to find the color value:


You could also use memblocks, but the above works pretty well.

Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.
Southside Games
16
Years of Service
User Offline
Joined: 1st Jan 2010
Location: Don\'t tell me what to do!
Posted: 9th Jun 2012 06:12 Edited at: 9th Jun 2012 06:26
I'm getting values from that. I'll work on it. Thanks man

hey man it's working great. thanks so much! ^^

Login to post a reply

Server time is: 2026-07-07 17:08:32
Your offset time is: 2026-07-07 17:08:32