Browse Search Popular Register Upload Rules User list Login:

screenshot of the scene

Author: DrBalk

Group: Educational

Filesize: 123.47 kB

Date added: 2018-12-30

Rating: 5.6

Downloads: 950

Views: 190

Comments: 4

Ratings: 2

Times favored: 0

Made with: Algodoo v2.1.0


Scene tag

The aim of this scene is to log the tools which are used by the user.
For this, own icons are made, a click on them activates the tool.
The scene is collaborative, as i need help in thyme-coding for
saving the usage of the tools in an external file.
problem: if playmode is on, click-activation by new tools is impossible. //update: a solution was found without playmode:*) //
Last edited at 2018/12/31 14:50:59 by DrBalk
Please log in to rate this scene
Similar scenes
Title: Angle measurement Winkel messen heller Hintergrund
Rating: 5
Filesize: 403.47 kB
Downloads: 157
Comments: 0
Ratings: 1
Date added: 2013/08/17 17:41:26
Made with: Algodoo v2.1.0
Rating: rated 5
Title: One way road: School Bus VS Bus
Rating: 5
Filesize: 32.21 kB
Downloads: 665
Comments: 0
Ratings: 1
Date added: 2014/01/17 12:15:33
Made with: Algodoo v2.0.1
Rating: rated 5
Title: Marbles10's Marble Race Tools
Rating: 5
Filesize: 0.65 MB
Downloads: 345
Comments: 1
Ratings: 1
Date added: 2017/04/14 23:27:43
Made with: Algodoo v2.1.0
Rating: rated 5
Title: School Escape Part 1
Rating: 5
Filesize: 63.41 kB
Downloads: 1205
Comments: 0
Ratings: 1
Date added: 2013/01/14 16:49:27
Made with: Algodoo v2.0.1
Rating: rated 5
Title: Marble Machine 37 (SCHOOL)
Rating: 5
Filesize: 45.16 kB
Downloads: 585
Comments: 3
Ratings: 1
Date added: 2017/09/05 17:16:16
Made with: Algodoo v2.1.0
Rating: rated 5
Title: Amazing Marble Race Season 3 Part 20
Rating: 5
Filesize: 98.98 kB
Downloads: 233
Comments: 2
Ratings: 1
Date added: 2015/08/08 12:07:05
Made with: Algodoo v2.1.0
Rating: rated 5
Responses to this scene
show list
Title: Log Used Tools
Rating: 6.1111
Filesize: 165.61 kB
Downloads: 158
Comments: 3
Ratings: 3
Date added: 2019/01/01 12:59:05
Made with: Algodoo v2.1.0
Rating: rated 6.1
hmm, what if, instead of cliccking on the buttons, one relies purely on hotkeys(or maybe the keys.isDown("mouse_left") function plus moving the buttons in another layer). that way one wouldnt have to worry about accidentially attaching something to the buttons. One would have to disable all default hotkeys first tho, however those are annoying most of the time anyways. Writing stuff to a file very likely requires external software however, since algodoo can not interact with file systems besides the integrated scene saving mechanics.
Some ideas:

Do everything in design mode by putting code in "update" events.
Turn off all tool hotkeys. For example, Tools.DragTool.hotkey = "";
Make a (20) item tool count array ( := [0,0,0, ...0];).
In (1) update event: Detect tool hotkey press ? {select the correct tool; increment tool count array item}:{};
Increment tool count array item like this: = + [0,1,0, ...0]; (if tool is second item)
In each tool's update event: Detect mouse down within the tool's border ? {select the correct tool; increment tool count array item}:{};

Before exiting Algodoo: System.WriteToFile("ToolCount.txt", "," +;

System.WriteToFile will only append (not overwrite) a file, so the newest tool count will always be the last entry.
Last edited at 2018/12/30 23:25:55 by s_noonan
thanks, s_Noonan and FRA32!
It can be done without activating playmode:
GUI.Skin.Borders.ToolIcon.width = [-40, -20, -40, -30]
the usual diasplay of tools disappears.
A slight drawback is the appearance of pan and the
magnifying-glass(zoom), but i can live with that.
This way i can click on the prepared objects and all
is well!!!:*)

To activate the GUI-command above,
even if i typed it into the console (F10) or by clicking
on an object with the script onclick,
i have to open the option-menue, then move the slider
of menue-scaling a bit.

Question: can one force Algodoo to activate
GUI-commands in a more elegant way, maybe also
by a thyme-command?
After leaving the scene, the settings remain, so
i think it has to do with the config-file.
maybe one can execute the config-file again while
algodoo is running?

update: FRA32 fund a better solution: = 1;
and = 0;

Last edited at 2018/12/31 15:02:41 by DrBalk
Last edited at 2019/01/02 23:12:41 by s_noonan