Can Alice remember past actions? -
12-15-2011, 11:55 AM
I remember my professor saying that Alice could remember past actions [for example, in my game, the player is supposed to win after they have gone to three different places (being within the threshold of the objects)]. How can I make it so that the win message won't appear if you go to the third place without having been to the first two places?
I remember my professor saying that Alice could remember past actions [for example, in my game, the player is supposed to win after they have gone to three different places (being within the threshold of the objects)]. How can I make it so that the win message won't appear if you go to the third place without having been to the first two places?
you could try placing 3 if else statements inside of each other. I'm not sure now it would work but its worth a try. I've gotten 2 if/else statements working while inside of each other but 3 might be a little slow. Never know till you try
Okay, but if you do that, won't Alice think it will only give the winning speech if you are at all three places at once? And if so, would putting a "Do in order" in there fix that?
Okay, but if you do that, won't Alice think it will only give the winning speech if you are at all three places at once? And if so, would putting a "Do in order" in there fix that?
hmmm. Didn't think of that. Well it is probably a simple logic problem, and I am terrible at logic.
At the first place put an object on the ground really close to the check point. Then make the objects "is showing" false. Then make a method called "pick up object 1" place an if/else statement in the method. Then put the if/else statement inside of an infinite loop. Say "if camera is within "5 meters" of "the invisible object" then "the invisible object" move to camera, and set vehicle to camera. Do this for each of the three checkpoints. Then say if "object 1" is within "5 meters" of "object 2" (then make another if/else statement inside of that one) say if "object 2" is within "5 meters" of "object 3". Then make another if else statement inside of the second one, and say if "object 3" is within "5 meters" of object "object 1" then "give prize"
I know this may be difficult to understand. If you have any questions about it feel free to ask
No, no, no. What you need to do is create three booleans. There's a button that says "New variable" under world's properties. Those can be used in if/else statements in the event list.
[COLOR=e4eaf2]Your text here[/COLOR]
Come on, you know you want to try it.