How do i select a sprite using touch and zoom it ?

Get help using Construct 2

Post » Mon Feb 17, 2014 1:55 pm

If you put all the objects as animationframes, you could just keep using hunter if the sprite is so called.

If you put all in a family it would be wise to create a way to select the sprite you'd like to affect.

so pick family member for which selected is true or something like that.

You could probably also pick the family member which is closest to the fingers, for most people will work that way automatically..
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 » Wed Feb 19, 2014 9:17 pm

@LittleStain,

i tried your solution (one sprite, with different animation frames. Thus i'm able to identify WICH frame is clicked.
Everything works perfectly, but....when i do my zoom (remember, zooming is ON SPRITE, not ON ANIMATION FRAME), every frame of animation of that sprite will be zoomed.

Poor result :(

Is there any WORKING solution ? Is there someone could finally resolve my problem ?

Do you need a new .capx ?

here it is : https://www.dropbox.com/s/76dkz24etct7y32/test.capx

and by the way, old question : I can i test PINCH in browser ???

Thanks !

TheMac
B
7
S
1
Posts: 38
Reputation: 491

Post » Thu Feb 20, 2014 9:46 am

Bump :)

TheMac
B
7
S
1
Posts: 38
Reputation: 491

Post » Thu Feb 20, 2014 9:36 pm

Added the piggy and the hunter to a family (Objects), select one first (touch) to activate it.

Added rotating to the zoom action too, all in 1 go ;)

About point 1 ... I don not know what you consider strange, but I like it :D

*assimilates*

capx


simply add all the objects which should be zoomable and rotatable to the "Objects" family.
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Fri Feb 21, 2014 6:31 am

@lennaert.

Thanks ! So you did use the "system.pick object by evaluating " :)

Very good implementation, exactly what i was looking for but couldn't figure :lol:

i owe you one :)

TheMac
B
7
S
1
Posts: 38
Reputation: 491

Previous

Return to How do I....?

Who is online

Users browsing this forum: agg1401, ahmetkahveci, Yahoo [Bot] and 23 guests