Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
https://www.dropbox.com/s/1506ldu1eh99f ... .capx?dl=0
What is the best way to keep the touch pad within the limits of the green box? Currently the stick is able to move all over the screen, howver I would like to limit it's movement to the green box area.
Use the clamp function to limit the position of sangStick. For example, every tick you could set the position of sangStick to:
X: clamp(sangStick.X, boundary.BBoxLeft, boundary.BBoxRight)
Y: clamp(sangStick.Y, boundary.BBoxTop, boundary.BBoxBottom)
Develop games in your browser. Powerful, performant & highly capable.
You might be interested in this Touchstick example:
Thumbstick
Thanks