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

Username:   Password: 
 RegisterRegister   
 [Tutorial] Sprites
Index -> Programming, Turing -> Turing Tutorials
Goto page Previous  1, 2, 3  Next
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Paul




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
P2BC1414




PostPosted: 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?
DKNiGHTX




PostPosted: Sun Jan 14, 2007 6:07 pm   Post subject: RE:[Tutorial] Sprites

Sprites are in Turing 4.1 again. Thanks for this.
rcbhs




PostPosted: 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
LaZ3R




PostPosted: Wed Dec 12, 2007 10:51 pm   Post subject: RE:[Tutorial] Sprites

You just revived a 3 year old thread... Dear GOD O_O
StealthArcher




PostPosted: Thu Dec 13, 2007 12:56 am   Post subject: RE:[Tutorial] Sprites

Actually, it's only technically 11 months old. But still...
rcbhs




PostPosted: 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.
Lawlly




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
rcbhs




PostPosted: 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) =/
Lawlly




PostPosted: 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.
Gackt




PostPosted: 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.


Copy of A Warriors Journey.zip
 Description:

Download
 Filename:  Copy of A Warriors Journey.zip
 Filesize:  294.01 KB
 Downloaded:  298 Time(s)

rcbhs




PostPosted: 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 Crying or Very sad

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.
FlamingKatana




PostPosted: 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.
daklezardo




PostPosted: Sat Feb 23, 2008 8:34 pm   Post subject: Re: [Tutorial] Sprites

works in turing 4.1.1 ask me for download
daklezardo




PostPosted: Sat Feb 23, 2008 8:46 pm   Post subject: Re: [Tutorial] Sprites

works well in turing 4.1.1


Turing 4.1.1.zip
 Description:

Download
 Filename:  Turing 4.1.1.zip
 Filesize:  8.93 MB
 Downloaded:  539 Time(s)

Display posts from previous:   
   Index -> Programming, Turing -> Turing Tutorials
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 3  [ 36 Posts ]
Goto page Previous  1, 2, 3  Next
Jump to:   


Style:  
Search: