How do I set a max layout scale?

Get help using Construct 2

Post » Fri Dec 18, 2015 6:25 am

I'm playing around with the C2 provided example of Touch-zooming capx.

I've touch it up a bit to fit my game, but for the life of me, I can't figure out how to set a max layout scale. I basically want my min to be 1, and max be something around 1.5

I've looked through Google, Forums, and Tutorials. I find a lot of people asking the same question, but with a lot of indirect, unhelpful answers. But if you know of one that I may have missed, please feel free to simply link me. I really appreciate it!
B
6
S
1
Posts: 10
Reputation: 322

Post » Fri Dec 18, 2015 10:43 am

Wouldn't

set layoutscale: clamp(InitialScale * (TouchCurrentDistance / TouchStartDistance),1,1.5)

Do the trick?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests