Slider Controls in Gamesalad

Does anyone know how to make a slider control, so that if you slide your finger along an area, an actor will move? Now technically I know I'd do this, but the problem is that if I were to tap on one side of the slider, the actor would instantly move, or "teleport" to that area. Does anyone know how to make a slider like that? Here's a picture to show you what exactly I'm talking about:

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited December 2014

    @ADSentertainment

    Create a real attribute 'A'

    Rule:

    When mouse button is down:

    Change A to Mouse.X - Self.X

    Constrain Self.X to Mouse.X - A

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

    This should do it.

    Edit: darn, too late!

  • SocksSocks London, UK.Member Posts: 12,822

    @tatiang said:
    This should do it.

    Edit: darn, too late!

    That's what you get for making graphics ! :smile:

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

    At least I only made half of the graphics. ;)

  • ADSentertainmentADSentertainment Member Posts: 397

    @Socks
    @Tatiang
    Thanks you two! That helped tremendously! And I like how you used my design for the slider, Tatiang :p

Sign In or Register to comment.