Need help for : Move to whre you touch function.

GAMEINTERNGAMEINTERN PRO Posts: 56
edited March 2012 in Working with GS (Mac)
Hi, I just need help with being able to move to where you touch controls?

I saw this thread:

Put this in the actor you want to move:
when mouse is down
interpolate self.position.x to mouse.position.x
duration 0.2
interpolate self.position.y to mouse.position.y
duration 0.2


I am new to programming and I am not sure how this translate to Game Salad.
Thank You

Best Answer

  • JohnPapiomitisJohnPapiomitis Posts: 6,256
    Accepted Answer
    Interpolate is in the behavior section with all the behaviors and duration is in the interpolate behavior itself.

Answers

  • MotherHooseMotherHoose Member Posts: 2,456
    That is a Rule behavior … (a 'when' conditional statement)

    download the new GS Manual: … http://gamesalad.com/blog

    click on the Cookbook link at the top of this page … and do some tutorials

    view the videos:

    spend some time getting acquainted with your new toy/tool
    wont take you long @ CGOStudios … you are curious and focused!

    Enjoy yourself!

    image MH
  • GAMEINTERNGAMEINTERN PRO Posts: 56
    Thank You! I totally understand where you are coming from. I have done a few tuts. So i decided to kinda test my self. I am only trying to recreate this movement. I don't see interpolate or the duration.

    But yeah I will look through some tuts. that may point me in the right direction.

    Thank You.
  • GAMEINTERNGAMEINTERN PRO Posts: 56
    Hello, Yeah :) I looked right over it.
    So yeah the code is working also.

    The Community here is so helpful!
  • GAMEINTERNGAMEINTERN PRO Posts: 56
    Also thank you for the link too I was wondering if there was a manual of some sort.
    That is a Rule behavior … (a 'when' conditional statement)

    download the new GS Manual: … http://gamesalad.com/blog

    click on the Cookbook link at the top of this page … and do some tutorials

    view the videos:

    spend some time getting acquainted with your new toy/tool
    wont take you long @ CGOStudios … you are curious and focused!

    Enjoy yourself!

    image MH
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    download the new GS Manual: … http://gamesalad.com/blog
    MH
    Oh wow. Didn't realize. I'm writing a GameSalad Guide for Educators... I'll have to see what they already have written re: that.

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

Sign In or Register to comment.