Bloknar

Get help using Construct 2

Post » Thu Nov 29, 2012 11:33 pm



Hey guys I am making a breakout game. I have problem with the paddle colliding with the sides and then zooming up to the top. I have included the problem in the capX but the game link just has the block taken out causing the problem.

PLAY GAME HERE!

CAPXXXXXXX
B
32
S
9
G
3
Posts: 275
Reputation: 8,063

Post » Fri Nov 30, 2012 3:24 pm

nice game
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Post » Fri Nov 30, 2012 4:13 pm

Thanks, Just need help figuring out that problem when the paddle hits the sides. I think it has something to do with the paddle intersecting the walls and then trying to scoot out of the collision. HOW ME STOP THAT?
B
32
S
9
G
3
Posts: 275
Reputation: 8,063

Post » Fri Nov 30, 2012 10:04 pm

@delgado , that's what you find to say ?
Well I don't see a problem in the .capx
Maybe you could completely remove the sides !
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Fri Nov 30, 2012 10:15 pm

oh sorry i dont read this part with the problem in the capx, for me game is very nice and fun
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Post » Fri Nov 30, 2012 10:16 pm

One trick is to simply stop receiving input from the player once the paddle reaches a specific X value.

(without having seen your capx)

(Condition 1)
On key "arrow right"
(Condition 2)
paddle <= (screen.width - 10)

action - every tick, move paddle.X +1

this way it will stop moving the paddle once it reaches the screen boundary on the right.
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Fri Nov 30, 2012 11:31 pm

Thanks Justifun. I will give that a go. now I just took out the sides but I would prefer to have graphics there.
B
32
S
9
G
3
Posts: 275
Reputation: 8,063

Post » Sat Dec 01, 2012 1:52 pm

Hmmm tried the boolean of shutting the paddle following the x value with a lerp and it seems to just ignore it entirely. :(

Close to wall = false

true = move paddle towards mouse x

I was thinking about moving it a different way with the 8 direction... I am afraid it will function strange. Testing now.
B
32
S
9
G
3
Posts: 275
Reputation: 8,063


Return to How do I....?

Who is online

Users browsing this forum: hstmalk and 1 guest