- Home /
2D Balance
Hi, I'm trying to make a 2D mobile game where you have to balance a rod by using your finger - you would drag back and forth to control it. e.g. if the rod starts tilting left then you would quickly drag your finger to the left to balance it out again and vice versa. I don't really have a good idea of how to make and script this.
I'm shooting for the balance like in Fingertip Balance on android (possibly iPhone too).
Should I try to implement Unity's physics, or should I try to use pure scripting to simulate the balancing mechanic and if so how should I set it up?
Any help is greatly appreciated.
Answer by TSI25 · Jan 11, 2018 at 10:15 PM
the game sounds simple enough that using 2d build in unity physics is probably the best way to go. i would have a 2d circle collider object that you move to wherever the player is tapping and holding, and a big object with some other 2d collider that has gravity applied to it. you would want some way to spawn that at the top of the screen and detect if it hits the bottom. shouldnt be too bad.
I actually made something like that and it work for a few seconds until it starts sliding off the object. Do you know of anyway to keep the points attached, so it still balances, but won't fall off?
Your answer
Follow this Question
Related Questions
Question on 2d planet gravity 1 Answer
Cannot set motor speed in script 1 Answer
Object jumps right after the attached HingeJoint2D is Enabled 0 Answers
Coroutine not working properly 1 Answer