GameMaker Studio 2 (2.3)
Icon

MaxLos' Script Pack 4

MaxLos

You must be logged in to obtain assets

Description

Yet another collection of 25 useful scripts:

• array_1d_mode - Returns the mode of an 1d array. You choose which values in the array should be included in the mode, as well as whether or not to return all the modes found in the array (if there are multiple) in the form of another 1d array.

• array_2d_mode - Same as above, but for 2d arrays.

• ds_list_mode - Same as above, but for ds lists.

• ds_grid_mode_region - Same as above, but for ds grids.

• array_1d_random - Returns a random value or position in an 1d array. You choose which values/positions can be chosen from.

• array_2d_random - Same as above, but for 2d arrays.

• ds_grid_random - Same as above, but for ds grids.

• array_1d_reverse - Reverses the order of positions and their held values in an 1d array. You choose which positions should be reversed.

• array_2d_reverse - Same as above, but for 2d arrays.

• ds_grid_reverse_region - Same as above, but for ds grids.

• ds_list_reverse - Same as above, but for ds lists.

• ds_map_random - Same as above, but for ds maps. You choose whether to return a random value or a random key.

• array_2d_mean - Returns the mean (average) of values in an 2d array. You choose which values should be included in the mean, as well as what should happen if there are two means.

• array_2d_median - Returns the median (middle) value in an 2d array. You choose which values should be included in the median, as well as which value should be returned if there are multiple medians.

• ds_grid_median_region - Same as above but for ds_grids.

• collision_line_instances - Works exactly like 'collision_line', but allows you to check for multiple instances or objects with one script call.

• collision_point_instances - Same as above but for 'collision_point'.

• place_meeting_instances - Works exactly like 'place_meeting', but allows you to check for multiple instances or objects with one script call, as well as check for the collision with a different collision mask than the one the calling instance currently has.

• draw_bar_sprite - Draws a 'bar' sprite of your choice, whose width is determined on a variable's current and maximum value. Can be rotated to allow for bars that deplete diagonally, right-to-left, etc.

• draw_collision_mask - Draws the collision mask of calling instance. Only works for rectangular or ellipse shaped collision masks. You choose the alpha and color to draw the mask at.

• mode - Returns the mode of a data set.

• value_last_digit - Returns the last digit in a real number or string (it doesn't have to be the last character in the string).

• var_control - Lets you increment and decrement the value of a variable with keyboard keys of your choice. Intended use is for debugging purposes.

• mouse_over - Returns whether or not the mouse is over an instance. You can choose the 'kind' of bounding box the mouse should be checking its within; whether its within the general area of the instance's sprite, including any 'empty' or transparent space, within the collision mask defined for the instance in the sprite editor, or precisely within the instance's sprite (even if the instance does not have a precise collision mask).

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2.3 - Version 2.2.0. Published May 23, 2021

Fixed script comment formatting for 'var_control'

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait