Constrain Attribute Switch Help
DillonV
South FloridaMember Posts: 26
Hey everyone, i'm having a little trouble with constraining an attribute for my game. Basically, i'm trying to make a switch that can be dragged along on a track when touched. The track itself is small, and the slider piece starts at the bottom of the track. I have everything lined up perfectly when the scene starts, but when you go to drag the switch you can drag it all the way down and all the way top of the screen passed the track it is supposed to be stuck on. I want this switch only to be drag-able on the track itself, not the entire game screen. I've tried to look up videos about constraining attributes but I haven't had any luck with my game. Thanks in advance for the help!
Comments
The touch controls need to be nested into rules that say "if device.mouse pos x is > something and mos pos x is < somethingbigger . I think but results will very based n screen sizes and resolutions? Maybe? I'm so noob.
Thanks for the help. I will look into it. I have a feeling it's something so easy that i'm just not getting right now. I'm new also so I feel your pain!