ghale
slidersTouch.capx
Yann
Hello,
thanks for your help, but the capx project is not for stable version r119 of C2.
Can you export it for us, poor users of stable version, please?
Thanks,
Yann I love this example but I have one problem with it. I am using the touch version. My UI layer is scale 0, parallax 0,0. In letterbox scale everything is super. However, I noticed when I run it on a 16:9 tablet and I touch the slider it instantly jumps to the right. So I tried setting my project to scale and bang it does it too. So it appears that if the layout is in scale then the set x calculations are incorrect.
dropbox.com/s/8ic6cdkc9mudw6n/slider-touch_SCALEPROBLEM.caproj
It is starting to do my head in. Am I missing something obvious? Help!
Solved the problem.
When setting X change to touch.X("UI")
Easy :)
czar
Yup good catch.
Maybe put a link to your solution, if people have the same issue one day (:
I updated my link.
thanks (:
Develop games in your browser. Powerful, performant & highly capable.
THIS IS VERY USEFUL
thanks!! i will give you credit when i launch my game :D
Yann, can the slider be in vertical position? thanks in advance
solved by me
just change the angle of slid_line and slid_btn to 90
then invert all X to Y and all Y to X in the "position correction and value computation"