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 / Sprite copy Help!

Author
Message
Gilden
20
Years of Service
User Offline
Joined: 10th Aug 2004
Location:
Posted: 7th Apr 2005 05:20
This is what I am trying to do in darkbasic pro. I hit the mouse button while it is over a picture sprite. It copies that sprite and it appears somewhere else i designate on the screen, but the sprite is also still in its original spot.

I already made the mouse and environment. All I need is a command that works to acomplish this task.

Thankyou,

Gilden
wmf
19
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 7th Apr 2005 05:33
i'm almost sure this is what you need. set backsave to 1 and transparency to 1 or 0
Quote: "
SET SPRITE
This command will set whether the specified sprite restores its background and whether background
transparency is ignored. If the backsave state is set to zero, the sprite will not restore its background and
leave a trail as it moves. If the transparency state is set to zero, the sprite will not treat black as a
transparent color. A transparent color in the sprite image does not write to the screen. If this feature is
disabled, the sprite would appear as though drawn inside a black rectangle where transparency had
previously been used. Both states are set to one as these are the most common settings. If you set the
backsave state to zero, it is your responsibility to clear or paste the background each time the sprite is
moved or animated. The sprite number should be specified using an integer value. The backsave and
transparency states should be specified as either zero or one.

SYNTAX
SET SPRITE Sprite Number, Backsave, Transparency
"
Gilden
20
Years of Service
User Offline
Joined: 10th Aug 2004
Location:
Posted: 7th Apr 2005 08:53
Thanks I will give it a try. It sounds like it will work.


Gilden

Login to post a reply

Server time is: 2024-09-23 17:30:12
Your offset time is: 2024-09-23 17:30:12