2-part question, multitouch on one image, zoom in zoom out on another

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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Here's one way.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    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

  • FamTechAdminFamTechAdmin Member Posts: 47

    @tatiang Thank you. that was exactly what I was looking for.

  • FamTechAdminFamTechAdmin Member Posts: 47

    @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.

  • UtopianGamesUtopianGames Member Posts: 5,692

    Heres a free pinch zoom rotate that Wayne did many moons ago if it helps.

    http://www.deepblueapps.com/gs-pinch-zoom-rotate/

  • FamTechAdminFamTechAdmin Member Posts: 47

    @DeepBlueApps said:
    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.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    @FamTechAdmin said:
    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.

    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

  • FamTechAdminFamTechAdmin Member Posts: 47

    @tatiang said:
    Post a screenshot of your rules and we can compare them to mine.

    ok, will do so... brb

    by the way. the main question which i forgot to mention, is how to add the second touch

  • scottharrrules43scottharrrules43 Tulsa, OklahomaMember, PRO Posts: 694

    @FamTechAdmin said:
    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.

  • FamTechAdminFamTechAdmin Member Posts: 47

    @tatiang

    how do I post a screen shot? I thought it was just to upload the file to this comment

  • FamTechAdminFamTechAdmin Member Posts: 47

    @scottharrrules43

    thank you.

  • scottharrrules43scottharrrules43 Tulsa, OklahomaMember, PRO Posts: 694

    @FamTechAdmin said:
    tatiang

    how do I post a screen shot? I thought it was just to upload the file to this comment

    Mac is cmd shift 3 (in that orders)

  • FamTechAdminFamTechAdmin Member Posts: 47

    @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.

  • scottharrrules43scottharrrules43 Tulsa, OklahomaMember, PRO Posts: 694

    @FamTechAdmin said:
    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

  • FamTechAdminFamTechAdmin Member Posts: 47

    @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

  • FamTechAdminFamTechAdmin Member Posts: 47
    edited May 2015

    @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

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    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

  • FamTechAdminFamTechAdmin Member Posts: 47

    @NipaDidIt I see... hm... okay... will do so... thanks

Sign In or Register to comment.