I'm trying to make a square pong game where the player is able to move the paddle around the edges of a square sprite. I'm looking for some help/advice with this as i'm finding it difficult to get this working right.
I've included a capx of how i've tried to do it, using small blocks on each 4 corners to change the paddles position & angle so that the paddle stays around the edges of the square.
https://www.dropbox.com/s/4hkw6f1tf5ikhoc/Square%20Movement.capx?dl=0
It works in theory but obviously isn't perfect.
If someone would be able to have a look at the capx and offer some help, that would be appriciated.
My example is probably not the most ideal way of doing this so i'm open to other ways of achieving this.