Gravity/Orbit Sling Shot motion

Hello,
Here is the following scenario I am struggling with. I am not exactly sure how the physics of everything would work

  • object falling
  • User touches the screen and the object begins to 'orbit' around or towards the touched focal point (accelerating and decreasing the size of the orbit as it gets close to this focal point
  • user removes finger resulting in the object sling shotting across the screen

Being new to GameSalad the scenario confuses me. Any help would be appreciated

Thanks,
Chris

Comments

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    Here is a start:

    Make an actor and size it about 15x15 pixels. Put it at the top of the scene. Inside the actor put the following:

    Change Velocity
        Direction = 270, Relative to Scene, Speed = 50
    When MouseButton is down
        Accelerate Toward:  
            Position^: game.Mouse.Position.X
            Position>: Game.Mouse.PositionY
            Relative to Scene
            Speed = 50
    
  • chrisd36chrisd36 Member Posts: 4

    Thank you very much. I will give this a shot

Sign In or Register to comment.