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 Discussion / pasting sprites - always to screen 0?

Author
Message
LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 5th Jun 2007 07:12 Edited at: 8th Feb 2018 13:37
Hello,

I am writing a 2D game in DBC and am drawing the original images from within the program. I then call a sprite using those images and consequently flip and mirror the sprite, and then paste the image and then grab the resulting image and store it.

The problem: you can see the sprite image on the screen when it is pasted. I can write all of the graphics to a different bitmap, but when it comes to pasting sprites, they always seem to paste to screen 0.

Is there a solution to this problem?

LB



So many games to code.....so little time.

Attachments

Login to view attachments
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 5th Jun 2007 10:50
Pasting the sprite and seeing the sprite itself are two different things. When you paste a sprite, it behaves like a rubber stamp and you can put it on any bitmap you want. But the sprite itself is always displayed unless hidden or off screen.



Enjoy your day.
LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 5th Jun 2007 15:24 Edited at: 8th Feb 2018 13:38
That worked Latch, thank you.

LB



So many games to code.....so little time.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-05-28 21:13:46
Your offset time is: 2025-05-28 21:13:46