PDA

View Full Version : Scenario help.


Spanky300
09-12-2006, 08:30 PM
Hey guys,

Strugglin big time with this assigment for school. :( We have been givin a alice file which has a wall with 3 animals behind it and we need to make the animals randomly move to 3 points (left, middle, right) and then pop up from behind the wall. It is like a target shooting game. :confused:

What do I do to set points to which they can move and how can I make them randomly move there? :eek:

Help would be much appreciated. :D :D

Mr Nemo
09-12-2006, 09:37 PM
I would suggest using something along the lines of a small invisible object for the points, like maybe a cone with is showing set to false. As for making them randomly move, you'll need a nested set of if-else statements and a random number generator. I post some code that might help you.

Mr Nemo
09-12-2006, 09:49 PM
Here's the code of which I spoke. There a couple of things you'll have to work out on your own, such as getting the objects to move to UNIQUE locations rather than moving to one or two locations only.

Star wars fan
09-21-2006, 07:42 PM
this might help with this whack a mole game I'm making just to get the hang of progrraming (I was almost done but saved over it ops) before I just had them in a square which is preety easy to predict