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: 591

Views: 709

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: code lock
Rating: 5.625
Filesize: 123.71 kB
Downloads: 577
Comments: 5
Ratings: 2
Date added: 2010/12/15 19:20:35
Made with: Phun
Rating: rated 5.6
download
Title: Bacteriophage gene!
Rating: 5
Filesize: 17.05 kB
Downloads: 394
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: 1169
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: 2530
Comments: 4
Ratings: 2
Date added: 2013/07/23 00:14:11
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Logic Gates
Rating: 5
Filesize: 110.55 kB
Downloads: 700
Comments: 4
Ratings: 1
Date added: 2023/06/24 22:09:14
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Find the code Mission 1
Rating: 5.375
Filesize: 341.54 kB
Downloads: 1452
Comments: 3
Ratings: 2
Date added: 2012/12/09 06:57:45
Made with: Phun
Rating: rated 5.4
download
Responses to this scene
show list
Title: CODE FIX FOR FruitMonger
Rating: 5.625
Filesize: 13.83 kB
Downloads: 561
Comments: 3
Ratings: 2
Date added: 2013/01/29 07:04:13
Made with: Algodoo v2.0.2 Edu
Rating: rated 5.6
download
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