Page 1 of 1

Need Help With Random Movement

PostPosted: Sat Nov 05, 2011 7:55 pm
by PatronPM
I want an actor to move in a random bouncing pattern within a square area (like a ball in jezzball would, or perhaps like a tamogochi would move within its pen). I'm imagining that I will create a square actor, put the small character actor within it and then have to script out what happens every time the internal actor collides with a wall. I can do it so the character bounces back and forth, just not in a more "random" way. Thanks!

Re: Need Help With Random Movement

PostPosted: Sat Nov 05, 2011 8:05 pm
by NERDnotGEEK
Not totally sure what you wanted so I made an example with two modes. press the packman to toggle between them :) hope this helps
wallrandexample.zip
(5.61 KiB) Downloaded 87 times

Re: Need Help With Random Movement

PostPosted: Sun Nov 06, 2011 1:10 am
by PatronPM
you hit the nail right on the head, thank you so much.