This was a demonstration I put together for someone in the chatroom yesterday, and I thought others might find it useful - it's a quick modification of the custom platform movement from my tutorial to simulate a bouncing ball with gravity.
Printable View
This was a demonstration I put together for someone in the chatroom yesterday, and I thought others might find it useful - it's a quick modification of the custom platform movement from my tutorial to simulate a bouncing ball with gravity.
Game idea:
Build an editor so you can place solid bricks on the playfield of destrucive bricks and then let the ball bounce.
See how many bricks you can destroy.
Since the bouncing ball always bounces the same it would depend on where the player places the solid bricks
This file should leave 4 destructive bricks before the ball gets in a loop.
Don't know if anyone will get it but it was interesting.
So you have to memorize where the ball bounces? :)
It's an interesting idea - have to put in an event to turn the ball around when it hits a block horizontally too, though.
This would be better if the ball bounced differently off of different angles, but the "horiz" always staying at three makes it the same bounce everytime as you all already know.
I am sure you can program it in if you want it.
that reaction is the basis of my game idea lol!
I think I'll build on that. It's a great game idea.
How about velocity and slowdown?
This is actually quite difficult. I tried to achieve that myself for a breakout game with custom movement and it turned out quite complicated and still has flaws (major problem: if the ball hits two bricks at once (it bounces where the bricks meet) this is considered a corner (of each brick) twice, resulting in an odd reaction.Quote:
Originally Posted by Brandon
So to get this right one would have to somehow take into account when bricks form a wall.