If you want to make the TNT explode without the delay time that the fuse gives you, simply touch the TNT directly with the lit match and it will explode immediately. Just be warned that you will probably lose your hand and even your entire arm if you do that!
Kids, don't try this at home! Let your dad do this because he is an adult and he knows how to play with dangerous things.
I can teach you how to make your scene look more realistic by hiding the vomit behind Yellow so that you will only see it when it comes out of his mouth. If you are interested, just let me know here in the comments and I will give you step-by-step instructions. It's not real difficult at all, and I think you will agree that your scene will look more realistic. If you are not interested, that's Okay too. Just let me know and I won't give you any instructions.
Oh, one other question for you. Do you use a computer with a mouse and keyboard for making and editing your scenes? My instructions will be much easier to follow if you use a standard computer mouse and keyboard.
I would need to see exactly what you are trying to do, so could you upload your scene, and in the description explain what it is you want to do? You can title the temporary scene "For Xray" and when we are done with it, you or I can delete it if you no longer need it.
AGC48 -- Are you sure you don't mean "sine"? I checked all of the math functions in the forum here: Thyme Commands/Variables and I could not find a "Sgn" function. Take a look through that list and see for yourself. If you want to find the sine of a number use math.sin(x) or for cosine use math.cos(x).
AGC48 -- There's a discussion about this in the Algodoo Forum, and user Kilinich suggested the following scripts for doing the Sign function and the Absolute Value function:
By the way, the signum function will never return -0. Only one of the three results shown here is correct.
Oh, one more thing.... If you need a global function (that is, a function that any object in your scene can use) then "scene.my.... is the way to go. BUT if you need to use the function in ONE object (a box, a circle, etc) then use a local (custom) function that begins with an underscore character. For example:
_signum = (x)=>{x < 0 ? -1 : x > 0 ? + 1 : 0}
@ezpz(fib)5 -- s_noonan's polygon smoothing scene (link shown above) is a perfect example of what you described that you are trying to do. If there is anything in his script that you don't understand or need clarification, just ask him. He knows more about Thyme scripting than anyone else (and that includes me).
It's because Algodoo scripting was never completed. It has a few known bugs and some things that it should have but doesn't. For example you can directly READ an array value such as: _variable = _array(7) but you cannot directly WRITE to an array variable using the similar format such as: _array(7) = _variable. I use a custom function which gets around this problem and allows you to write to a single array element. Read the following Forum entry, and you will see how I am able to write to a single array element:
Did you ever need to connect an articulated scavenging pump to a cross-threaded hyperbolic swing-arm? Me neither. Great scene, by the way. Nicely done!
1: Dancing for The Lord
2: Dagger Forst Tools Limited
3: Dawood Family Takaful Limited
4: Don'T Forget The Lyrics
All kidding aside, I am very much interested in your scene and learning about how AI works. Your description states "Instructions in the scene" but there are really no instructions at all. There is a technical specification which names some of the parameters which can be adjusted, but no actual explanation as to WHAT each parameter does, and how it affects the "robot". Sure, I can tweak those parameters all day long, but without an understanding as to what they do, I have no idea what the heck I'm doing! So, would it be much trouble for you to write actual instructions, sorta like "AI For Dummies"?
He hasn't posted any scenes in over a year, and his last comment is dated December 2021. I don't know why he is no longer active here. He has posted a lot of interesting scenes, and I personally miss him. Hopefully he will return!
The only programming language that I've ever used with Algodoo is the built-in script language called "Thyme". It may be similar to Python or some other similar language but I don't believe that Algodoo "supports" any particular language. If s_noonan wants to add anything to this discussion, he may know something that I don't.
That's not a good way to control anything in an Algodoo scene! It's always more convenient to use arrow keys or A and D keys for forward and backward speed controls.
UnityDogGaming04 -- I think Algodoopr is confused because you provide no instructions how to use the scene. I was somewhat confused too, and I understand logic gates very well. For example, what keys are inputs, and what indicators are outputs. Don't assume everyone knows exactly how to use the scene simply because it may be obvious to you. A few instructions are always helpful in every scene that requires user interaction.