I am looking make it so buttons are set to invisible while they are overlapping a sprite.
(Since buttons are always on top)
This would then need to remove the invisible, or set buttons to visible while not overlapping.
I figured a
Spite is overlapping Buttons
buttons are invisible
but this makes an infinite loop :( any pointers?
Develop games in your browser. Powerful, performant & highly capable.
the event sheet is already a loop - it gets executed every frame of the game, so you don't need the while
just have an event that checks if the sprite is overlapping the button, set button invisible, then an else set button visible.
another option is to make buttons out of sprites...
Seems most everyone uses sprites as buttons, I might as well start doing that.