#Creates a instance when i dont want it to
30 messages · Page 1 of 1 (latest)
well thats the issue, you have no code preventing the left pressing or releasing when one or the other is open or active
what code do i had to prevent this?
well where is the code for the spots you can build on?
well, it could be as easy as wrapping all your left pressed code in a !instance_exists(obUIPanelShop), but I'm not sure if you're creating and destroying the shop with each click or what
so how are you controlling the UIpanel visibility? creating/destroying? or just hiding it somehow?
hidding it
how?
but when the shop button is clicked it will move the instance to a possition
thats not relevant, whats relevant is that you don't want the spots clickable while the UI is open/visible
when you click a button, the UI hides itself, so clicking after that should be fine
so you dont have a specific variable that tells when its fully hidden?
what event is that in?
i dont think i do
so how do you control the position movement?
it might be this
i can send u a copy of the game if it can help u in any way
im kinda new to gamemaker so i dont know much
well I can't say your position_x and y will ever be those exact numbers via lerp like that, but with that said, you want a boolean variable for when the UI is hidden or visible
and just check that, so when its visible, you can't click on the placeable spots
when its hidden, you can
i have no clue how to code it to match that
i already have variables which checks if its hidden or shown
i tried adding this and it worked however when the ui closes it doesnt open back up