[Tutorial] Sprites
Author |
Message |
Paul
![](http://i12.photobucket.com/albums/a207/paulbian/DDRDuck.png)
|
Posted: Tue May 18, 2004 6:17 pm Post subject: (No subject) |
|
|
in 4.0.4 and 4.0.3 there'd be an error, in 4.0.5 there'd be no error but ur sprite would not show, sprites right now work for 3.11
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
P2BC1414
|
Posted: Tue Dec 21, 2004 10:28 am Post subject: (No subject) |
|
|
Is that sample supposed to work just like that? or do I have to change some things?
|
|
|
|
|
![](images/spacer.gif) |
DKNiGHTX
![](http://img168.imageshack.us/img168/6264/zoomshockdn5hc2.gif)
|
Posted: Sun Jan 14, 2007 6:07 pm Post subject: RE:[Tutorial] Sprites |
|
|
Sprites are in Turing 4.1 again. Thanks for this.
|
|
|
|
|
![](images/spacer.gif) |
rcbhs
|
Posted: Wed Dec 12, 2007 8:31 pm Post subject: Re: [Tutorial] Sprites |
|
|
I was asuming that code was to make the sprite move, yet whenever I press a button the sprite just disappears, any help here? (I have the latest version of turing off o holtsoft
|
|
|
|
|
![](images/spacer.gif) |
LaZ3R
|
Posted: Wed Dec 12, 2007 10:51 pm Post subject: RE:[Tutorial] Sprites |
|
|
You just revived a 3 year old thread... Dear GOD O_O
|
|
|
|
|
![](images/spacer.gif) |
StealthArcher
![](http://compsci.ca/v3/uploads/user_avatars/18949255664b176c4f1481b.jpg)
|
Posted: Thu Dec 13, 2007 12:56 am Post subject: RE:[Tutorial] Sprites |
|
|
Actually, it's only technically 11 months old. But still...
|
|
|
|
|
![](images/spacer.gif) |
rcbhs
|
Posted: Thu Dec 13, 2007 11:01 pm Post subject: Re: [Tutorial] Sprites |
|
|
lol yeah its old but I saw it, had a question so I asked. Anyways I got it to work but I did it differently.
|
|
|
|
|
![](images/spacer.gif) |
Lawlly
|
Posted: Fri Dec 14, 2007 6:53 pm Post subject: Re: [Tutorial] Sprites |
|
|
I've managed to make the picture appear, though it doesn't move. It just changes position.
RCBHS can you show me how you got it to work?
code: |
var pic1 : int := Pic.FileNew ("Robot_Base.jpg")
var sprite1 : int := Sprite.New (pic1)
var x, y : int := 100
var centered : boolean := false
var chars : array char of boolean
Sprite.SetHeight (sprite1, 1)
Sprite.SetPosition (sprite1, x, y, centered)
Sprite.Show (sprite1)
loop
Input.KeyDown (chars)
if chars (KEY_UP_ARROW) then
Sprite.Animate (sprite1, pic1, x, y + 100, centered)
elsif chars (KEY_DOWN_ARROW) then
Sprite.Animate (sprite1, pic1, x, y - 100, centered)
elsif chars (KEY_LEFT_ARROW) then
Sprite.Animate (sprite1, pic1, x - 100, y, centered)
elsif chars (KEY_RIGHT_ARROW) then
Sprite.Animate (sprite1, pic1, x + 100, y, centered)
end if
end loop
|
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
rcbhs
|
Posted: Wed Dec 19, 2007 9:17 am Post subject: Re: [Tutorial] Sprites |
|
|
Eh I did it wrong, I cannot get my sprite moving for Input.KeyDown. I can get it working with hasch but thats not very efficient. I also don't know how to get my character to animate properly (I want him to look like hes running) =/
|
|
|
|
|
![](images/spacer.gif) |
Lawlly
|
Posted: Wed Dec 19, 2007 7:12 pm Post subject: Re: [Tutorial] Sprites |
|
|
I got my sprites to move.
I also got my sprites to animate.
I also got my sprites to move while animating.
Ill post how to do it later, or perhaps make my own tutorial but right now i'm busy into my project so it might be awhile.
|
|
|
|
|
![](images/spacer.gif) |
Gackt
![](http://compsci.ca/v3/uploads/user_avatars/692715419476846d0b1db8.gif)
|
Posted: Thu Dec 20, 2007 10:11 am Post subject: Re: [Tutorial] Sprites |
|
|
I dont know if this is correct, But here is my sprite Set up thing. I kinda need alot of help on it. And i posted it in the Help forum to.
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
Copy of A Warriors Journey.zip |
Filesize: |
294.01 KB |
Downloaded: |
297 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
rcbhs
|
Posted: Thu Dec 20, 2007 2:02 pm Post subject: Re: [Tutorial] Sprites |
|
|
Ok so I got my sprites to animate and such (only know how to go from one picture to another an back (using a boolen variable and making it show a certain sprite when im pressing a cetrtain arrow key, then showing another when not pressing the key) my problem is that if I go diagonally (which i only wanna be able to do when I jump) it alternates between the two directional sprites and looks horrible
I'd like to be able to use about 6 different sprites for my run so it looks nice and fluent so if anybody can help me with that, I'd appreciate it. Also if anybody can teach me how to create a nice, fluent jump that'd be awesome.
|
|
|
|
|
![](images/spacer.gif) |
FlamingKatana
|
Posted: Mon Jan 28, 2008 1:22 pm Post subject: RE:[Tutorial] Sprites |
|
|
Um so how do i exactly make sprites move with key board?
It wont work <_<.. .
Oh yeah and I joined today lol
to learn how to use Turing.
|
|
|
|
|
![](images/spacer.gif) |
daklezardo
|
Posted: Sat Feb 23, 2008 8:34 pm Post subject: Re: [Tutorial] Sprites |
|
|
works in turing 4.1.1 ask me for download
|
|
|
|
|
![](images/spacer.gif) |
daklezardo
|
Posted: Sat Feb 23, 2008 8:46 pm Post subject: Re: [Tutorial] Sprites |
|
|
works well in turing 4.1.1
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
Turing 4.1.1.zip |
Filesize: |
8.93 MB |
Downloaded: |
539 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
|
|