I use " collision_circle_list " to record the enemies player meet, list named " enemyList ". Everytime before using " collision_circle_list " ,I will destroy the " enemyList " and use ds_list_creat() to reset the structure.
But when I read " enemyList ", sometimes it shows the bug ( not...
Hi,
This piece of code:
// Object1 create event
array = [];
array_push(array,{"p1":100,"p2":200});
var data = array_pop(array);
show_debug_message(data.p1);
show_debug_message(data.p2);
..is firing some puzzling syntax error warnings:
object1 Event: Create at line 6, 19 : unassigned...
I have seen an strange behavior when declaring variables inside structs. The following code returns the x value of the instance that creates the struct even though it should return an error. I discovered this tracing a bug for a much bigger struct that I'm using and I really don't understand it...
Hello everybody, I have previously make a thread asking wheter structures(GMS 2.3) are good for storing info about tiles, and even without receiving a positive answer I decided to use them in the Level Editor to test before implementing in new Games. But now when I am done with Level Editor and...
I need data structure with about 700 objects, every object needs to store 6 properties. I need to be able to change, get these values, and look for values through this whole data structure. What is the best way to make it? Ds_list, grid or simple array? If someone has time, please show me some...
GMStruct
Struct generation for GameMaker Studio
Early alpha build
download on itch.io
Source on GitHub
Blog post 1: GMStruct - extending GML with code generators
Blog post 2: GMStruct Inheritance and Types
I need testers!
The project is still in very early development, and there is sure to...
GM Version: GameMaker studio and Studio 2
Target Platform: ALL
Download: N/A
Links: Video Link
Summary:
Structs allow you to group variables together under one variable. This is used to represent more complex data types such as vectors, or matrices.
In this short video I will show you how to...
I need to store a set of arrays in a way that would allow very fast adding/removing of any elements in the set. (so hashset, treeset, etc. A List would be too slow).
I must store the array given (not a copy of the array), as the array is used as keys throughout the project.
Im currently...
TMC Linked List
Outputs: GML Based, Should be compatible with all outputs
Type: Scripts
Included: Scripts, Feature Test Scripts, Looping Examples.
Asset Store: https://marketplace....tmc-linked-list
Description:
This series of script allows you to add linked list capabilities to your...