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.

DarkBASIC Professional Discussion / Nothing is displayed. Screen is Black.

Author
Message
animated sprite
13
Years of Service
User Offline
Joined: 22nd Dec 2012
Location:
Posted: 22nd Dec 2012 20:08
HIDE MOUSE

CLS

LOAD BITMAP "player.bmp", 1

GET IMAGE 1,0,0,32,32

SPRITE 1,170,90,1

WAIT KEY
END
Hell_666
16
Years of Service
User Offline
Joined: 11th Jul 2009
Location: France
Posted: 23rd Dec 2012 13:43
Sync your screen after the sprite creation :



You should use load image, I don't understand the BMP commands interest.



Eternal suffering ...

I'm french
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 24th Dec 2012 00:01
DBPro double buffers, so you should probably sync twice like this...



I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]

Login to post a reply

Server time is: 2026-07-07 05:15:05
Your offset time is: 2026-07-07 05:15:05