The Daily Click ::. Forums ::. Klik Coding Help ::. 4 direction bouncing ball
 

Post Reply  Post Oekaki 
 

Posted By Message

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
26th September, 2008 at 02:37:01 -

Is this possible? im making a reall reall quick game and cant be bothered with some long arse Ai engine so i wanted to use the bouncing ball for the enemy movment, but it wont let me use just up down left and right, it keeps throwing diagnals out at me. MMF2 btw. anyone know how to stop it?

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
26th September, 2008 at 02:48:43 -

always
-> set "Ball" direction to direction / 8 * 8

It might be a bit jittery when trying to go diagonally, in which case you should limit how often you change where the enemy should look.

Image Edited by the Author.

 
n/a

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
26th September, 2008 at 03:15:24 -

I think somewhere in the movement options and such, there's an option where you could only pick which ways you want it to move. I'm not sure if that was abandoned since the KNP days.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
26th September, 2008 at 11:07:30 -

It's there but the minimum is 8 directions.

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
26th September, 2008 at 12:44:30 -

i know in some of the movements you can set usable directions at the start of frame in the event editor but not sure if ball is one of them...

 
n/a
   

Post Reply



 



Advertisement

Worth A Click