Pinch To Zoom?

Get help using Construct 2

Post » Tue Jun 11, 2013 12:48 am

Whatsup Everyone,

Im pokin my head out here again,Im trying to figure out Pinch Zooming in Construct 2,I checked all the tutorials and all i came up with is Cinematic Zooming which is not really what im after.If someone could break it down on how to implement this it would help me and some other people who may need to know this aswell.Thanks everyone
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,368

Post » Tue Jun 11, 2013 3:09 am

Doesn't exist in Construct 2.

You could create a zoom button. When touched, it would zoom in.
B
54
S
15
G
13
Posts: 821
Reputation: 17,565

Post » Tue Jun 11, 2013 3:11 am

Thank you @Tekniko

I was wondering if it did or not.Im sure we will have a bunch of new features soon.How about a sliding bar is that possible? To scroll the zoom with one finger or will i just have to implement the zoom button?
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,368

Post » Tue Jun 11, 2013 3:21 am

Yes.
Basically it would be something like this.

while SliderBar is in Touch
set SliderBar.X to Touch.X

Every Tick set Zoom to SliderBar.X
You may even want to do every 0.2 seconds or 0.5 instead of every Tick.
This will give it a more fluid effect and not be all twitchy.

Where "Zoom" would be the global variable that controls the amount you are zoomed in by. Does that make sense?
My brain is a little fried. Been sick all week.Tekniko2013-06-11 03:24:07
B
54
S
15
G
13
Posts: 821
Reputation: 17,565

Post » Tue Jun 11, 2013 3:29 am

@Tekniko That makes more than enough sense man. You couldnt of explained any better,Thank You for your advice i will play around with it.Good Karma to you sir
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,368

Post » Tue Jun 11, 2013 4:29 am

@Tekniko When you say set sliderbar.x to touch.x im lost,I know the sliderbar is my object but when do i set the x for touch.I trid a few different things but failed thats why i ask.And if anyone else has 2cents to throw in feel free.RookieDev2013-06-11 04:30:44
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,368

Post » Tue Jun 11, 2013 1:15 pm

Beta r133 ships with three examples showing how to pan, pinch to zoom, and rotate using touch input.
Scirra Founder
B
386
S
229
G
87
Posts: 24,207
Reputation: 191,722

Post » Tue Jun 11, 2013 6:49 pm

@Ashley Thank you can you tell me where i can find the new examples because the links are not popping up for me.I swear i been looking quite a bit.
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,368

Post » Tue Jun 11, 2013 6:57 pm

[QUOTE=RookieDev] @Ashley Thank you can you tell me where i can find the new examples because the links are not popping up for me.I swear i been looking quite a bit.[/QUOTE]

Just open construct 2 and start a new project, list of templates and examples should pop up.
B
24
S
9
G
7
Posts: 756
Reputation: 7,292

Post » Tue Jun 11, 2013 7:07 pm

Ahhhh. Thank you @vee41 Out of all places that is the last place i thought to check.Maybe we should have them more out in the open.I was getting the feedback as if this wasnt even possible.Thank you @ashley and @vee41.Good Karma to both of you.
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,368

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests