Balls in a box.
MattVollet
Member Posts: 86
Hey all! I'm having a small problem with my new title. I am trying to have a few balls bounce around in a fricitonless box. All starts out okay, but over the course of about 60 seconds all of the bouncing balls even out to either bouncing on a strict X or Y axis.
I can't figure out why this is happening.. Any ideas?
I can't figure out why this is happening.. Any ideas?
Comments
Also, would it affect your gameplay if you put a slight random movement every 60 seconds?
_______________
Nesen Probe http://itunes.apple.com/us/app/nesen-probe/id377766693?mt=8
Tickle Stones http://itunes.apple.com/us/app/tickle-stones/id363484260?mt=8
Food Fight! (free) http://itunes.apple.com/us/app/food-fight/id352646643?mt=8
I hate when they stick!
(If it's useful, I ended up creating a behavior in my game something like this: if X velocity of Puck is <500 and >0, change velocity of puck to 500. if velocity of puck is >-500 and <0, change velocity of puck to -500. So whenever it's moving too slowly in either direction I bump it back up.)
Colorplay:
Thanks a lot. My balls are moving much slower than that, and are at a constant speed of either 150 or 200. Kind of a pain that this happens! Oh well, at least I know I'm not just going insane. Thanks for the info. Back to the drawing board.
Here is a demo I set up awhile back to show how to change velocity. The demo is literally "Balls in a box" haha! Let me know if this is what you are looking to do and if it works.
http://gamesalad.com/game/play/59476
I have not tested this yet to see if I have problems after 60 sec, so ill do that when I get home, but until then maybe you can check it out!
Hope it helps!
-Kyle
Set them to non moveable and clear
I like the few circle collision objects but you might also be able to add some rules to the ball that do a random change velocity (on the collide) but only do a very small change like 3 - 10 degrees or something. Then, it wouldn't get stuck bouncing.
I have not worked it all out, just thinking of ideas.