SubtleGameDev
Member
(I'm only a few days into using GML, but I have other programming experience)
Alright, basically I have a very simple button/door system. What I do is, I make a door's ID "door1", and corresponding button with "button1", which is fine. But apparently I can't use the same ID's between different rooms.
My solution was to call them something like "<room number>door1" and "<room number>button1", since most levels would have few doors/buttons I won't bother with the door/button numbers part for now.
All I want to do is, combine an integer and string and use that as an object ID, so how could I do this? Also I'm not really looking for solutions for the door/button thing, just the variable mumbo jumbo. Thank you
Alright, basically I have a very simple button/door system. What I do is, I make a door's ID "door1", and corresponding button with "button1", which is fine. But apparently I can't use the same ID's between different rooms.
My solution was to call them something like "<room number>door1" and "<room number>button1", since most levels would have few doors/buttons I won't bother with the door/button numbers part for now.
All I want to do is, combine an integer and string and use that as an object ID, so how could I do this? Also I'm not really looking for solutions for the door/button thing, just the variable mumbo jumbo. Thank you