Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Game Textures
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh pageAdd this topic to your bookmarks (CTRL-D) View next topic
Author Message
Spence607




PostPosted: Wed Jan 14, 2009 10:26 am   Post subject: 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?
 
Sponsor
Sponsor
Sponsor
sponsor
DemonWasp




PostPosted: Wed Jan 14, 2009 12:30 pm   Post subject: 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




PostPosted: Wed Jan 14, 2009 3:12 pm   Post subject: Re: RE:Game Textures

DemonWasp @ Wed Jan 14, 2009 12:30 pm wrote:
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.
 
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh pageAdd this topic to your bookmarks (CTRL-D) View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: