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! / can you make sprites/bitmaps/images be drawn pixel by pixel or line by line?

Author
Message
New Creature Feature
22
Years of Service
User Offline
Joined: 27th May 2004
Location: Tennessee- USA
Posted: 19th Oct 2004 07:35
I got some a background picture of sand. I also have separate pictures of lines drawn in the sand. I want the individual lines to appear as if they are being drawn with a stick. (Like when you see a prison wall with four lines and a fifth line drawn through it to symbolize the number 5)

I made the background picture (sand) a bitmap. Then there are 5 pictures of lines numbered 1, 2, 3, 4, 5.

Can I make each of the first 4 pictures of lines appear from top to bottom and the fifth from left to right? I have DB and DB Pro but haven't seen a command that seems to allow you to do that.

I'm also having a bit of trouble figuring out the difference between bitmaps, sprites and images. Are they all interchangeable terms with interchangeable properties?

thanks

Therefore if any man be in Christ, he is a new creature: old things are passed away; behold, all things are become new. II Corinthians 5:17
dj chainz
21
Years of Service
User Offline
Joined: 25th Sep 2004
Location: England
Posted: 19th Oct 2004 17:56
You can try using memblocks to edit your images or do some bitmap editing - there is no option to wipe in the image line by line or pixel by pixel by default. I don't want to try and explain the complexities of memblocks (mainly because I'm no too good at using them), but for bitmaps, what you could do is:

set the image colorkey to something like pink
load your line images (which have pink in the transparent areas)
"start a loop here"
paste your sand texture on screen
paste your line images onto a different bitmap - i.e. set current bitmap 2 or something
make a pink box on top of your line images
-every loop create a smaller pink box, so more of the line is shown
get the image from the bitmap 2
set current bitmap 0 (the screen)
paste your pink box/ line images ontop of your sandy texture
sync
"loop"

Hope that's helpful - if you don't understand it, someone else will...

visit http://dbgame.blogspot.com on how to make a commercial-level game engine

Login to post a reply

Server time is: 2026-06-11 17:33:40
Your offset time is: 2026-06-11 17:33:40