SpriteDepth

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
zxretrosoft
Enthusiast
Enthusiast
Posts: 171
Joined: Wed May 15, 2013 8:26 am
Location: Czech Republic, Prague
Contact:

SpriteDepth

Post by zxretrosoft »

Hello,
please Fred, could you add a command SetSpriteDepth for depth of sprites?
This is a very useful feature and I believe it would not be hard to do it. Or am i wrong?

Like in AGK2:
https://www.appgamekit.com/documentatio ... eDepth.htm
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: SpriteDepth

Post by J. Baker »

You could create a procedure to do all of your sprite drawing. All the information is obtainable. Such as the Y coordinates. Just create a list for your sprites and repeat scan until all are drawn in order. If I find time, I may create an example.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Post Reply