
Mirrors a sprite's x- and yscale horizontally and/or vertically across the center of the sprite, even when the sprite's origin is not centered, actively shifting the instance's position, thus keeping the bounding box intact. If no collisions are found the special value undefined will be returned instead.Ĭustom collision function testing for collision between two boundary boxes (used like instance_place) + _all version of the script, returning an array with the collision ids instead of only one id (as seen in my other _all scripts). These scripts do pretty much the same as their built-in counterparts without the _all suffix, except returning an array with all the collision ids, instead of just one, semi-random id. Make sure to use the script AFTER setting the view postion, but BEFORE the draw events, or your backgrounds might lag behind the view.Ĭollision_circle_all(x,y,rad,obj,prec,notme ) Ĭollision_ellipse_all(x1,y1,x2,y2,obj,prec,notme ) Ĭollision_line_all(x1,y1,x2,y2,obj,prec,notme ) Ĭollision_point_all(x,y,obj,prec,notme ) Ĭollision_rectangle_all(x1,y1,x2,y2,obj,prec,notme ) Just parse the view and the backgrounds to use. backgrounds_parallax(vind,bind1, ) Īutomatically make a selection of backgrounds adapt to a view's position in the room, to create the optical effect of parallax scrolling.This script adds separator commas into large numbers (like this: 1,000 and 1,000,000,000), and returns the number as a string. Optionally you can choose to clamp the value withing the second range as well. map(value,from low,from high,to low,to high, ) Īllow a value in one range to be mapped onto another range.Gradually change a value towards a target value using spring-based math, allowing it to bounce at the end, and alter course dynamically. numeric_springing (value, velocity, target value, damping ratio, angular frequency, time step ).Moves the instance out of a specific object type (if the instance calling the script are overlapping with such object), making sure it is not stuck.

equals(val1,val2., ) Ĭompare any two (or more) variables, without the error messages - strings, reals, arrays, you name it!Ĭheck if an instance or object type either is or has a specific parent object.You get both the individual scripts as text files, but also an extension for easily installing all the scripts you need! (The "Scripts Collection" file)

Some of these script are also used in my engines and examples. A bunch of scripts I have created, for various different purposes.
