And once again, I have come for assistance.
I have no problem with normal button objects and making them do what I want. But now.... I am at a point where there will be multiple buttons in the room and I wanted to make it simple for me.
Here's what I've done thus far.
- Made a room, ds_list with add button to add names into the list itself.
- Every time a name is added to the list, a button instance is created with the name on it.
What I'm trying to do.
- When I click on an button, save the name on the button into a global.name variable.
Every time I try, whether in the step event of the button or a mouse<left released> event, I can't get it to make the link between the button instance and the ds_list position so the name can be placed into the global variable.
Thank you beforehand for your help!
I have no problem with normal button objects and making them do what I want. But now.... I am at a point where there will be multiple buttons in the room and I wanted to make it simple for me.
Here's what I've done thus far.
- Made a room, ds_list with add button to add names into the list itself.
- Every time a name is added to the list, a button instance is created with the name on it.
What I'm trying to do.
- When I click on an button, save the name on the button into a global.name variable.
Every time I try, whether in the step event of the button or a mouse<left released> event, I can't get it to make the link between the button instance and the ds_list position so the name can be placed into the global variable.
Thank you beforehand for your help!