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 / Load Image+Get Image+Post Image=Nothing

Author
Message
ADVA
16
Years of Service
User Offline
Joined: 8th Apr 2008
Location:
Posted: 8th Apr 2008 20:56
Hi,

Just starting with DBPro. Using Spritelib GPL for a simple 2D shooting game. The following code snipet




Shows nothing on the screen.

The bitmap is a tile map with lots of sprites, images. I just wnat to show only one of them in the screen for now. Checked the online manual and it seems coherent. Any clues?

Thanks!
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 9th Apr 2008 20:07
WindowsKiller is right. Do this instead:



TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 14th Apr 2008 08:09
Further to what Windowskiller said:

If you see it all happening (and don't want to), load the image into Bitmap 1 rather than 0 and when you've grabbed all the images you need, use:

Set Current Bitmap 0
Delete Bitmap 1


TDK_Man

Login to post a reply

Server time is: 2024-09-27 14:30:00
Your offset time is: 2024-09-27 14:30:00