Sprite Control Help

Blitz3D Forums/Blitz3D Beginners Area/Sprite Control Help

Ked(Posted 2007) [#1]
How would you load a sprite and make it so that it has 2D co-ords like the quad sprites but not loading them as quad sprites?


jfk EO-11110(Posted 2007) [#2]
Hu? Quad sprites? What's that. Thought something is a quad OR a sprite, but not both. However, I think you mean a sprite that can be used like an image, with 2D screen coords?

A very simple example to get the formula:
http://www.blitzbasic.com/codearcs/codearcs.php?code=321

A useful library of many 2d in 3d functions:
http://www.blitzbasic.com/codearcs/codearcs.php?code=456

There are much more similar solutions, search for "2D" in "misc 3D" sources in the code archives.


Ked(Posted 2007) [#3]

A useful library of many 2d in 3d functions:
www.blitzbasic.com/codearcs/codearcs.php?code=456



That's what I'm using. Sprite Control. On your first suggestion, do you know how to make it so that it is not attached to the mouse? I want to be able to press the arrow keys or WSAD and get it to move at 2D coords.


Hu? Quad sprites? What's that. Thought something is a quad OR a sprite, but not both. However, I think you mean a sprite that can be used like an image, with 2D screen coords?


That's what Sprite Control calls them.


Ked(Posted 2007) [#4]
Nevermind about the example! I got it. LOL.