Help With Simple Actor Movements

I downloaded the free version of GameSalad tonight and and am having trouble getting my actors to move the way I want them too. I am creating a game on version 0.10.4.1; this is the windows version. The game is intended to be used on the I-Phone. I want the actor to be stationary along the Y axis and would like to to move along the X axis. I want the movement to be a simple touch, drag and release process.

The actor is a basket, which moves left to right to catch different items.

I have searched online for tutorials but have come up with very little for the Windows version. Please help if you can.

Thanks!

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited January 2014
    Try this:

    If Touch is Pressed
         Constrain self.Position.X to game.Mouse.Position.X

    Note that the game.Mouse.Position.X attribute can be found in the attribute drop-down menu of the expression editor under Devices. Both "touch" and "mouse" work consistently for mouse clicks/drags and for mobile device taps/drags.

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

  • OneBlueEyeThreeOneBlueEyeThree Member Posts: 1
    Thank You! It is working now. I truly appreciate the help
Sign In or Register to comment.