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

Username:   Password: 
 RegisterRegister   
 Turing Sprites
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
NEEDSHELP




PostPosted: Mon Jun 01, 2009 8:24 am   Post subject: Turing Sprites

okie, i need help in turing URGENTLY!

i researched everywhere about sprites in turing including the information found on this forum. BUt, i still can't get mine to work.

here's what I've done so far....

can someone tell me why it won't work??

var pic1 : int := Pic.FileNew ("fancutedragon.gif")
var sprite : int := Sprite.New (pic1)
var x, y :int := 100
var centered :boolean := true

Sprite.SetHeight (sprite, 2)
Sprite.SetPosition (sprite, 0, 100, centered)
Sprite.Show (sprite)

Sprite.Free (sprite)

thanks!
Sponsor
Sponsor
Sponsor
sponsor
DemonWasp




PostPosted: Mon Jun 01, 2009 10:01 am   Post subject: RE:Turing Sprites

Calling Sprite.Free will cause your sprite to be deleted and its image removed from the screen. Try either removing the Sprite.Free call (it should occur after your program is finished) or putting a delay ( 1000 ) between Sprite.Show() and Sprite.Free().
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: