GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Need help for : Move to whre you touch function.

GAMEINTERNGAMEINTERN Posts: 56PRO
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,256Member
    Accepted Answer
    Interpolate is in the behavior section with all the behaviors and duration is in the interpolate behavior itself.

Answers

  • MotherHooseMotherHoose Posts: 2,456Member
    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 Posts: 56PRO
    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 Posts: 56PRO
    Hello, Yeah :) I looked right over it.
    So yeah the code is working also.

    The Community here is so helpful!
  • GAMEINTERNGAMEINTERN Posts: 56PRO
    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 Posts: 11,699Member, Sous Chef, PRO, Senior Sous-Chef
    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

This discussion has been closed.