Real-valued functionsQuoterandom(x) Returns a random real number between 0 and x. The number is always smaller than x.abs(x) Returns the absolute value of x.sign(x) Returns the sign of x (-1, 0 or 1).round(x) Returns x rounded to the nearest integer.floor(x) Returns the floor of x, that is, x rounded down to an integer.ceil(x) Returns the ceiling of x, that is, x rounded up to an integer.frac(x) Returns the fractional part of x, that is, the part behind the decimal dot.sqrt(x) Returns the square root of x. x must be non-negative.sqr(x) Returns x*x.power(x,n) Returns x to the power n.exp(x) Returns e to the power x.ln(x) Returns the natural logarithm of x.log2(x) Returns the log base 2 of x.log10(x) Returns the log base 10 of x.logn(n,x) Returns the log base n of x.sin(x) Returns the sine of x (x in radians).cos(x) Returns the cosine of x (x in radians).tan(x) Returns the tangent of x (x in radians).arcsin(x) Returns the inverse sine of x.arccos(x) Returns the inverse cosine of x.arctan(x) Returns the inverse tangent of x.arctan2(y,x) Calculates arctan(Y/X), and returns an angle in the correct quadrant.degtorad(x) Converts degrees to radians.radtodeg(x) Converts radians to degrees.point_distance(x1,y1,x2,y2) Returns the distance between point (x1,y1) and point (x2,y2).point_direction(x1,y1,x2,y2) Returns the direction from point (x1,y1) toward point (x2,y2) in degrees.

String handling functions (100% 23/23)Quotechr(val) Returns a string containing the character with asci code val.ord(str) Returns the asci code of the first character in str.real(str) Turns str into a real number. str can contain a minus sign, a decimal dot and even an exponential part.string(val) Turns the real value into a string using a standard format (no decimal places when it is an integer, and two decimal places otherwise).string_format(val,tot,dec) Turns val into a string using your own format: tot indicates the total number of places and dec indicated the number of decimal places.string_length(str) Returns the number of characters in the string.string_pos(substr,str) Returns the position of substr in str (0=no occurrence).string_copy(str,index,count) Returns a substring of str, starting at position index, and of length count.string_char_at(str,index) Returns the character in str at position index.string_delete(str,index,count) Returns a copy of str with the part removed that starts at position index and has length count.string_insert(substr,str,index) Returns a copy of str with substr added at position index.string_replace(str,substr,newstr) Returns a copy of str with the first occurrence of substr replaced by newstr.string_replace_all(str,substr,newstr) Returns a copy of str with all occurrences of substr replaced by newstr.string_count(substr,str) Returns the number of occurrences of substr in str.string_lower(str) Returns a lowercase copy of str.string_upper(str) Returns an uppercase copy of str.string_repeat(str,count) Returns a string consisting of count copies of str.string_letters(str) Returns a string that only contains the letters in str.string_digits(str) Returns a string that only contains the digits in str.string_lettersdigits(str) Returns a string that contains the letters and digits in str.

The following functions deal with the clipboard for storing text. clipboard_has_text() Returns whether there is any text on the clipboard.clipboard_get_text() Returns the current text on the clipboard.clipboard_set_text(str) Sets the string str on the clipboard.

Dealing with dates and time (100% (47/47)) (All by BZGaming)Quotedate_current_datetime() Returns the date-time value that corresponds to the current moment.date_current_date() Returns the date-time value that corresponds to the current date only (ignoring the time).date_current_time() Returns the date-time value that corresponds to the current time only (ignoring the date).date_create_datetime(year,month,day,hour,minute,second) Creates a date-time value corresponding to the indicated date and time.date_create_date(year,month,day) Creates a date-time value corresponding to the indicated date.date_create_time(hour,minute,second) Creates a date-time value corresponding to the indicated time.date_valid_datetime(year,month,day,hour,minute,second) Returns whether the indicated date and time are valid.date_valid_date(year,month,day) Returns whether the indicated date is valid.date_valid_time(hour,minute,second) Returns whether the indicated time is valid.date_inc_year(date,amount) Returns a new date that is amount years after the indicated date. amount must be an integer number.date_inc_month(date,amount) Returns a new date that is amount months after the indicated date. amount must be an integer number.date_inc_week(date,amount) Returns a new date that is amount weeks after the indicated date. amount must be an integer number.date_inc_day(date,amount) Returns a new date that is amount days after the indicated date. amount must be an integer number.date_inc_hour(date,amount) Returns a new date that is amount hours after the indicated date. amount must be an integer number.date_inc_minute(date,amount) Returns a new date that is amount minutes after the indicated date. amount must be an integer number.date_inc_second(date,amount) Returns a new date that is amount seconds after the indicated date. amount must be an integer number.date_get_year(date) Returns the year corresponding to the date.date_get_month(date) Returns the month corresponding to the date.date_get_week(date) Returns the week of the year corresponding to the date.date_get_day(date) Returns the day of the month corresponding to the date.date_get_hour(date) Returns the hour corresponding to the date.date_get_minute(date) Returns the minute corresponding to the date.date_get_second(date) Returns the second corresponding to the date.date_get_weekday(date) Returns the day of the week corresponding to the date.date_get_day_of_year(date) Returns the day of the year corresponding to the date.date_get_hour_of_year(date) Returns the hour of the year corresponding to the date.date_get_minute_of_year(date) Returns the minute of the year corresponding to the date.date_get_second_of_year(date) Returns the second of the year corresponding to the date.date_year_span(date1,date2) Returns the number of years between the two dates. It reports incomplete years as a fraction. date_month_span(date1,date2) Returns the number of months between the two dates. It reports incomplete months as a fraction. date_week_span(date1,date2) Returns the number of weeks between the two dates. It reports incomplete weeks as a fraction. date_day_span(date1,date2) Returns the number of days between the two dates. It reports incomplete days as a fraction. date_hour_span(date1,date2) Returns the number of hours between the two dates. It reports incomplete hours as a fraction. date_minute_span(date1,date2) Returns the number of minutes between the two dates. It reports incomplete minutes as a fraction. date_second_span(date1,date2) Returns the number of seconds between the two dates. It reports incomplete seconds as a fraction. date_compare_datetime(date1,date2) Compares the two date-time values. Returns -1, 0, or 1 depending on whether the first is smaller, equal, or larger than the second value. date_compare_date(date1,date2) Compares the two date-time values only taking the date part into account. Returns -1, 0, or 1 depending on whether the first is smaller, equal, or larger than the second value. date_compare_time(date1,date2) Compares the two date-time values only taking the time part into account. Returns -1, 0, or 1 depending on whether the first is smaller, equal, or larger than the second value. date_date_of(date) Returns the date part of the indicated date-time value, setting the time part to 0.date_time_of(date) Returns the time part of the indicated date-time value, setting the date part to 0.date_datetime_string(date) Returns a string indicating the given date and time in the default format for the system.date_date_string(date) Returns a string indicating the given date in the default format for the system.date_time_string(date) Returns a string indicating the given time in the default format for the system.date_days_in_month(date) Returns the number of days in the month indicated by the date-time value.date_days_in_year(date) Returns the number of days in the year indicated by the date-time value.date_leap_year(date) Returns whether the year indicated by the date-time value is a leap year.date_is_today(date) Returns whether the indicated date-time value is on today.

Game PlayMoving aroundQuoteInstance variables:x Its x-position.y Its y-position.xprevious Its previous x-position.yprevious Its previous y-position.