Hey everyone.
In my code, I have two game objects that move based on the positions of touch 0 and touch 1, however what I’m trying to do is, if touch 0 ends, I’d like touch 1 to be referred to as touch 0.
So, basically, I want one main object to be moved at all times if there are any touches, and if there are two, have the second object move as well. If the first touch is removed, the input from the second touch now controls the first object. Currently it works perfectly fine unless the first touch is removed.
Is there any way to somehow tell the engine that the second touch is now the first?
Sorry if this isn’t explained very well.