Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.

Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


Member Since 23 Apr 2012
Offline Last Active May 17 2012 02:17 AM

Posts I've Made

In Topic: Zooming and swiping with OpenGL ES

10 May 2012 - 01:40 AM

You move scale - it works
you move a second time and the image jumps correct ?

I don`t move scale - it works :)
I move scale - it jumps back before zoom

could you write down a sequence of actions you want to do ?

swipe, pinch zoom :)
this corresponds to: moveby(1, 0), scaleby(delta, delta)

btw if you have icq message me and i'll add you

I can create a new ICQ account if you have no jabber or skype :)

In Topic: Zooming and swiping with OpenGL ES

08 May 2012 - 08:54 AM

Nope, this does not work properly either :(

In Topic: Zooming and swiping with OpenGL ES

08 May 2012 - 06:09 AM

I`ll check this now.

P.S. Sorry for late response, I was on vacation

In Topic: Zooming and swiping with OpenGL ES

04 May 2012 - 06:50 AM

No, i want to translate the image to some point, zoom it and then translate back :)

In Topic: Zooming and swiping with OpenGL ES

03 May 2012 - 07:30 AM

I'm wondering how your swiping works even with scale equals 1.

I don`t need to swipe when scale equals 1 :) Only when we are zoomed.

in case that scale is 1 and aspectRatio is 1. These lines will not translate at all.

Yes, this is a feature. When aspectRatio == 1 we are on iPAD and don`t need to swipe the initial picture. On iPhone aspectRatio is 1.25 and the picture is partially invisible so we can swipe it.

Maybe you could try to explain how you want to handle swipe and pinch.
This code has one fallback. swipe, scale swipe, scale would not work since you have to accumulate this actions.

I want to handle both swipe and scale in one place.
I also have moveTo(point) method, zoomIn() and zoomOut() and all of them are avaible for scripters. I used the approach you suggested, but it was a big pain to handle all scale-swipe-change scale target events :(