I have a code that basically deploys a card once you click and drag it.
However, it seems that my cards overlap.
Here is the code in the card act method.
Here is the Position() method:
Basically, it's supposed to increase the value of position by one every time a card is deployed.
I also made sure that the event only happens *once* by putting it inside an if statement.
Yet, the cards always land on the same position. The value of position never seems to increase.
Any help would be greatly appreciated since this minor issue seems to be the death of me.
if(!Dep && Deployment)
{
Position();
position++;
Dep = true;
}
public void Position()
{
setLocation(43 + (50*(position)^2), 300);
CardSounds[number].play();
}

