Computer Science Canada

NEED HELP with Processes, procedures and animations executing smoothly ASAP ASAP

Author:  ilia [ Wed Jan 18, 2012 6:01 pm ]
Post subject:  NEED HELP with Processes, procedures and animations executing smoothly ASAP ASAP

What is it you are trying to achieve?
<Replace all the <> trying to have multiple animations playing smoothly <>>


What is the problem you are having?
<my animations re flickery and i dont know how to use procedues, (as you can see in the cloud)>


Describe what you have tried to solve this problem
<everything i could>


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
<Answer Here>

Turing:


<Add your code here>



4.1.1
<Answer Here>

Author:  Insectoid [ Wed Jan 18, 2012 6:03 pm ]
Post subject:  RE:NEED HELP with Processes, procedures and animations executing smoothly ASAP ASAP

Procedures are explained in detail in the Turing Walkthrough. So is screen flickering (there should be a tutorial about View.Update. That's the one you want).

Author:  Tony [ Wed Jan 18, 2012 6:06 pm ]
Post subject:  RE:NEED HELP with Processes, procedures and animations executing smoothly ASAP ASAP

to animate things smoothly you need to use View.Update. Use of processes will make View.Update not work correctly. Therefore, you need to remove your use of processes.

Author:  ilia [ Wed Jan 18, 2012 6:12 pm ]
Post subject:  RE:NEED HELP with Processes, procedures and animations executing smoothly ASAP ASAP

but I want to have multiple animations at the same time!

Author:  Insectoid [ Wed Jan 18, 2012 6:14 pm ]
Post subject:  RE:NEED HELP with Processes, procedures and animations executing smoothly ASAP ASAP

No, you want one animation of many parts.

Author:  ilia [ Wed Jan 18, 2012 6:15 pm ]
Post subject:  RE:NEED HELP with Processes, procedures and animations executing smoothly ASAP ASAP

so what should i do?

Author:  Insectoid [ Wed Jan 18, 2012 6:17 pm ]
Post subject:  RE:NEED HELP with Processes, procedures and animations executing smoothly ASAP ASAP

Search the Turing Help section for the literally hundreds of topics with your exact problem.

Author:  ilia [ Wed Jan 18, 2012 6:18 pm ]
Post subject:  RE:NEED HELP with Processes, procedures and animations executing smoothly ASAP ASAP

ok, thanks

Author:  ilia [ Wed Jan 18, 2012 6:19 pm ]
Post subject:  RE:NEED HELP with Processes, procedures and animations executing smoothly ASAP ASAP

also, please look at my attachment

Author:  Velocity [ Wed Jan 18, 2012 9:07 pm ]
Post subject:  RE:NEED HELP with Processes, procedures and animations executing smoothly ASAP ASAP

to remove flickering you type

View.UpdateArea (0,0,maxx,maxy) % whole screen
delay(5)
cls

only type this after u finish drawing all of ur pictures.
usually put at the bottom the loop with ur drawings inside

Author:  Beastinonyou [ Wed Jan 18, 2012 9:12 pm ]
Post subject:  Re: RE:NEED HELP with Processes, procedures and animations executing smoothly ASAP ASAP

Velocity @ Wed Jan 18, 2012 9:07 pm wrote:
to remove flickering you type

View.UpdateArea (0,0,maxx,maxy) % whole screen
delay(5)
cls

only type this after u finish drawing all of ur pictures.
usually put at the bottom the loop with ur drawings inside


People don't learn how to do things if you tell them what to enter...

Maybe, you should explain and elaborate on why you have to use those to remove the flickering.

plus, you forgot your

Turing:

setscreen ("offscreenonly")

Author:  Tony [ Wed Jan 18, 2012 9:16 pm ]
Post subject:  Re: RE:NEED HELP with Processes, procedures and animations executing smoothly ASAP ASAP

Velocity @ Wed Jan 18, 2012 9:07 pm wrote:

only type this after u finish drawing all of ur pictures.

Right. Except if there's a process involved. Then he wouldn't know how much of that process' picture had been drawn already. This is why the two ideas are incompatible*.

* synchronization being an exception. Though if you are going to block processes, then you might as well just use procedures in the first place. In most cases procedures are the appropriate and easier solution.


: