Page 1 of 1

SetSpriteOffset3D(#sprite,x,y)

Posted: Sat Sep 01, 2012 7:43 am
by Schobaer
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

Re: SetSpriteOffset3D(#sprite,x,y)

Posted: Wed Jul 03, 2013 11:19 am
by Didelphodon
+1

Re: SetSpriteOffset3D(#sprite,x,y)

Posted: Wed Jul 03, 2013 11:42 am
by Hroudtwolf
Nice idea.
+1

Re: SetSpriteOffset3D(#sprite,x,y)

Posted: Fri Jul 05, 2013 9:57 am
by Bananenfreak
+1

Re: SetSpriteOffset3D(#sprite,x,y)

Posted: Sat Jul 13, 2013 11:41 pm
by Olliv
If a function named CreateSprite3D() in the world rendering would work like CreateLine3D() including actual object replacement too, the availibilty you describe could appear with other different new features.