Applying an image to a sprite.

Blitz3D Forums/Blitz3D Beginners Area/Applying an image to a sprite.

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.

"And how would you find that exactly btw?"

I'm not sure what he meant by orientation, but for place you'd use the VertexU and VertexV commands on the vertices of the polygon collided against to determine the UV coordinates of that polygon. Then DrawImage to the pixel coordinates corresdponding to those UV coordinates.

That's all a real pain however, and probably wouldn't work well due to seams in the texture mapping. But who knows; that's certainly the most accurate way to do things. Maybe Terabit (aka Mr. Tattoo) has some advice here.