Welcome to Emulationworld

Forum Index | FAQ | New User | Login | Search

Make a New PostPrevious ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: welcome to the club Reply to this message
Posted byTi-BOne
Posted on11/22/08 05:54 PM



> 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]
>


-
Entire Thread
Subject  Posted byPosted On
*i made a "game" in flash  Ti-BOne11/21/08 11:51 AM
.*update.  Ti-BOne11/27/08 11:52 AM
..*Re: update.  VmprHntrD11/27/08 08:50 PM
.*thanks for trying it out. -nt-  Ti-BOne11/22/08 06:01 PM
.*Re: i made a "game" in flash  VmprHntrD11/22/08 04:29 PM
..*Re: i made a "game" in flash  Ti-BOne11/22/08 06:01 PM
.*nice! -nT-  itchyNADZ11/22/08 00:01 AM
.*Re: i made a "game" in flash  n2locarz11/21/08 07:14 PM
.*welcome to the club  newsdee11/21/08 05:53 PM
...Re: welcome to the club  Ti-BOne11/22/08 05:54 PM
..*Question about learning to make your first game  SilentAce11/22/08 04:49 AM
...*Re: Question about learning to make your first game  Ti-BOne11/22/08 05:55 PM
....*Re: Question about learning to make your first game  SilentAce11/22/08 06:04 PM
.....*OOP + some books help  newsdee11/22/08 07:01 PM
.*Re: i made a "game" in flash  SilentAce11/21/08 04:44 PM
..*Re: i made a "game" in flash  Bryzian11/22/08 09:19 AM
...*replied in wrong spot :( -nt- stuipd tired  Bryzian11/22/08 09:20 AM