Browse Search Popular Register Upload Rules User list Login:
Search:
Function tutorial

Image:
screenshot of the scene

Author: lololoer

Group: Default

Filesize: 58.94 kB

Date added: 2014-01-23

Rating: 5

Downloads: 446

Views: 313

Comments: 17

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Press animated arrows buttons to pass a page.
Please log in to rate this scene
edit
Similar scenes
Title: SINE FUNCTION MOTION - Tutorial
Rating: 5.625
Filesize: 331.68 kB
Downloads: 821
Comments: 3
Ratings: 2
Date added: 2013/01/29 06:06:23
Made with: Algodoo v2.0.2 Edu
Rating: rated 5.6
download
Title: Semi, auto, and burst tutorial
Rating: 6.9167
Filesize: 67.28 kB
Downloads: 2066
Comments: 5
Ratings: 6
Date added: 2014/07/01 04:30:46
Made with: Algodoo v2.1.0
Rating: rated 6.9
download
Title: 4 Cylinder Car Demo
Rating: 5
Filesize: 76.07 kB
Downloads: 820
Comments: 1
Ratings: 1
Date added: 2014/08/14 22:49:25
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: ToII Tutorial
Rating: 5
Filesize: 23.16 kB
Downloads: 1011
Comments: 2
Ratings: 1
Date added: 2020/09/07 01:54:00
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Sine, Cosine and Tangent visualized, in a different way
Rating: 5.625
Filesize: 9 kB
Downloads: 164
Comments: 0
Ratings: 2
Date added: 2023/11/03 10:53:11
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Sine, Cosine and Tangent visualized
Rating: 5.5
Filesize: 13.21 kB
Downloads: 178
Comments: 1
Ratings: 2
Date added: 2023/10/18 07:52:03
Made with: Algodoo v2.1.0
Rating: rated 5.5
download
Good tutorial! :tup:

There is one problem. Your script that sets zoom and pan runs even when sim is not running, and so it is impossible to change zoom or pan with manual controls. I suggest that when you make this type of scene that your pan and zoom script only execute when sim is running.

Thanks!
Xray thankyou.
About panning and zooming I did it on purpose :/
Yes, I know that you did it on purpose, and that is Okay. But, it should not continue controlling the scene when the sim is no longer running. That is my only suggestion.;)
Last edited at 2014/01/23 19:58:34 by Xray
In my opinion, programmers should not disable standard Algodoo functions or change user settings without giving the users a choice. I'm already a little pissed off because I'm using Windows 8. Don't add to the frustration.

O yeah, good scene, by the way.

P.S.
Regarding:
(a,b,c,d,f,g,ubnfbunjek)=>{a=(b/c)*(d-f)+(g/ubnfbunjek)}

I don't think the function can assign a value to the variable "a". I think the input variables are "read only".
Last edited at 2014/01/24 21:19:32 by s_noonan
I think you should try it then.
scene.my.test = (a,b,c)=>{c=a+b}

> scene.my.test(1,2,0)
45000 ms: - WARNING - Failed to evaluate: c = a + b, Cannot set read-only variable: "c"
error
You are typing numbers instead of a variable.
Try:
scene.my.test = (a,b,c)=>{c=a+b};
> scene.my.test(1,2,scene.my.variable)
scene.my.vari­able will be equal to a+b, namely, 1+2.
> scene.my.variable = 0
0
>scene.my.test(1,2,scene.my.variable)
78467 ms: - WARNING - Failed to evaluate: c = a + b, Cannot set read-only variable: "c"
error

Doesn't work on my PC. I assume you tried it on yours. I don't know what's going on.
Last edited at 2014/01/30 22:08:20 by s_noonan
I get an error also, the same as s_noonan.
> scene.my.test = (a,b,c)=>{c=a+b}
(a, b, c)=>{
c = a + b
}
> scene.my.variable = 0
0
> scene.my.test(1,2,scene.my.variable)
> scene.my.variable
3

Algodoo is not actually a good thyme / operation solver :|
Last edited at 2014/02/01 17:11:25 by lololoer
lololoer - Are you using the latest version of Algodoo? If you are, then I don't understand why you do not get an error message. :bonk:
I use Algodoo 2.1.0 b13.
I don't understand too why I don't get an error, maybe because my computer solves things that could not be avaiable to solve. :y :blush:
That's probably the difference. I'm not using b13. I'm using the latest v2.1.0 from http://www.algodoo.com/download/ which I think came after b13.
Let the pan and zoom be adjustable.I cant see a thing when I start the scene.
Thanks, Gona try this:)
I don't get it.
epicface129 - WHAT is it that you don't get?