Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi! Is there a way to add buttons to the viewport that stay the same size when zooming in/out?

Not directly, though that's something I've considered for a future update. You can, however, use the zoom_callback feature to update displayables - for example, if the provided current zoom is 2.0, then you'd know you should zoom your image by 1/2.0 = 0.5 so that it stays the same size visually. This will also likely mean you need to make sure your anchor points are set correctly so the image doesn't also look like it's wandering around the viewport. Hope that helps you get started! I'll try to remember to reply here if I do add a simpler/built-in way of having displayables update their size when the viewport is being zoomed.