Brickwall -- Go ahead and make whatever changes you want to make. You have my permission to do whatever you want to it and then uploaded your own version of this scene. If you do make changes, I hope they are really crazy!
Why did it do WHAT? Explode?
If that's what you are asking, it exploded because of how you assembled those objects. Objects that have the same collision layer settings do not like to be held together without any glue. They will forcefully push themselves apart when the scene gets started. Those of us who have been using Algodoo for many years are very familiar with this behavior. If you want them to stay stuck to each other, then do it with "glue". Use "glue to background" or "glue together".
Stick around and you will learn some other interesting things about Algodoo!
T_Reißig -- I forgot to mention, if you want to select just the spring body and not the end points, hold down the Alt key then left click the spring body. The Alt key also works with items that were glued together but you want to only select one of those items.
Shroomagonal -- I've never made any crashable or breakable objects but I have seen others do that. In many cases I believe they just cut up an object into a lot of smaller pieces using the knife tool. Not sure how they keep the cut pieces stuck together until someone smashes them with a hammer. Maybe just download a few of those "crashable car" scenes and look and see how they did it. There are hundreds or maybe even thousands of "crashable" or "breakable" scenes in the Algobox archive.
Here's a couple of ideas to embellish the scene if you so desire to do them:
1. Include a button to enable/disable "drawBorder" in your _drawPoly subroutine.
2. Include a button to enable/disable "Auto Rotate". In Auto mode, the cube will rotate randomly on all axes (sort of like a screen saver mode).
3. Make a pair of dice that can be rolled by the user by pressing a button. The rotating and rolling dice will look really cool, especially if you use a Craps table as the backdrop for the dice to roll on! If anyone can make that happen, YOU can!
Yup, it takes a long time to create a really awesome game with Algodoo. I have spent many weeks making some of my own scenes like pac-man and a few others. Take a look at some of the games that I have posted on Algobox by clicking on my username. You'll see how complex some of them are!
That example script that you show in the scene description is not correct and will not work: _array = ["A","B","C"] and _arrayslot = 0
That's because the boolean "and" cannot be used for creating custom variables. The correct way is: _array = ["A","B","C"]; _arrayslot = 0
In this corrected script, a semicolon separates the two commands. I also took a look at that link you provided for a Algodoo Wiki that someone created. Many of the tutorials and examples that I read in it are either vague or just plain incorrect. So, I would not rely on the information in it.
In order for onCollide to work, the collision layer of the missile or bullet must have the same collision layer of the object that it hits. For example, if an enemy object has collision layer "A" enabled, and no others, then the projectile hitting it must also have the same collision layer enabled. An object can have multiple layers enabled in order to interact with different other objects.
It should save a new scene separate from your old scene if you click on "Upload". Do not click on "Edit".
More: I hope you are using your regular Internet browser to upload and download scenes instead of the Algodoo built-in browser. The Algodoo browser is very limited functionally, and I do not recommend using it for anything!
Nice game, but it has issues:
1. When the message "Try Again!" shows up, the sim stops running, and it leaves the user wondering, "OK, now what do I do?". It would be nice if you could place a "Reset" or "Restart" button in the game which will either start the game over from the beginning, or will start the sim again, while accumulating points.
2. The "Try again!" message box stays in view and bounces around if I simply restart the sim.
3. How does the player "Win" the game? Do they win when they accumulate a certain number of hp's?
I just noticed another issue: After downloading a fresh game from Algobox, the game begins with red = 20hp and green = 5hp. Is that right?
1. There are a number of ways you can restart an Algodoo scene depending on how complex it is. For simple games you can just set all variables to their initial values and move all moveable objects to a starting position. You can do that with a button if you want, or you can simply tell the player to click the "back step arrow" at the bottom of the scene just to the left of the Algodoo Run/Pause button.
3. Any "How to play" or "How to win" explanations can go in the scene description but it's always better to place them in the actual scene. You can have them disappear when the scene is RUN.