Slider Controls in Gamesalad
ADSentertainment
Member Posts: 397
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:
Having trouble with your game? Sounds like a personal problem.
Comments
@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
This should do it.
Edit: darn, too late!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
That's what you get for making graphics !
At least I only made half of the graphics.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@Socks
@Tatiang
Thanks you two! That helped tremendously! And I like how you used my design for the slider, Tatiang
Having trouble with your game? Sounds like a personal problem.