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 / Paint drawing to DBC landscape

Author
Message
NachoMan
21
Years of Service
User Offline
Joined: 14th Apr 2003
Location: United Kingdom
Posted: 27th Apr 2003 20:28
I have seen it in a lot of games made on DB, where people have made a picture of green and blue on paint and then imported it into DB. I know this is easy, just import the bitmap, but then how do you position a bitmap of a person ontop of the green bit for example?
Kentaree
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 27th Apr 2003 21:02
Well, if you paste the landscape on bitmap 0 (i.e the screen viewport) you can then paste another image on to it using paste image. All the parts of the picture that have an RGB value of (0,0,0), i.e Black, will be transparent so the background wont be covered.

Syntax: Paste image imageNo, xCoordinate, yCoordinate
where imageNo= the number of the image x/yCoordinate are the x/y coordinates on screen where the image is pasted.

Whatever I did I didn't do it!

Login to post a reply

Server time is: 2024-09-20 05:19:58
Your offset time is: 2024-09-20 05:19:58