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 / Help Displaying Sprite

Author
Message
hero_bash
16
Years of Service
User Offline
Joined: 3rd May 2008
Location:
Posted: 3rd May 2008 23:09
How do you display a sprite on the screen?

everytime I try it doesn\'t appear.


Stand tall and shake the heavens
Lover of games
19
Years of Service
User Offline
Joined: 17th Apr 2005
Location:
Posted: 4th May 2008 00:48
Try putting it in between Do and Loop. don't forget the Sync command

"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack
hero_bash
16
Years of Service
User Offline
Joined: 3rd May 2008
Location:
Posted: 4th May 2008 01:07
nope.. I get ab lank screen..

I don't get it. I copied the code from the Beginners DB book, I guess it should work..



Stand tall and shake the heavens
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 4th May 2008 01:32
I've lost count of the number of times this one has come up.

What's happening is that when you load a bitmap, that bitmap becomes the current one where all operations take place, including the displaying of sprites. The fix is to switch back to bitmap 0 (the display bitmap) after grabbing the image, but before the sprite is created. You do that with 'SET CURRENT BITMAP 0'

Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 18th May 2008 18:32
Or you could just use load image and not worrie about that. The only diffrence is use paste image to get the image in the screen

Login to post a reply

Server time is: 2024-11-25 23:33:33
Your offset time is: 2024-11-25 23:33:33