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 / position sprite in 3D environment

Author
Message
nk008
15
Years of Service
User Offline
Joined: 24th Jul 2009
Location:
Posted: 24th Jul 2009 18:35
Hi, in my game i wish animated sprites appear in the certain x,y,z position.
But how to do this? There is command "paste sprite" with only x,y coordinates...
Dream And Death
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: The circus! Juggling job, kids and DBPro
Posted: 25th Jul 2009 00:39
Sprites are a 2D artefact, not a 3D one.

You need a plain textured with an animated image.

"You get what everyone gets, you get a lifetime!" - Death, The Sandman Library

First you Dream, then you ... - Neil Gaiman, 2001
Deego
16
Years of Service
User Offline
Joined: 21st May 2008
Location:
Posted: 25th Jul 2009 00:42
Use a plain. Size the plain proportional to the sprite (ex. image size 211x413, plain size 21.1x41.3 or similar), texture your plain with the image used for the sprite (making sure to set object transparency for the alpha channel), and then position the plain at XYZ.

That's how I'd do it. There's another thread in one of the DBPro forums where someone is trying to use sprites and 3D, check that out too. But I wouldn't mix sprites and 3D unless you are using the sprites to make a HUD.
nk008
15
Years of Service
User Offline
Joined: 24th Jul 2009
Location:
Posted: 25th Jul 2009 11:06
Thanks, but how to make animation on plane? I used "Create animated sprite", then I've textured it, but whole image is on it..
How to paste animated sprite?

Login to post a reply

Server time is: 2024-09-28 08:22:27
Your offset time is: 2024-09-28 08:22:27