Category:Script components

Any script possible.

Camera Zoom
Do you know the Simulation Bar? Well in that, there's a Magnifying glass with a + and a -. Is call Zoom, all you need is to pull the button and zoom in or zoom out. You can type any number like 2 and it will zoom right as the number you just type. But, did you know that there's a way to use camera zoom with script?

In this tutorial, we will be using postStep and onCollide, die, key ,hitbylaser and click.

postStep: onCollide: onClick: onDie onKey: onHitByLaser

Marble Siege - Advanced
Marble sieges were first introduced by Doc671, and further made and advanced on by Someone Who ? and EnderDestroyer. If you didn't know already, Doc671 has made a marble siege tutorial for the basic marble race style. Alas, there are better and more scripted sieges out there. In the Advanced marble siege, there is just one room, with a track, and the boss. Marbles deal damage proportionately to how fast they're moving.

How to make:
The onCollide code is below: postStep code: In addition, the following code should be defined in console (developed by Brocolimanx):

Lets break this code down to make it simpler! This first statement is questioning if its timeToLive is infinity. This means that the boss is not on cooldown. Then based on the colliding marble's velocity, it sets the scene variable scene.my.col to a red, green, or yellow. The following statement takes the Integer value of the absolute value of the average of vel(0) and vel(1), which is the marbles' x-axis velocity and its y-axis velocity. This next section depletes robot's health by the average of the marbles' velocity (see above for more info), and then adds a box with a short timeToLive to show how much damage the marble did.

Max Marble Custom Tracer
- Max is a guy on youtube that make zombies & more videos and his current popular vid is over 1.5 MIllion. In his Marble Drop video, The marble have some kind of custom tracer. And yes is the tracer that spawn a circle the slowly minus the radius. Here's the code:

postStep: