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.

Dark GDK / I have a problem with my sprite.

Author
Message
Skull breaker
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location:
Posted: 13th Nov 2008 05:34
Im trying to program a game were you can move a sprite on the screen with the arrow keys. For some reason after I made the sprite, it cuts off half the background picture. Before I spawned the sprite into the game, the full background was there. code is here:


If anyone can help that would be sweet, thanks!

This is a signiture
Carlos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 13th Nov 2008 14:38
I don't understand your problem...
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 14th Nov 2008 22:36 Edited at: 14th Nov 2008 22:37
Bitmaps and images are not interchangeable. A bitmap is a draw surface, one of the 33 (32 plus the active view), and is made using the dbCreateBitmap command. An image must be managed as an image. Just because you're using a bitmap image does not mean it is a 'bitmap.' To clear the memory it's using, use dbDeleteImage.


My site, for various stuff that I make.
insane
16
Years of Service
User Offline
Joined: 17th Jan 2008
Location: mental hospital
Posted: 29th Nov 2008 19:42
this code is not loading my image. it saids "error C3861: 'dbloadimage': identifier not found"


thanks ahead of time.

Login to post a reply

Server time is: 2024-09-30 11:37:44
Your offset time is: 2024-09-30 11:37:44