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 / set sprite

Author
Message
flashing snall
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 3rd May 2008 18:11 Edited at: 3rd May 2008 20:03
Hey, i was using the set sprite command to achieve some interesting blood effects, when i came accross a troublesome error...

It seems that the set sprite command doesnt just set the backsave/transparency for the given sprite, but for all sprites?!?

Because, observe, and test i guess...




Is there a way to only make certain sprites change theri backsave value?


This is my WIP, not even ready for a WIP thread yet though.http://smallgroupproductions.com/
flashing snall
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 3rd May 2008 20:01 Edited at: 3rd May 2008 20:03
oh wow. i see it, but thats not the real code im using, it was jsut an example i wrote in the code snippet. ill go fix it. but i think it still wont work even if its fixed. il check.


EDIT: yea, still no go. it seems like the last set sprite command called is the one it uses for all of them...


This is my WIP, not even ready for a WIP thread yet though.http://smallgroupproductions.com/
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 4th May 2008 02:00 Edited at: 4th May 2008 02:02
using paste sprite instead of sprite (on the sprites you DON'T want backsave active on) will give what i think is your desired effect.

full code re-arranged:


you would still expect your original code to work, but atleast there's a work-around.

Virtual Nomad
AMD XP 1800+ (~1.6 Ghz) / 1.5 GB RAM
ATI Radeon 8700LE 128 MB / Windows XP
flashing snall
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 4th May 2008 17:35
hmm thats wierd. Thanks for the work around, but i wish the actual command would do its job


This is my WIP, not even ready for a WIP thread yet though.http://smallgroupproductions.com/

Login to post a reply

Server time is: 2024-09-27 14:30:51
Your offset time is: 2024-09-27 14:30:51