SetSpriteOffset3D(#sprite,x,y)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Schobaer
User
User
Posts: 16
Joined: Sat Mar 06, 2004 9:36 am
Location: Germany

SetSpriteOffset3D(#sprite,x,y)

Post 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
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 450
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Re: SetSpriteOffset3D(#sprite,x,y)

Post by Didelphodon »

+1
Go, tell it on the mountains.
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Re: SetSpriteOffset3D(#sprite,x,y)

Post by Hroudtwolf »

Nice idea.
+1
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: SetSpriteOffset3D(#sprite,x,y)

Post by Bananenfreak »

+1
Image
User avatar
Olliv
Enthusiast
Enthusiast
Posts: 542
Joined: Tue Sep 22, 2009 10:41 pm

Re: SetSpriteOffset3D(#sprite,x,y)

Post 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.
Post Reply