> :)
>
> zoom out
> set layoutscale = lerp(layoutscale, (viewportRight("hud") / layoutwidth), 0.5*dt)
>
> zoom back in
> set layoutscale = lerp(layoutscale, 1, 0.5*dt)
>
Tried this. You have keep clicking the zoom button over and over and over. Needs to be in a loop I guess.
you can trigger it instead off when is clicked, to when is pressed, or left button down or is in touch on object. then will zoom continuously as long u keep ur touch or mouse pressed on it
i added the capx with the math from lennaert on touch and positioned the zoom in zoom out buttons for u u can easy duplicate it in your game
you dot need booleans for it sorry for misspelling your name lennaert
however you have to move the buttons on a different layer so your buttons Don't get bigger when u zoom in, use them on a top layer and do a condition of zooming only that specific layer of your game layout(default will be 0 )