GameMaker Studio 2 (2.3)
Icon

MaxLos' Script Pack 2

MaxLos

You must be logged in to obtain assets

Description

A collection of 25 more handy scripts:

• array_1d_shift_values - Shifts the values in an 1d array from a given position in the array up or down an amount.

• array_1d_replace_specific_values - Replaces occurrences of a specified value in a 1d array, with another value of your choice.

• array_1d_swap_values - Swaps the values found at two different positions in an 1d array.

• array_1d_transform_ds_list - Transforms an 1d array into a ds list.

• array_clear - 'Clears' an 1d or 2d array by replacing all values in the array with another one of your choice.

• array_get_dimensions - Returns how many dimensions are in an array.

• collision_line_list_instances - Works exactly like the built-in function 'collision_line_list', but allows you to check for multiple objects and instances at once.

• collision_rectangle_list_instances - Works exactly like the built-in function 'collision_rectangle_list', but allows you to check for multiple objects and instances at once.

• instance_place_list_instances - Works exactly like the built-in function 'instance_place_list' but allows you to check for multiple objects and instances at once

• draw_ds_list_instances - Draws the name of instances stored in a ds list. Should be used for debugging purposes.

• draw_game_screen_info - Draws information related to the game screen, such as GUI width/height, camera width/height, application surface width/height, and so on. You choose what information gets drawn. Should be used for debugging purposes.

• draw_text_cropped - Draws text that will be cropped if it exceeds the x and y coordinates you choose.

• ds_grid_count_values_region - Returns how many times a specific value of your choice is found within a defined region of a ds grid.

• ds_grid_randomize_region - Sets the cells in a defined region to be set to random values. You choose the random values to choose from.

• ds_grid_replace_values_region - Replaces occurrences of a specific value in a defined region of a ds grid with another value of your choice

• ds_list_insert_ds_list - Inserts the values from one ds list into another ds list. You choose the insertion point, which values from the second list should be inserted into the first list, as well as whether the inserted values should be removed from the second list.

• ds_list_replace_values - Replaces all occurrences of a specific value in a ds list.

• ds_list_return_instance - Searches through a supplied ds list, containing only instances, for the instance with the highest or lowest (your choice) of a specified, shared variable between all instances in that list, then returns the id of the found instance to you.

• ds_list_return_instances - Searches through a supplied ds list, containing only instances, and returns another ds list containing only instances from the original list that satisfy given conditions of your choice.

• ds_list_sort_instances - Sorts a ds list, containing only instances, by the value of a shared variable, in ascending or descending order.

• ds_list_shift_values - Shifts the value(s) found at a given position in an ds list up or down an amount of your choosing.

• ds_list_value_count - Returns how many times a specific value appears in an ds list.

• value_place - Returns the digit at the specified place value (ones, tens, hundreds, thousands, etc.) of a real number, or a string that can be converted into real number (e.g "100", "1301", etc.)

• string_last_char - Returns the last character in a string.

• string_pos_array - Returns an 1d array, that holds all the positions a substring was found at in a string.

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2.3 - Version 2.1.4. Published May 31, 2021

Updates to 'string_pos_array'

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait