
-----------------------------------
Spence607
Wed Jan 14, 2009 10:26 am

Game Textures
-----------------------------------
Alright, I was wondering how can you display a picture in Turing, I've looked through the reference and it's way to confusing. I think I need to use the Sprite command but I have no clue how, what I want to do is display a picture in the background, that will be the floor texture. I'm going to make it the exact same size as the window. Then I will draw all my other elements on top, is that possible, if so how is it done?

-----------------------------------
DemonWasp
Wed Jan 14, 2009 12:30 pm

RE:Game Textures
-----------------------------------
You don't need Sprite for that. Sprite is for images that will move around on top of static images, and should not disturb the image beneath them.

You need the Pic package. You will load a picture using Pic.New or Pic.FileNew; these methods will give you back an integer that represents the picID.

When you want to draw the image, you use Pic.Draw ( picId ). When you're done and the program is ready to close, or when you no longer need the background image, you can use Pic.Free ( picId ) to release the picture.

-----------------------------------
Spence607
Wed Jan 14, 2009 3:12 pm

Re: RE:Game Textures
-----------------------------------
You don't need Sprite for that. Sprite is for images that will move around on top of static images, and should not disturb the image beneath them.

You need the Pic package. You will load a picture using Pic.New or Pic.FileNew; these methods will give you back an integer that represents the picID.

When you want to draw the image, you use Pic.Draw ( picId ). When you're done and the program is ready to close, or when you no longer need the background image, you can use Pic.Free ( picId ) to release the picture.

Awesome, thanks.
