Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

[Fixed] Having issue with the program recognizing variables.

A topic by PizzaTowerGuy created Dec 16, 2019 Views: 1,350 Replies: 3
Viewing posts 1 to 4
(1 edit) (+1)

Hi, Im having trouble making live room editing when instance with create event code are in.

Here is how the rm_test room looks in the editor.

The cracked blocks and the A objects have no create event and work fine even when updating them.


However when I try adding an enemy (obj_cheeseslime), the game crash and tells me that the "hsp" variable, which is set in obj_cheeseslime create event, isnt set.


A similar issue also happened when trying to edit the character jump height with the live_call/live_result script, I would get error logs that told me the "states" variable for the character (which allows to switch from jumping/attacking/etc. states) weren't set in the scripts (which I assumed would only need to be set in the character object create event). Am I missing something simple here?


Edit: When removing the scr_collide_destructibles script, the crash will occur because obj_cheeseslime.state isnt set, which it is in its create event.
Developer(+1)

If you can email me a small sample project with the issue, I'll take a look - seems like room loader ceases to run Create event for some reason.

Developer(+1)

Pushed a new update that fixes this.

do you need help still?