• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

GMS 2.3+ Sequence struct is not a struct?


If you are confused by the title then don't worry, so am I.

I have no idea if this is a bug, or my IDE has an issue, or its just me not using/understanding these functions correctly but...
After I get either a sequence object struct with sequence_get(), layer_sequence_get_sequence() or sequence instance struct with layer_sequence_get_instance(), both of them will throw false after putting them in a is_struct() function.

No idea if I am missing something, but if it is indeed a bug then I just want to be sure before reporting it.


YoYo Games Staff
YYG Staff
This is really a problem with is_struct() as it is incorrectly returning false, this is happening because internally we have various designations for internal objects that are all treated like structs and is_struct() is only saying true to those that are created as just structs.

I have modified the code now so that is will widen that definition to be anything that is not an instance, so sequences will start to return true (as they should).

The definition of struct being widened to be anything that is not an instance but can be treated like a struct (and assigned variables etc) NOTE: This will include methods as well, as internally they are structs

@matharoo - please note for documentation on 2.3.3