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
SetSpriteOffset3D(#sprite,x,y)
- Didelphodon
- PureBasic Expert
- Posts: 450
- Joined: Sat Dec 18, 2004 11:56 am
- Location: Vienna - Austria
- Contact:
- Hroudtwolf
- Addict
- Posts: 803
- Joined: Sat Feb 12, 2005 3:35 am
- Location: Germany(Hessen)
- Contact:
- Bananenfreak
- Enthusiast
- Posts: 519
- Joined: Mon Apr 15, 2013 12:22 pm
Re: SetSpriteOffset3D(#sprite,x,y)
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.