The Daily Click ::. Forums ::. Klik Coding Help ::. Break Out Clone / Choco Break
 

Post Reply  Post Oekaki 
 

Posted By Message

MasterM



Registered
  02/01/2002
Points
  701

I am an April Fool
19th May, 2011 at 09:43:07 -

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


 
Image

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
19th May, 2011 at 13:14:39 -

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.

//EE


 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

nim



Registered
  17/05/2002
Points
  7233
19th May, 2011 at 13:34:28 -

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.

edit:
http://www.create-games.com/forum_post.asp?id=274538&show=all#post_274575



Edited by nim

 
//

Yai7

Peace & Love

Registered
  28/01/2002
Points
  3179

19th May, 2011 at 13:59:17 -

I'll ask my cat.

 
(=

MasterM



Registered
  02/01/2002
Points
  701

I am an April Fool
19th May, 2011 at 14:00:23 -

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?

 
Image
   

Post Reply



 



Advertisement

Worth A Click