Browse Search Popular Register Upload Rules User list Login:
Search:
What's Wrong With My Code?

Image:
screenshot of the scene

Author: FruitMonger

Group: Default

Filesize: 11.18 kB

Date added: 2012-03-22

Rating: 5

Downloads: 598

Views: 725

Comments: 3

Ratings: 1

Times favored: 0

Made with: Algodoo v2.0.2 Edu

Tags:

Scene tag

I'm trying to make the light gray circle grow or shrink with a scene.my variable, but I can't seem to get it to work. I don't see anything wrong with my code, and the scene.my variable goes up and down properly when I hold the Up or Down Arrow Keys.....

So can anybody help me out? It's probably something simple and obvious that I just didn't notice.
Please log in to rate this scene
edit
Similar scenes
Title: JB234uin
Rating: 5
Filesize: 212.09 kB
Downloads: 193
Comments: 0
Ratings: 1
Date added: 2025/08/26 01:12:22
Made with: Algodoo v2.2.4
Rating: rated 5
download
Title: Rotary Ball Sort Lite (less code)
Rating: 5
Filesize: 100.9 kB
Downloads: 787
Comments: 9
Ratings: 1
Date added: 2024/08/10 00:22:36
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Bacteriophage gene!
Rating: 5
Filesize: 17.05 kB
Downloads: 396
Comments: 1
Ratings: 1
Date added: 2019/02/11 17:10:27
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Human Code
Rating: 5
Filesize: 38.83 kB
Downloads: 1176
Comments: 0
Ratings: 1
Date added: 2020/03/28 22:02:57
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Morse Code Machine
Rating: 5.625
Filesize: 231.1 kB
Downloads: 2538
Comments: 4
Ratings: 2
Date added: 2013/07/23 00:14:11
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: I need a bit of help...
Rating: 6.1111
Filesize: 31.37 kB
Downloads: 1483
Comments: 6
Ratings: 3
Date added: 2024/04/20 09:29:21
Made with: Algodoo v2.1.0
Rating: rated 6.1
download
Responses to this scene:
Title Author Rating Downloads Comments Date added
CODE FIX FOR FruitMonger Xray 5.6 (2 votes) 566 3 2013/01/29 07:04:13
show grid
Don't have enough time to check this out completely. Got to go to work.

So far I see:

"density := density;" listed twice
"_spawn := _spawn" may cause infinite recursion
code should probably be in "controllerAcc :={...}" instead of "_spawn := {...}" in which case you will need to remove "controlleracc := controlleracc;"

P.S. Tried some more. Can't figure it out. Maybe needs some "scene.my" variables. I'm giving up.
Last edited at 2012/03/23 01:21:29 by s_noonan
why don't just use simple scene.my.variavble:huh:
The changes that I made gets rid of spawning more circles (unnessary), and works directly on the radius of the circle. I put lower and upper limits on the radius to prevent the circle from disappearing (radius = 0), and from getting too big. Check out my response scene and tell me what you think about it.
Last edited at 2013/01/29 07:07:59 by Xray