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 / How to paste sprites.. the simplest solution, very easy.

Author
Message
Mark Garrett
Reviewed AGK on Steam
20
Years of Service
User Offline
Joined: 10th Jul 2005
Location: California, US
Posted: 3rd Oct 2013 18:04
In order to paste sprites...

1. place one sprite off-screen. Because you don't want to use it anyway-

sprite 10,-100,-200,10

2. set transparency to it as such-

set sprite 10, 0, 1

ta dah!

Now, you can make as many new sprites as you want and paste them multiple times, anywhere.

No sync needed. No looping needed.
problem solved.

Man is a figment of God's imagination.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 4th Oct 2013 00:05
Or you could use hide sprite, and not need to move it offscreen.

Mark Garrett
Reviewed AGK on Steam
20
Years of Service
User Offline
Joined: 10th Jul 2005
Location: California, US
Posted: 4th Oct 2013 06:47 Edited at: 4th Oct 2013 06:52
Or guess what? I found an even better method...

whatever sprite you want to paste on screen, first just use the 'set sprite command'..

SET SPRITE Sprite Number, Backsave, Transparency

So, say you want to paste sprite # 30, first turn off the back-save of the sprite as follows..

set sprite 30,0,1 .... after doing that, it will paste just fine.

Man is a figment of God's imagination.

Login to post a reply

Server time is: 2026-07-06 10:36:11
Your offset time is: 2026-07-06 10:36:11