Author |
Message |
ilia
|
Posted: 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>
Description: |
|
Download |
Filename: |
Problem.t |
Filesize: |
17.29 KB |
Downloaded: |
89 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Insectoid
|
Posted: 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).
|
|
|
|
|
|
Tony
|
Posted: 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.
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
ilia
|
Posted: 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!
|
|
|
|
|
|
Insectoid
|
Posted: 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.
|
|
|
|
|
|
ilia
|
Posted: 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?
|
|
|
|
|
|
Insectoid
|
Posted: 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.
|
|
|
|
|
|
ilia
|
Posted: Wed Jan 18, 2012 6:18 pm Post subject: RE:NEED HELP with Processes, procedures and animations executing smoothly ASAP ASAP |
|
|
ok, thanks
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
ilia
|
Posted: 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
|
|
|
|
|
|
Velocity
|
Posted: 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
|
|
|
|
|
|
Beastinonyou
|
Posted: 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
|
|
|
|
|
|
Tony
|
Posted: 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.
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
|