I tried your code, and yes, I agree that it's an interesting variation, and it's easy to implement. Even though there are 256 pegs that need to get the new code, it can be done all in one quick edit with the "select alike" feature. I may add more to the variation and make it "switch selectable". That way, a user can decide which variation to use.
How do you play this game? You should explain what keys or buttons control it.
Nice job on it, by the way....
Oh, and yes, there actually IS sound for Algodoo, but it requires a little extra in order to make it work. Click on the user s_noonan and look for his scenes that explain how to create sound in Algodoo.
Well, your scenes are certainly a lot more interesting than those childish marble camps and those Algosathlons (or whatever the heck they are called) which flood Algobox on a daily basis. Your concept of showing voltage as angular momentum is unusual and a little difficult for me to understand because I do have a good understanding of traditional electrical theory, which is quite different. But, I give you a thumbs-up for this unique idea!
Oh, now I understand. I thought Fun Masters had a regular keyboard, but he probably plays Algodoo on his mobile phone as you mentioned. I don't know how you can do that.
YeetBoi1 -- I hope you will understand this comment because I don't want this chat with you to go on and on until either of us dies from old age. So, listen up.... Yes, it is okay for you to put text or write words and stories in your scenes which are part of the story line for your little cartoon people. What is NOT allowed is for people to write text messages directed to other users. In other words, it is not okay to use scenes for communicating with other users.
This is the last I will say about this subject. I am done with it.
s_noonan -- Thanks for the link. I knew that you can draw pictures on a scope using its X vs Y function (I played around with an analog "Etch-A-Sketch" circuit back in the early 1970's) but I had no idea that people now actually dedicate so much time and effort into making complex images using modern software. Now I have the impetus to give my Algodoo oscilloscope an added function to see what I can do with it. If you feel so inclined, maybe you can make something awesome with it too.
The Linkage -- I have an older Tektronix analog scope, model 453, in fairly good condition that I would be happy to give to you at no cost if you can come here to pick it up.
UPDATE: OOPS, never mind. I know your approximate location based on your IP address, and you are definitely too far to come here! Even if I shipped it to you at no cost except for shipping cost, it would be too expensive. Sorry about that.
It had a stronger effect on me after I colored the inner spiral RED, the middle spiral GREEN, and the outer spiral BLUE. I don't know why, but after watching it spin for a few minutes it reminded me of the time I went to see Janis Joplin at the Fillmore in San Francisco circa 1968. Those were some crazy times!
XOR can be made with this script: (a !& b) && (a || b)
Spelled out in text it's this: (a NOT AND b) AND (a OR b)
onCollide and laserHit functions have to be handled differently because of the fact that they are intrinsic functions. Concerning onCollide, if memory serves me (and it often does not!), onCollide returns TRUE or FALSE. And so you might be able to simple test it something like this: onCollide ? {yes}:{no}
but not sure. Try it!
And concerning LaserHit, I made a scene to detect when a laser hits and when it does not hit: Laser Hit and Miss
The local variable _dist will have the actual distance value between the laser and the geometry that the laser beam hits. You can also use a global variable such as scene.my.distance.
The code is in the laser. onLaserHit is what detects when the laser beam hits an object. During that time, a timer is forced to a value greater than zero, and when the laser is no longer hitting the object, the timer gets reduced down to zero. The combination of onLaserHit and the timer is how this code works. If you can do it a different or more efficient way, please let me know!
Okay, interesting scene, but what can I do with it? I mean, what can it be used for? And why does it float around like a helium balloon? I think it would be helpful if you gave more details about it. Thanks!
Yes, very well done, and it's good to see that you still occasionally come here to Algobox to post some awesome scenes. So many of the "older" Algodoo users have left Algobox, never to be seen again. But a few of us, including you, s_noonan, myself, and a handful of others have stuck around to keep the sharing of technical scenes alive and well!
When sitting on the ground, the readout does not show zero, but some random numbers around 1.0 to 1.7. Then if I raise it up to 1.0 meter above the ground (by using the Algodoo grid) the readout shows 1.98m. Then if I raise it to 2.0m on the grid, the readout shows approximately 2.0m. The readout is very unstable, but there are ways to make a readout more stable. Also I suggest that you do not use the "follow" feature. If the user wants Algodoo position to follow this object or any other object, they can turn on "follow" themselves. Also, I suggest that you delete all of those thrusters because they are not necessary. This scene is a good idea, but it needs to have a few things fixed before it can be useful to anyone.
Quote: "this doesn't get annoying, does it?"
Reply: "It does get annoying if the answers to your questions can be found in the Algodoo FORUM, and if you did not bother to look for them before asking me for help."
Preliminary answer to your question: "I do not have the answer to your question on the top of my head, but I think that I could figure it out, or maybe find it in the forum. But I will hold off spending any time on it for now until you have a spent a reasonable amount of time doing some research. If you cannot find the answer to your question within a couple of days of looking for it, then let me know and I will give it a try."
We do this Algodoo stuff just for fun (well, at least I do) and no one should take it too seriously. When I give you or anyone else suggestions, it is totally up to you or the other people whether or not they elect to follow my suggestions. No one is under any kind of obligations to do anything here on Algodoo (except to obey the rules).