Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
hello! currently working on a tycoon like game. I have it set where you can pan around the scene using the middle mouse button down, and all that stuff. I was trying to figure out how to use the wheel to zoom in and out in game, but I have not clue, anyone know how?
Use the "on Mouse Wheel" condition in the mouse object and then depending on your preference, use either set layout/layer scale or set layer Z Elevation.
thanks! One more question to add on I guess, how would I go about adding to the scale or subtracting from the scale?
for example, on mouse wheel up, add lets say 0.2 to the scale, and then on mouse down, subtract that from the layout scale?
Develop games in your browser. Powerful, performant & highly capable.
use "set layout scale" layoutscale+0.2 or -0.2.
You can also add a condition that sets your max or min zoom levels.
On Mousewheel Up
- Set layout scale - layoutscale-0.2
On Mousewheel Down
- Set layout scale - layoutscale+0.2