I'd like to make an object (myButton) with 2 variables:
And then if player presses this object change global variable thats name is [myButton.variableName] to [value myButton.variableValue].
Now I can only change global variables selected from dropdown list.
Is it possible?
If they are not in the drop down list then you may have accidentally turned it into a local variable by moving it under an event block. A good rule of thumb is to put them at the top of the event sheet, and leave them there. Global has a earth icon, the local one has a diamond icon.
The global variable might be under the block as well, and this just wont do. C2 reads the sheet from top to bottom iirc.
I try to keep the Global variables on their own event sheet. That way to does not matter wher I put them on that sheet. Makes it easier to reference your variables too. You have one simple list where you go to add the tweeks, rather than scrolling through a bunch of event sheets.