Pinch to Zoom AND Rotate on Same Sprite ?

Get help using Construct 2

Post » Fri Feb 07, 2014 9:27 am

Hi all,

i saw examples in new releases of C2 , both the Pinch to Zoom and the Rotate Example.

Is there a way to implement BOTH on any sprite ?

I have 15 sheets, i'll have to repeat the events for every sheet and every sprite ? or should i add a behaviour ?

What's the most efficient way ?

Thanks !

TheMac
B
7
S
1
Posts: 38
Reputation: 491

Post » Fri Feb 07, 2014 9:33 am

This should work:

Create one sheet with the zoom/rotate events, right click on another event sheet and choose include event sheet, that way all the events on the zoom/rotate event sheet will be included. (They will stay on their own sheet ofcourse)LittleStain2014-02-07 09:34:20
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

Post » Mon Feb 10, 2014 9:13 pm

@LittleStain

Gosh, i'm having a hard time trying to replicate touch (and NOT pan like in the example) on every sprite of my app :(

And then i'll even have to add rotation events.

The problem is i find also very hard to replicate the PINCH by mouse so i have always to exporto via cocoonjs. 10minutes to test a little event change :(

Is there a way to emulate pinch via mouse (eg. pressing ctrl or shift) ?

I'm lost :(

Thanks !

TheMac
B
7
S
1
Posts: 38
Reputation: 491

Post » Wed Feb 12, 2014 3:41 pm

@LittleStain

still lost with the "DAMN" example :-) (because i don't want to pan)

could it be easier with "on nth touch" (with n =1 = 2nd touch ) ?

Thanks !

TheMac

B
7
S
1
Posts: 38
Reputation: 491

Post » Thu Feb 13, 2014 12:05 pm

Ehm..dear @LittleStain

it "almost" works, but there's something strange about behaviour of my "simplified" pinch :)

https://www.dropbox.com/s/2zax0y8x5005rtl/test.vic.zoom.pinch.capx

(it's on layout2 and sheet2)

Thanks for help !

TheMac
B
7
S
1
Posts: 38
Reputation: 491

Post » Fri Feb 14, 2014 8:50 am

BUMP !!



TheMac
B
7
S
1
Posts: 38
Reputation: 491

Post » Sun Feb 16, 2014 8:52 am

please close this and refer to :

http://www.scirra.com/forum/how-do-i-select-a-sprite-using-touch-and-zoom-it_topic86871.html

TheMac
B
7
S
1
Posts: 38
Reputation: 491


Return to How do I....?

Who is online

Users browsing this forum: Microbex and 14 guests