Oh, one more thing. There is one more little bit of code that will make the tacos land in FRONT of the little people instead of behind them. In the box that shows the three people, add this to "update" zdepth = 0.0
The actual script is: update = (e)=>{
zdepth = 0.0
}
Try this:
In the first box put: scene.my.text = scene.my.text + "Algodoo "
In the second box put: scene.my.text = scene.my.text + "is "
In the third box put: scene.my.text = scene.my.text + "fun "
In the forth box put: scene.my.text = scene.my.text + "and "
In the last box put: scene.my.text = scene.my.text + "awesome!"
Make sure you put a space after each word except the last one.
Excellent function! It will be very handy for scenes that need this type of function.
You are right about an array with fewer than 2 elements makes no sense!
Suggestion: Black text over a dark blue background is difficult to read. It's better to use contrasting colors when displaying text. (example: Use black text over light gray or white background).
It's because the angle property of a circle has a range of -pi to +pi (a total of 2pi) radians. So, when you continue to turn in one direction, the angle switches from negative to positive or vice-versa depending on which direction you are turning. Depending on how your scene works (I have not looked at it in detail) you may want to convert radians to degrees and use that value for controlling how the car turns.
I don't give a *^$#@ if this dragster fits within the confines of the contest rules or not. I think that it's cool, looks great, and is fast. s_noonan's scenes are typically very technical, very precise, but aesthetically very simple (aka, BLAH). But this scene is a total departure from his usual work, and I am totally impressed with it.
The only problem that I had at first is, the Drag tool strength was not enough to move the selector knob. I had to increase the strength, and then it was Okay.
Just curious, what does the "ng" stand for in your user name and in most of your scenes?
Okay, I looked over your scene and here is what I found:
1. You put the same script in 12 different geometries within the steering wheel assembly! That happened because all of the parts of the steering wheel are grouped together. So, when you select the steering wheel, you are selecting the 12 separate components of it. Then when you added the script scene.my.phaseAngle = angle to postStep, you added it to 12 geometries. Each one was in conflict with all the others.
2. The script scene.my.phaseAngle = angle will not work because of the point I made in my previous comment. You need to convert it to degrees, and then adjust the result so that it gives you the range of the spring length that you need to move the road left and right.
After deleting all 12 scripts in the steering wheel, I selected only the small circle in the middle (you select one object in a group by holding down the Alt key while clicking on the object that you want to select). Then I added the following script to postStep: scene.my.phaseangle = (180 + angle * (180) / math.pi) / 36 This will give you a range of 0 to 10 when you rotate the steering wheel completely around. I estimated that at full stretched length, the spring at the top of the road needs to be about 10 inches. On the other end of the spring length value, it cannot be allowed to be zero, and so at the spring Length property, I added the script: {scene.my.phaseAngle + 4.0}. That should give you about the correct range, but you might need to adjust it.
So, that's what I've done for you so far. I do not have the time nor the desire to rework your entire scene, and so I will leave the rest up to you. This will get you in the ball park, but you will still need to make some adjustments. Again, be careful when selecting objects in Algodoo because you might accidentally select more than one object which can get you into trouble if you did not realize it!
I made them by hand, using my mouse and the Algodoo polygon tool. I believe they would look a little better, and they would have taken less time to make, if I had one of those drawing boards and pen that draftsmen and artists use for computer input.
There are basically three sizes of clouds (like the three bears) and I simply copied and pasted them a number of times.