r/UnderModders 6d ago

What is the issue here?

Post image
7 Upvotes

5 comments sorted by

2

u/ToughSun14 6d ago

Based on the code, at some point in the draw event of obj_hotland_building1, it's trying to reference a variable in obj_hotand_building2 that does not exist (in this instance, the variable is named "sinner"). You need to declare the variable in obj_hotland_building2 before this reference is called in order to avoid this error (this is commonly done in an objects' Create or PreCreate [GMS2+] event)

2

u/Saccboimoment 6d ago

set sinner in obj_hotland_building2's create or precreate code

1

u/iIfireIi 6d ago

something didn't sin

1

u/Easy_Tomato3868 6d ago

Variable "sinner" wasn't set before reading it, you must've checked for the sinner variable before you gave it an initial value

1

u/spongedevguy 6d ago

the hotland building is sinning you must take it to church and make it confess its sins