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.

Code Snippets / Change the z-depth of a sprite (DBP)

Author
Message
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 7th Oct 2005 17:13
Say you want to adjust the z-position of a sprite, just as you would for any 3-d object .... how do you do it? Like this:



Press the up and down arrow keys to change z-depth.

Why would you want to do this? Generally, you wouldn't - if you want to move your sprite in the z-direction, you'd probably be best using a 3-d plane. But there are times, as I have found, where 3-d planes aren't suitable. Transparancy and clipping issues being the reason for me. Or it may be you've written your entire game using sprites, and just want to zoom in/out without converting to planes.

Login to post a reply

Server time is: 2025-05-16 07:47:54
Your offset time is: 2025-05-16 07:47:54