Browse Search Popular Register Upload Rules User list Login:
Search:
ALGOODO SCRIPTING GUIDE (ENG)

Image:
screenshot of the scene

Author: dacke93

Group: Default

Filesize: 384.84 kB

Date added: 2014-04-26

Rating: 4.5

Downloads: 489

Views: 420

Comments: 6

Ratings: 2

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

BASIC AND ADVANCED SCRIPTING AND WHAT IS A SIMULATIONFRAME
Last edited at 2014/04/26 23:19:52 by dacke93
Please log in to rate this scene
edit
Similar scenes
Title: Scripting guide
Rating: 5
Filesize: 100.9 kB
Downloads: 369
Comments: 2
Ratings: 1
Date added: 2024/05/10 10:59:47
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Low Friction Guide
Rating: 5.375
Filesize: 29.67 kB
Downloads: 487
Comments: 5
Ratings: 2
Date added: 2014/02/16 12:14:36
Made with: Algodoo v2.1.0
Rating: rated 5.4
download
Title: Help to Algoodo (ENG VERSION)
Rating: 5
Filesize: 1.5 MB
Downloads: 335
Comments: 6
Ratings: 1
Date added: 2022/10/20 20:25:37
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: TARDIS
Rating: 5
Filesize: 91.15 kB
Downloads: 377
Comments: 2
Ratings: 1
Date added: 2025/02/09 18:24:49
Made with: Algodoo v2.2.3
Rating: rated 5
download
Title: Rocket 3 stages (Cohete 3 fases)
Rating: 5
Filesize: 71.59 kB
Downloads: 839
Comments: 0
Ratings: 1
Date added: 2013/10/22 11:10:54
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Algoodo Rainbow !
Rating: 5
Filesize: 61.6 kB
Downloads: 279
Comments: 0
Ratings: 1
Date added: 2014/07/05 19:15:27
Made with: Algodoo v2.1.0
Rating: rated 5
download
1. Algodoo doesn't run at 30 FPS, it runs at your screen's framerate unless your computer can't handle it well. Normal screens are of 60 Hz --> 60 FPS, but there are 120 Hz screens and even 20 Hz screens.
2. What do you call to "advanced" scripting? Variables are part of the most basic scripting, instead you should add some "math." things (if you want to know more, write for example "math." in the console (without ""), and press the TAB key) and local variables such as _variables in objects, how to define a LOCAL variable, what's a read only variable and how you can read it (readable(owner)).x , and if you want, show people how to spawn objects (like copying an object and pasting it in the script menu)
mine does run at 30 fps, sorry. well this is for biginners, so what you might consider basic is probebly advanced for a biginner
can you explain local variables i would be enlighted too
dacker93 -- Why are you teaching scripting when you don't understand a very basic concept such as local variables? No offense, but maybe you should learn more about scripting and basic programming before trying to teach it.
well what do you mean by local variable? i dont know, but i probebly know how to make one, is it the scene.my.var types? they are tied to the scene and makes sense to call them local variables.
No. "scene.my" variables are classed as "global" variables. That means that they can be read or written from/to any geometry or the console. A "local" variable can normally be read from or written to within the geometry or the function where it is located. Those custom variables, which begin with an underscore character, that you often see in geometries, are in the local scope of the geometry where they were created. So, for example, the custom variable _myVariable that resides in "postStep" script, can be read or written from "update" script within the same geometry, but it cannot be read or written from any other geometry without special script, such as during an onCollide event.

Hope this helps.

Here is a scene that I created in order to explain scene.my variables: Scene.my variables Demo
Last edited at 2014/04/27 21:01:24 by Xray