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 / Bitmaps and Sprites

Author
Message
Twisted Demon
20
Years of Service
User Offline
Joined: 4th Apr 2004
Location:
Posted: 8th Apr 2004 21:56 Edited at: 8th Apr 2004 21:57
Im a newcomer here, and this is a really simple question, im trying to load a bitmap of a bat for a pong game, the bat is 5 x100 pixels, when i run the program nothing happens, i get a blank screen wiht a flickering cursor, what am i doing wrong?
Heres the code:



Im using DBPro by the way.
Any help is much appreciated.
Thanks!
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 8th Apr 2004 22:04
The screen in bitmap 0, when you use load bitmap it sets the active bitmap to the one loaded. In order to see anything you need to switch back to bitmap 0 either by
delete bitmap 1
or
set current bitmap 0

Unless you are loading a big image like a sprite sheet and using get image to break it up into smaller images there is no reason to use load bitmap then get image, just do.


you ain't the cops
Twisted Demon
20
Years of Service
User Offline
Joined: 4th Apr 2004
Location:
Posted: 8th Apr 2004 22:23
ok thanks, it works now

Login to post a reply

Server time is: 2024-09-22 04:40:49
Your offset time is: 2024-09-22 04:40:49