View Full Version : breakout
bombsledder
March 25th, 2004, 10:27 PM
checkout my complete breakout game
<ahref="http://www.angelfire.com/ak5/footer/">here</a>
uhh. critics needed and wondering how come if i set the speed of the ball anyfaster the ball will you go straight out of the walls. please help with that..
Digigamer
March 25th, 2004, 11:52 PM
your "here" link is non existant
Weazol
March 26th, 2004, 05:06 AM
(my criticism isnt that of a game maker.. but that of a game player)
that was hard enough to beat.. dont speed it up... if you do atleast add begginer and expert mode...
next level!
junahu
March 26th, 2004, 11:17 AM
The problem is probably in how you make the ball bounce off the walls. If the ball goes too fast it could potentially get trapped too far inside the wall. whatever you make the ball bounce with will be called every frame (because the ball can't get out of the wall in one frame). Newtons first law would then dictate that the ball would continue, unhindered, through the wall because the wall is exerting equal forces in both directions.
Solution: Raise the frame rate to make the ball go faster rather than its movement variables.
bombsledder
March 26th, 2004, 07:13 PM
/hey thanks :)
umm yaa i will add a begginner exper and such
here is the link
<a href=http://www.angelfire.com/ak5/footer/>here this should work!<a>
bombsledder
March 26th, 2004, 07:14 PM
works for me
so if it doesnt work i dont know
tucker
March 26th, 2004, 08:05 PM
nice, white bar should go faster
im ready for the next level = D
Weazol
March 27th, 2004, 05:53 AM
and some sound effects would be cool
bombsledder
March 28th, 2004, 01:36 PM
well ok i will make a second level. im gonna make an easy medium and hard level and im gonna try to add some sounds.
never one it but my flash mx bible should help with that.
o yea the bar will go faster :)
Lost
March 29th, 2004, 05:26 AM
um.. you can let the ball hit the bottom of the screen and you dont lose, doesnt that make it easy?
edit- i didnt see it took away lives, it should restart with you lauching the ball again without it hitting the bottom and just flying up.
Soul814
March 30th, 2004, 06:26 PM
what lost said and if you go all the way to the side the paddle gets jammed there at times like 75% of the time
pom
April 5th, 2004, 02:08 PM
There's some weird hitTesting going on in there, but nice work all the same! Breakout isn't an easy game to program :)
Oh yeah, and PLEASE, a faster paddle! :D
Johnny64
April 6th, 2004, 09:04 AM
Oh yeah, and PLEASE, a faster paddle! :Dditto :)
bombsledder
April 6th, 2004, 08:43 PM
alright sorry i havent't posted in while but i was learning the SharedObeject();
command anyhow the ball is faster yes the paddle is faster :) cheer!
the link is
<a href="http://www.angelfire.com/ak5/breakout101/index.html">right here<a>
to save your highscore press the bug blue button!!!
thebulfrog
April 15th, 2004, 05:53 PM
Something to think about would be chaning the manner in which the ball bounces based on where it hits the paddle. Look at other versions of breakout, and notice how when it hits the side of a paddle it's at more of an angle than when it hits the middle of the paddle.
One way to go about doing this, is breaking the paddle into multiple movie clips, and having the collision reaction act differently based on where it hit.
bombsledder
April 18th, 2004, 07:51 PM
yea may sound good but. no
too many bugs
i already have tried that
here is an example.
what it bounces off the paddle from the right
hits the wall
comes right back hits the same spot it bounced off from in the begining
you will go in the same direction in as before. not good
:)
pom
April 21st, 2004, 06:52 AM
One way to go about doing this, is breaking the paddle into multiple movie clips, and having the collision reaction act differently based on where it hit.It's probably easier to get the position of the ball and the center of the paddle, and have the collision react differently based on the distance between those 2 points. Moreover, hitTest is really not reliable, so it's better to avoid using it as often as you can :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.