Browse Search Popular Register Upload Rules User list Login:
Search:
Ball counter, scripting SICK!!!!!!!

Image:
screenshot of the scene

Author: snowboarder1sam

Group: Default

Filesize: 314.4 kB

Date added: 2009-09-03

Rating: 7.3

Downloads: 1627

Views: 1757

Comments: 2

Ratings: 7

Times favored: 1

Made with: Phun

Tags:

Scene tag

my first attempt at scripting thanks:) :)
Please log in to rate this scene
edit
Similar scenes
Title: Ball counter v3
Rating: 5
Filesize: 121.11 kB
Downloads: 497
Comments: 0
Ratings: 1
Date added: 2009/09/19 15:14:58
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Mechanical Ternary Counter V1.1
Rating: 5
Filesize: 108.05 kB
Downloads: 413
Comments: 0
Ratings: 1
Date added: 2016/10/30 20:29:45
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: fire ball just sick
Rating: 5
Filesize: 12.28 kB
Downloads: 292
Comments: 0
Ratings: 1
Date added: 2012/11/24 16:23:29
Made with: Algodoo v2.0.1 Edu
Rating: rated 5
download
Title: Simple Scripting
Rating: 5
Filesize: 11.55 kB
Downloads: 218
Comments: 0
Ratings: 1
Date added: 2011/12/03 06:45:02
Made with: Phun
Rating: rated 5
download
Title: Red Ball Scripting Course
Rating: 5.625
Filesize: 55.09 kB
Downloads: 2800
Comments: 2
Ratings: 2
Date added: 2020/04/14 23:24:00
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: X-Ball Remake
Rating: 5
Filesize: 1.13 MB
Downloads: 619
Comments: 2
Ratings: 1
Date added: 2011/02/02 21:55:58
Made with: Phun
Rating: rated 5
download
How did you get the number to show in text form? I know you have to use quotation marks but when ever i make one it just shows the value even if I put " + {scene.my.name} + ", when I do that it shows the current value but it won't update when the value updates, it doesn't even update at all... the script text even just says the number "#". I'v tried everything to make a counter, I learned all i know about scripting just so someday i could make a counter... So I would appreciate it if someone would help me with my problem. Thank-you.
go to http://www.algodoo.com/algobox/details.php?id=48915 and comment my explanation if it is not helpful

press f11 type something like scene.my.count=0 (after scene.my. it doesnt matter what you type it is just a name but make sure that you can remember it)
then you have a value of 0 then choose a box in the script menu for text type {``´´ +scene.my.count} then it will update automatic then chose something like a circle in the oncollide type (e)=>{ scene.my.count=scene.my.count +1 } then every time the ball/circle hits anything it will increase the value/number with 1

also use the link if you have other questions :tup: