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.

Dark GDK / How Sprite postion to object

Author
Message
Taoie
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 30th Mar 2008 00:29 Edited at: 30th Mar 2008 08:04
How to set position the animation sprite
to the 3d object's position

cause of sprite have only x and y there 's no Z!

i use

dbMakeObjectPlane and dbTextureObject
but dbTextureObject is only texture with image.. no sprite..
so it dont have animaton


then how to position it to the same as 3d position in map.

in exsample = I create 5 players (3d object). and position it to world map. now there are players inthe camera screen..

when i trown bomb to plyer(x=10,y=15,z=200).. how to position sprites animation of "Bomb" (to x=10 y=15 z =200) in same position of target .. the Sprite can only set to X and Y ....
Jeff032
17
Years of Service
User Offline
Joined: 13th Aug 2007
Location:
Posted: 30th Mar 2008 20:05
I think you are looking for

dbObjectScreenX
dbObjectScreenY

or something like that

Taoie
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 30th Mar 2008 20:16
thx abot that new idea but .. i still try to set sprite position to Z line.
sprite can only position to screenX and screenY
but cannot position to Object'sX Y and Z..

now i change to use dbMakeObjectPlane and it work.
but i think sprite is more beautiful than use ObjectPlane texture.

ObjectPlane texture use bitmap to texture it.
it will better if it can use .Png to texture mapping on it.
ErDa
16
Years of Service
User Offline
Joined: 17th Feb 2008
Location:
Posted: 2nd Apr 2008 20:24
Basically, sprites are for 2d.

Login to post a reply

Server time is: 2024-09-29 17:35:06
Your offset time is: 2024-09-29 17:35:06