Turing Sprites
Author |
Message |
NEEDSHELP
![](http://compsci.ca/v3/uploads/user_avatars/16628702604a286edda821c.jpg)
|
Posted: 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! |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
DemonWasp
|
Posted: 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(). |
|
|
|
|
![](images/spacer.gif) |
|
|