Control Functions
Most of the control functions are block statements and explained in the Crust Language page. Here is a list of all the control functions in Crust:
wait(time)
: Waits for the specified time in seconds before continuing to the next block.stop(option)
: Stops the current script. Theoption
can beall
,this
,script
,other-scripts
, orother-sprites-and-scripts
:all
: Stops all scripts in all sprites.this
: Stops all scripts in the current sprite.script
: Stops the current script.other-scripts
: Stops all scripts in the current sprite.other-sprites-and-scripts
: Stops all scripts in all sprites and all scripts in the current sprite except the current script.
clone()
: Creates a clone of the sprite. The clone will execute theclone_setup
andclone_update
blocks.delete_clone()
: Deletes the current clone. This function is typically called within theclone_update
block to remove the clone when it is no longer needed.delete_clone(cloneid)
: Deletes the specified clone. Thecloneid
is the ID of the clone to delete, which starts from 1 and increments for each clone created.skip_further_execution_if(bool)
: Skips the execution of the current script if the condition is true.
This page is so short unlike others...