Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Bug with sequence create

A topic by Dalmac created 72 days ago Views: 117 Replies: 4
Viewing posts 1 to 2
(3 edits)

[GMLive][12.07.2024 5:09:33][ERROR] Runtime error: [error] `instance#ref instance 10009(obj_player)` (instance of obj_player) does not have a variable `Sequence22`.

(it exists)

That happens after editing something in event where used layer_sequence_create

Developer

And what’s Sequence22?

sequence asset

Developer

I think that’s missing because there is no sequence_get_name function to automatically figure out sequences in the game by looping over them, though I could have sworn that I had a workaround implemented for that.

In the meantime you can add the following to the end of obj_gmlive’s Create event:

live_constant_add("Sequence22", Sequence22);

(repeat for each sequence you want to use in “live” code)

or do

layer_sequence_create(layer, x, y, asset_get_index("Sequence22"))

instead of just

layer_sequence_create(layer, x, y, Sequence22)

ok, thanks