Need Help With Random Movement

Non-platform specific questions.

Need Help With Random Movement

Postby PatronPM » Sat Nov 05, 2011 7:55 pm

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!
PatronPM
 
Posts: 10
Joined: Wed Jul 20, 2011 12:58 am
Score: 0 Give a positive score

Re: Need Help With Random Movement

Postby NERDnotGEEK » Sat Nov 05, 2011 8:05 pm

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 86 times
NERDnotGEEK
 
Posts: 75
Joined: Sat Oct 30, 2010 1:48 am
Score: 12 Give a positive score

Re: Need Help With Random Movement

Postby PatronPM » Sun Nov 06, 2011 1:10 am

you hit the nail right on the head, thank you so much.
PatronPM
 
Posts: 10
Joined: Wed Jul 20, 2011 12:58 am
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest