• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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