SetSpriteOffset3D(#sprite,x,y)
Posted: Sat Sep 01, 2012 7:43 am
Hallo,
my wish for PB 5 is SetSpriteOffset3D(#sprite,x,y). This Command should set the "Hotspot" i.e. relative to the middle of a sprite (like a spaceship). Then I can use RotateSprite3D() to rotate the spaceship arround and when I now draw the sprite it looks correctly to the enimies. If I don't change the offset, the DrawSprite3D() command always draw the sprite from the upper left corner.
In Darkbasic is the command "OFFSET SPRITE spritenumber, XOffset, YOffset"
Greetings to all
Schobaer
my wish for PB 5 is SetSpriteOffset3D(#sprite,x,y). This Command should set the "Hotspot" i.e. relative to the middle of a sprite (like a spaceship). Then I can use RotateSprite3D() to rotate the spaceship arround and when I now draw the sprite it looks correctly to the enimies. If I don't change the offset, the DrawSprite3D() command always draw the sprite from the upper left corner.
In Darkbasic is the command "OFFSET SPRITE spritenumber, XOffset, YOffset"
Greetings to all
Schobaer