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 / Get Image and sprites

Author
Message
Antonwebb
12
Years of Service
User Offline
Joined: 2nd Aug 2013
Location:
Posted: 2nd Aug 2013 07:42
Hi. I am new to the forums. I tried a search for this problem but didn't come up with an answer. I am writing a program that uses sprites. I then want to capture the screen before moving the sprites and then capturing the next frame. I cant seem to do this, all I get is a blank image. Here is the code. Help!

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 2nd Aug 2013 18:48
(I'm not even going to attempt to read that code as it's poorly spaced and is just one large black of blegh!)

Instead of using the Sprite command by itself, hide the sprite on creation and then use Paste Sprite instead. You'll then be able to use get image to include the sprites.

Another way (depending on how your doing it) would be to turn the backdrop off, and place a semi transparent image over the entire screen. Then paste your sprites. (No need for get image here, so much faster running)
As the backdrop is off, it won't clear the screen leaving the previous frames sprites still visible. Change the alpha value of the full screen sprite to adjust how long the sprites stay on screen form.

3D Bang Bang 2, check it out!

My website! [href]http:\\www.TeamDefiant.co.uk[/href]

Login to post a reply

Server time is: 2026-07-07 02:39:34
Your offset time is: 2026-07-07 02:39:34