top of page
Writer's picturetylernprice122

Zooming with the Mouse Wheel in Construct 3

So I happen to have made a system that lets me scroll in and out using the mouse wheel, and I think it works great so I'm going to share this with you!



I started off by making a global variable to hold what would be the changing zoom levels, and I just called it "zoom". For me, 3.2 worked really nicely.



Next, I made an On Every Tick to set all the Layers I actively use to the global variable-- then I had it constantly update the text I had on my screen saying the zoom level.



And lastly after that, I was messing with the numbers to get it just right-- using the scroll wheel as the way to increase and decrease the values I zoom in with.



I reckon when I'm making my stuff compatible with a mobile device I'll work with pinch zooming, and it'll be pretty similar to what I did here. Hope this helps you.

2 views0 comments

Comments


bottom of page