Browse Search Popular Register Upload Rules User list Login:
Search:
Seamless if:
scene.camera.zoom > 2999 ? {
  scene.camera.zoom = 1.5
} : {
  scene.camera.zoom = scene.camera.zoom + (scene.camera.zoom / 100)
};
refPos := [0, 256];
dPos := [-21.072609, 46.7085];
m := (1 - 1 / 2 ^ (math.log(100 * Scene.Camera.zoom / 150.0) / math.log(2)));
Scene.Camera.pan = refPos + dPos * m
Last edited at 2024/03/28 10:24:05 by s_noonan
Q: How?
A: The code to make the ground pattern is in the stone.
The scene high to low zoom transition is seamless if the code above replaces the code in the postStep event of the largest image.
Q: Would you please explain what this math does?
A: The math matches the camera position function to the image placement function.

The change in image position follows a pattern 0 + 1/2 + 1/4 + 1/8 .... I could see that the limit was 1 and that the nth term was 1 - 1/2^n. I also noticed that 2^n equaled 100 times the zoom displayed in the scene. Solving for n = ln(100*zoomDisplay)/ln(2). Comparing zoomDisplay to Scene.Camera.zoom yields zoomDisplay = Scene.Camera.zoom/150. Back substituting yields the original equation.
Thanks guys.
FRA32,

I initially made the springs equal wavelengths, but I couldn't get the bright and dark effect I was looking for. As far as "exact same frequency", that's true for a single mode stabilized laser. That may not be true for a dual mode laser with a polarizing beam splitter.

Xray,

Interesting site. Reminds me of the "capacitor barn" used for the first radio transmission across the Atlantic (I'm going from memory, so might not be true).
Very nice. It looks like we came full circle on this.
Thanks for the suggestion. I make no promises.
I don't think you can use script to add a hinge to an existing object. You need to create the object(s) that you are connecting the hinge to.
That's because you were getting stoned.
Score 300. Nice work.:tup:
Yes, I did not code for that. I assumed that the user knows how to play chess.
right click on background, select Layers > Layer 1
Nice work. I added a shuffle function and added it as a response. Oh, and I may have changed some of the code slightly. I will remove the response scene upon request.:tup:
(4) Earth, (4) Saturn, (0) Uranus, (0) Mars
Last edited at 2023/11/18 19:08:56 by s_noonan
Hey, I just got back from Algoland. It was a pretty exciting trip.

Suggestion: Add some feature to my response scene and post the scene here.

Note: To see scene.my.clickTile code, paste 'text = "" + scene.my.clickTile' in a box script menu entry box.
Thanks.
1. I will look into this deeper. FYI, score := math.toInt(100.0 * sumOK / (16.0 + scene.my.clickCount - sumOK)), where sumOK is the sum of images (not wood) showing.
2. Fixed.
The debug info is what I expect since it follows the function I listed above. The score increases when you get a pair right, decreases when you get a pair wrong, and finally shows the percentage of right guesses divided by the total number of clicks. I'm willing to change the function if you can think of a function that makes more sense. You also have the option of changing the function yourself and re-posting the scene. You could also add a time box so people could brag about the fastest solution.
Yes.
Q: Please define m, g, and k in the Lspring formula.
A: m = mass, g = gravitational constant, k = spring constant, Lspring = spring target (free) length.

Q: Increasing the Simulation Speed to about 1.75 or 2.0 makes the scenes a bit more interesting.
A: We might be able to increase the frequency by reducing the mass and adjusting the spring length accordingly.

Q: A string ("rope" in Algodoo), makes no difference in the behavior of the spring/weight oscillator.
A: I agree. IRL a string is easier to use. In Algodoo it's easier to just change the spring length.

Q: WHY does the spring/weight combo behave in the manner described?
A: If you search on "elastic pendulum" you will find a number of sources that describe the math behind the general behavior. Info on "resonant elastic pendulum" is harder to find. I looked thru many sources looking for a simple equation like the one in my scene but couldn't find it so I ended up deriving it myself.
What propels the train?
4.52 meters.
Good catch. Thanks. Fixed.
Well done. Nice game. I didn't see this game anywhere else. Did you invent this game?
Got it. Thanks.
Thanks.
Thanks.
Q: The buttons on the GUI control panel are a bit sluggish.
A: Yes, that's because Algodoo is detecting button clicks not the OS. If the scene is running at 100% simulation time, then the mouse is checked 5 times a second. Since a button click requires a nousedown and mouseup event, the click has to be longer than 0.4 seconds. The mouse check rate can be increased by changing "_c > 11 ? {" to a lower value in the update event for each button. "_c > 11 ? {" was chosen as a compromise between button responsiveness and scene lag.
Last edited at 2023/12/09 06:27:53 by s_noonan
Where are the yes, no, and danger colors used? Maybe add a "default" button to the scene for users that don't know where to set it in options.
Thanks.
previous | 1 … 108 109 110 111 112 … 120 | next