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 / AdvancedSprites Layers

Author
Message
spike 132000
17
Years of Service
User Offline
Joined: 7th Nov 2007
Location: Nottingham, UK
Posted: 15th Jul 2014 16:45 Edited at: 15th Jul 2014 16:56
Hello, I have the following code which draws a layer of sprites, then draws another layer on top of them. But whenever I blit the second lot of sprites, it doesn't display them properly. I get this which I'm not expecting.



If I remove the second DXS BEGIN RENDER SPRITE section I get this as expected:



Also, how do I tell AdvancedSprites that my tileset has an alpha channel?

Here is my code:



Does the AdvancedSprites developer still come here?

http://feedit.me - Live feed platform, useful for events and shows!
spike 132000
17
Years of Service
User Offline
Joined: 7th Nov 2007
Location: Nottingham, UK
Posted: 15th Jul 2014 16:46
Also, what is the point of DXS BEGIN SPRITE RENDER and DXS END SPRITE RENDER, these have to be 2 of the most confusing lines ever, why not just render as part of Sync?

http://feedit.me - Live feed platform, useful for events and shows!
Rudolpho
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 16th Jul 2014 02:39
I don't know anything about "advanced sprites" but are you sure that's how it's supposed to work?
If you can copy and paste the documentation (providing there is any) for the DXS DRAW SPRITE TILE function that may help.

Quote: "Also, what is the point of DXS BEGIN SPRITE RENDER and DXS END SPRITE RENDER, these have to be 2 of the most confusing lines ever, why not just render as part of Sync?"

Because it's a third party plugin, it cannot inject itself into the core sync function. Also, it is quite common to have begin / end functions; in this case the begin function probably sets up some required states and resources, maybe resets a list of the actual sprite renders to come, then you add items to that list with the DXS DRAW... calls and then the end function finalizes the list, presumably performs rendering and probably copies the result to a core DBP image, alternatively draws the resulting image directly to the output render target.


"Why do programmers get Halloween and Christmas mixed up?"

Login to post a reply

Server time is: 2025-05-14 10:32:37
Your offset time is: 2025-05-14 10:32:37