The Daily Click ::. Forums ::. Klik Coding Help ::. MMF 2 randomized coordinate help
 

Post Reply  Post Oekaki 
 

Posted By Message

dndfreak



Registered
  11/01/2009
Points
  650
18th January, 2009 at 03:39:22 -

How do you use a random co-ordinate? In a small side project, I have a ball-dropping style game and I want to spawn a new ball every four seconds using the same value for y but a random x. MMF2 new object actions don't allow for formula entry, so how would I go about this?

 
Vegeta? What does your mother say about my power level?

ITS OVER 9000!!!

-J-



Registered
  05/10/2008
Points
  228

VIP MemberThe Cake is a Lie
18th January, 2009 at 04:14:09 -

+ Every four seconds

>Create "ball" at 0, Y (Layer 1)
>Ball: Set X position to: Random(Frame Width)

Replace the Y with the Y coordinate you want.

Hope it helps!

Edited by -J-

 
n/a ...

dndfreak



Registered
  11/01/2009
Points
  650
18th January, 2009 at 04:16:16 -

thanks. That's pretty good.

 
Vegeta? What does your mother say about my power level?

ITS OVER 9000!!!
   

Post Reply



 



Advertisement

Worth A Click