
-----------------------------------
rose1997
Mon May 25, 2009 8:58 am

animation helllllp NEEDED!!!!
-----------------------------------
What is it you are trying to achieve?

I want to build a character that moves horizontally across the page. How can i make gif. file move in turing. 

What is the problem you are having?
 :( I DONT KNOW WHAT TO DO??????


Describe what you have tried to solve this problem



Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)








Please specify what version of Turing you are using


-----------------------------------
tjmoore1993
Mon May 25, 2009 1:13 pm

RE:animation helllllp NEEDED!!!!
-----------------------------------

    loop 
        View.Update 
        Input.KeyDown (Pushed) 
        if Pushed (KEY_RIGHT_ARROW) then 
            loop 
                Input.KeyDown (Pushed) 
                exit when Pushed (KEY_RIGHT_ARROW) not= true 
                %Background Update 
                %FRAME 1 
                View.Update 
                Input.KeyDown (Pushed) 
                exit when Pushed (KEY_RIGHT_ARROW) not= true 
                %Background Update 
                %FRAME 2 
                View.Update 
                exit 
            end loop 
        end if 
        if Pushed (KEY_LEFT_ARROW) then 
            loop 
                Input.KeyDown (Pushed) 
                exit when Pushed (KEY_LEFT_ARROW) not= true 
                %Background Update 
                %FRAME 1 
                View.Update 
                Input.KeyDown (Pushed) 
                exit when Pushed (KEY_LEFT_ARROW) not= true 
                %Background Update 
                %FRAME 2 
                View.Update 
                exit 
            end loop 
        end if 
    end loop 


-----------------------------------
Kharybdis
Tue May 26, 2009 7:43 am

RE:animation helllllp NEEDED!!!!
-----------------------------------
You can't use a .gif file in turing.
What you have to do is get still images of the gif in different stages of its motion (sprites), and then just follow tjmoore's code.

-----------------------------------
Dusk Eagle
Tue May 26, 2009 7:46 am

Re: animation helllllp NEEDED!!!!
-----------------------------------
You actually can use gifs in Turing, using Pic.FileNewFrames and Pic.DrawFrames, but I don't recommend it.

-----------------------------------
Kharybdis
Tue May 26, 2009 7:54 am

RE:animation helllllp NEEDED!!!!
-----------------------------------
Dusk Eagle, you really like correcting me, don't you ... ^^ and yet you're always right.

well played... 

and rose, better not use gif's at all. it takes away from the learning experience...

-----------------------------------
Dusk Eagle
Tue May 26, 2009 2:49 pm

Re: RE:animation helllllp NEEDED!!!!
-----------------------------------
Dusk Eagle, you really like correcting me, don't you ...
Am I? I'm not trying to pick on you or anything :wink:.

-----------------------------------
BigBear
Tue May 26, 2009 4:12 pm

RE:animation helllllp NEEDED!!!!
-----------------------------------
Use the turing documentation for  Pic.FileNewFrames and Pic.DrawFrames

the problem is it doesn't work well with many gif files 

http://compsci.ca/v3/viewtopic.php?t=4637&highlight=gif

-----------------------------------
rose1997
Tue May 26, 2009 4:42 pm

RE:animation helllllp NEEDED!!!!
-----------------------------------
hey guys. thankx for the help. it really helped me alot.
