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

Username:   Password: 
 RegisterRegister   
 [Turing]-Animation..movement
Index -> Programming, Visual Basic and Other Basics -> Other Basics
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
boocloud214




PostPosted: Mon Mar 24, 2008 9:53 pm   Post subject: [Turing]-Animation..movement

Im completely new to Turing and this.Language (i think it'sa language but w/e)

Anyway, im trying to get this thing to alternate between the 2 things i have made.

View.Set ("graphics")
%Head
drawfilloval (300,320,50,50,7)
%Body
Draw.Line (304,271,304,130,7)
%Left arm
Draw.Line (304,271,200,240,7)
Draw.Line (250,304,200,240,7)
%Right arm
Draw.Line (304,270,450,350,7)
%Left leg
Draw.Line (250,1,304,130,7)
%Right Leg
Draw.Line (360,1,304,130,7)

cls

%Head
drawfilloval (300,320,50,50,7)
%Body
Draw.Line (304,271,304,130,7)
%Left arm
Draw.Line (304,270,130,350,7)
%Right arm
Draw.Line (304,271,400,240,7)
Draw.Line (360,316,400,240,7)
%Left leg
Draw.Line (250,1,304,130,7)
%Right Leg
Draw.Line (360,1,304,130,7)


Problem is, i dont know how >.<
Someone help please?
Sponsor
Sponsor
Sponsor
sponsor
Zampano




PostPosted: Mon Mar 24, 2008 10:05 pm   Post subject: Re: [Turing]-Animation..movement

Sooo . . . This is Turing you want help for.
What you need to do is put all your Draw. commands in a loop and place delay(int)s at opportune moment so that the viewer sees the images you have created for a half second before the next is created, and so forth.
code:
loop
    /*draw1*/
    delay (500)
    cls
    /*draw2*/
    delay (500)
    cls
end loop
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Other Basics
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: