2-part question, multitouch on one image, zoom in zoom out on another
FamTechAdmin
Member Posts: 47
hi.
This is a 2-part question.
The first part is about touches.
I was wondering how to access two touches on one image. Once the image has been touched (or touch released) for the first time, it will make another image zoom in and zoom out until the first image receives a second touch (or a second touch release), then the zoom in zoom out effect will stop.
The second part is about the zoom in, zoom out.
how to make an image automatically zoom in zoom out with the help of interpolate (or any other way). the image should continue zooming in and out until the first image has been touched (or touch released) a second time.
Comments
Here's one way.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Courtesy of @Socks:
AAA * sin (self.time * BBB) + CCC
. . . . . . . .
AAA = how far you want your actor to move.
BBB = how fast you want your actor to move.
CCC = the centre point of the movement.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@tatiang Thank you. that was exactly what I was looking for.
@tatiang. hi again. the example you gave me was exactly what I was looking for but Im not able to implement it into my own. what I mean is that set the rules the same way in my code as in the example, with my own values but nothing happens. I don´t get it.
Heres a free pinch zoom rotate that Wayne did many moons ago if it helps.
http://www.deepblueapps.com/gs-pinch-zoom-rotate/
thanks for the template, it might come in handy in other projects, but that was´t what I was looking for for this one. The toggle zoom file was close but for some reason Im not able to implement it.
I have two images, image A and image B and the thing I try to achieve is this:
image A will be touched once, that will generate a pulse like effect on image B. Image B will continue zooming in and out automatically until image A has been touched a second time. then it stops.
That usually means you did something wrong when copying the rules or that you added them to a different rule condition or timer that is affecting the way it was originally set up.
Post a screenshot of your rules and we can compare them to mine.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
ok, will do so... brb
by the way. the main question which i forgot to mention, is how to add the second touch
Go to attributes and device and multitouch.
@tatiang
how do I post a screen shot? I thought it was just to upload the file to this comment
@scottharrrules43
thank you.
Mac is cmd shift 3 (in that orders)
@scottharrrules43
I noticed that my last comment was a little vague. I meant how do I upload a screen shot to this comment from the options? I can only find upload´s for image URL´s but not for files directly from my computer.
Just drag the image on to the comment
@tatiang
/Users/christosvlachos/Desktop/Skärmavbild 2015-05-03 kl. 07.49.42.png
/Users/christosvlachos/Desktop/Skärmavbild 2015-05-03 kl. 07.49.20.png
@scottharrrules43 just dragged two images on to the comment. I just see text, no images
ps. still have issues with the second touch. this is what Im trying to active : "if touch on image A has been released and the width and hight of image B is zero, then the width and hight of image B should interpolate to x size for x seconds, then reduce down to zero for x seconds and grow nack to x size and so on... BUT if the touch of image A has been released and the width and height of image B is set to x size then the width and height of image B should scale down to zero"
for some reason my image doesn´t seem to react to the touches given to it. i´ve tried to approaches to it, the example given to me by tatiang and my own approach with a simple rule and interpolate
I think the drag and drop only works for PRO users
You need to upload the image to a image hosting site (such as tinypic.com or postimage.org) and then attach the link to the image in your post.
Mental Donkey Games
Website - Facebook - Twitter
@NipaDidIt I see... hm... okay... will do so... thanks
@tatiang
https://www.dropbox.com/s/kpc1gjxtyajat54/Skärmavbild 2015-05-03 kl. 07.49.20.png?dl=0
https://www.dropbox.com/s/j55fpeo7196eayu/Skärmavbild 2015-05-03 kl. 07.49.42.png?dl=0