Sprites

Blitz3D Forums/Blitz3D Beginners Area/Sprites

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

It's easy to try it yourself...just create a graphic that is oblong rather than square and load it in using LoadSprite()

Place it on the screen to see the result. A frigging Square!!!

Code:

Graphics3D 800,600,16,2
SetBuffer BackBuffer()

sprite = LoadSprite ("rectangle.png")
camera = CreateCamera()

PositionEntity sprite,0,0,2
While Not KeyDown(1)
Cls
RenderWorld
VWait:Flip 0
Wend
EndGraphics
End