I have a UIImageView called hitBox, and another image called mainSprite. So what I wanna do is when an IBAction is pressed, it will move hitBox to above mainSprite. I don't know if this is syntax but this is what i know moves things on the screen.
I just want to replace x coordinate and y coordinate with something that will place it somewhere in relation mainSprite.
THANKS
Code:
hitBox.center = CGPointMake(x coordinate, y coordinate);
I just want to replace x coordinate and y coordinate with something that will place it somewhere in relation mainSprite.
THANKS
Last edited by a moderator: