
-----------------------------------
DemiBlitz
Sun Nov 20, 2005 1:42 pm

Sprites in Turing 4.0.5!!!
-----------------------------------
Yes that is right, I have version 4.0.5 of turing which allows you to use the Sprite commands, anyway...
I need some help figuring these commands out, this is what I have so far... 

%No Comments on Test Program.
setscreen ("graphics:800;600")

var BackGround : int
var BGSprite : int

BackGround := Pic.FileNew ("x800600grass.bmp")

BGSprite := Sprite.New (BackGround)

Sprite.SetHeight (BGSprite, 1)
Sprite.SetPosition (BGSprite, 0, 0, true)

Sprite.Show (BGSprite)


Am I missing somthing?

-----------------------------------
ZeroPaladn
Mon Nov 21, 2005 10:02 am


-----------------------------------
have you tried checking the help file (just hit F9 and type in sprite). I personnaly dont understand this new "sprite" stuff myself. I'd rather jsut stick with the Pic module.

-----------------------------------
Tony
Mon Nov 21, 2005 10:38 am


-----------------------------------
I think HoltSoft broke Sprites in 4.0.x

There was a way to repair/write your own module. Something along the lines of [url=http://www.compsci.ca/v2/viewtopic.php?t=4007]DanSprite, though it appears to be missing since we changed servers. You could PM Dan about that.

-----------------------------------
DemiBlitz
Mon Nov 21, 2005 2:48 pm


-----------------------------------
Nevermind, I figured this out, Though it says the sprite commands are active, they are gay and don't work lol, back to 3.1.1 I go!

-----------------------------------
Dan
Mon Nov 21, 2005 5:18 pm


-----------------------------------
Sigh, DanSprites, i am glad it dispared.

Any how you do not need sprites in turing 4.x. insted you can uses view update and double buffering techneaks to do it in a much better way. This is alot more like how it whould be done in real life progaming.

I blive there are some tuturals posted about how to do it this way.

-----------------------------------
codemage
Tue Nov 22, 2005 8:26 am


-----------------------------------
You can use the BSprite module, which isn't too far off the old DanSprite.

http://www.compsci.ca/v2/viewtopic.php?t=8108&highlight=bsprite
