Computer Science Canada

[Turing]-Animation..movement

Author:  boocloud214 [ 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?

Author:  Zampano [ 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


: