So I think everyone knows the Choco Break tutorial that comes with MMF. We all know that the build in bouncing ball movement isn't that great so my question is:
How would you make a custom coded version of Break Out (I know how to do the paddle lol)?
How would you code your ball and how would you handle it's movement and it's collission detection?
thanks in advance
I would use a custom 360 degree movement, use fastloops for safe movement, invert the velocity upon collision(using detectors to figure out which velocity to invert of course), plus add a minimal speed increase on collisions.
There are plentiful articles on custom movements, just check up a 360 shooting engine and you're set.
Someone made a good example recently.. I think it was Sketchy, Urbanmonk or Zephni. Or you know, one of those guys who's always making example files for people here. It was in response to Jason Orme's request for a Ball Frog 2 engine if I remember correctly.
thanks for the link. so gonna check that one out now.
i was thinking about detectors as well but how would you do that. is there a way to check a certain pixel / area of pixels of my sprite?
for example i was thinking: use a top, bottom, left and right detector so if movement -> right and right detector hits a wall it should move to the left. sure that makes sense but that way i can only get 4 lousy directions and i cant think of a way how to do 32...hell even 16 or 8 different directions / detectors. any clue?