PowerUps - Bigger Bounce - Help!
Hello all,
I'm very new to GameSalad (First app in the making) and I've come across a problem.
I'm creating a pong game, kind of like "Breakout", and wanted to have a power up where once the 'paddle' captures the power up actor falling into the screen the next time the ball hits the paddle it sticks, then once a release button is pressed (Maybe the paddle, not yet decided) the ball will bounce off the paddle and the game will resume as normal.
Any help will be greatly appreciated. Thanks.
Developer For BLUNTentertainment - Feel Free To Message Me! - Free Beginner Templates!
Best Answer
-
Braydon_SFX Posts: 9,273
There's a couple ways you could achieve this.
One is to constrain the balls x and y positions to the paddles x and y positions. This would, however, make the ball "stick" to the center of the paddle, no matter where the ball hit.
Another way you could do this is calculate the distance from the center of the paddle that the ball hit, and then constrain it.
Hopefully that gets you on the right path. I'd make a demo for you if I had the time today. Best of luck!
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Answers
Thanks never thought of trying this, ill give it a go
Developer For BLUNTentertainment - Feel Free To Message Me! - Free Beginner Templates!