Square Pong Movement - Better way of doing this? [CAPX inc.]

Get help using Construct 2

Post » Sun Aug 14, 2016 4:02 pm

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.
Image ImageImage
B
7
S
2
G
1
Posts: 95
Reputation: 1,249

Post » Sun Aug 14, 2016 7:49 pm

@rayray

Hi there,
I checked out your capx and changed it up a bit:

https://www.dropbox.com/s/rs9aq0dqv49dl ... .capx?dl=0

I ditched the Sprites and added Imagepoints at each corner of the Square sprite as X/Y references.
I also added lerp to the touch command, for more styled effect, and more challenge to the game.
I hope this matches what you are looking to do.
B
17
S
9
G
5
Posts: 74
Reputation: 4,145


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests