|
> If you have any questions just ask. I've been making Flash games for a while > now, alhough I had zero time to dedicate to it recently.
cool, thanks. except some pm from me, soon
> > First a bit of constructive criticism: > > - Framerate is horrible. First thing you should do is change the default 12fps > to something else. > 30 or 40 is good, I sometimes set 60 if it can handle it. > > - Collision detection on the squares needs to be better. > I know this is hard, I've done a game like this myself a while back. > You can for example check what side of the box is hit and then bounce the ball > in that direction. > > - Make it bigger, screen is too small! > I usually make games at 640x480 (SVGA) for old time's sake.
frame rate is slow indeed, but i just wanted to get something going, stuff like this will some later. i didnt used pixel detection, i just use the hit test function to check for collision detection. i wanted to make something really small, but, yeah, if it was a full project it would be at least 640x480. > Then some tips to improve: > > - Which version of Actionscript are you using? > Don't even bother with AS1. AS2.0 is much better (can do classes), but I > recommend using AS3 to be future proof (but is a bit harder, more like > Java/C++). > > - Put all the tiles into a single movieclip, then collision detect against it > before doing any check for a specific tile. > This improves performance significantly. > > - Even better (but more work), you could do the tiles a single MovieClip with > BitmapData. > Then you remove the overhead of having multiple MC instances (this is less of an > issue with AS3 and Flash9+, but should still be faster). > > - I personally always use OOP when doing Flash games, but that's a matter of > preference. So I have a "Ball" class, a "Paddle class", etc. > In my game, the Paddle was a child of Wall because the collision detection was > the same, but Paddle was extended to be controlled by the mouse. > > > Well that's all I can think of for now... hope it helps. > it does. sure does. i did made in AS2. i didnt find any material for AS3. So i went with what i got. But i did using OOP. The tiles arent all in the same MC, but i did use groups of 4 blocks per MC, so i check hittest them, and then i hittest each one individually. i still havent learned bitmap data, like i said, i just got into AS, and flash as whole, this week. but i will look into it. thanks. > > > > [download a life] >
|