• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

Guys im new and need help

W

WokeTheGod

Guest
so im working on a fighing game currently and realized that I need a character selcetiom screen so I searched up a youtube tutorial amd started getting to work once the lines of code were finished this problrm arised itself and I dont understand it

I'm dropping a link
in the attached files of the error message
-
Pls help
-
much appreciated
 

Attachments

The-any-Key

Member
Your variable is not set before you try read it.
Ex say I got this is in a create event
Code:
my_character=obj_controller.selected_character
But obj_controller has not yet run code like:
Code:
selected_character="Strong and mighty rich";
So you get an error that obj_controller has not yet set any selected_character variable.
 

Paskaler

Member
Most likely, rm_characterSelect is a non-existing room. Make sure the room exists and that you didn't misspell the name. But, in general, thay error means that you've tried to access a variable that wasn't defined/wasn't defined yet.
 
Top