I am making a blackjack game and Im trying to make a slidebar
so a person can set their bet. However I can not get my slidebar to
work at all to save my soul, can any one help me with this? Ive bin
trying to use functions like MouseH and constrain and
mousestilldown but they havent seemed to even register or do work
properly. Am i just using these properties wrong or what could be
wrong? Can anyone show me how to use these correctly and how to
incorporate them into my slidebar? Or any idea of how I can create
a working slidebar? Also how could i find like the position of the
slider along the bar and use that to determine what percentage of
the bet it would be and obviously set the bet amount to that. Any
help would be very much appreciated.
I noticed that I'd done something similar years ago, so I've
knocked up a behaviour for you. Just copy the text below into a
behaviour script, and drag the behaviour onto the slider sprite
that the user drags. Hope that helps.