Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Share Worlds (http://www.alice.org/community/forumdisplay.php?f=6)
-   -   New to alice.. Anyone have a world like this? (http://www.alice.org/community/showthread.php?t=7619)

sarah527 11-18-2011 01:38 AM

New to alice.. Anyone have a world like this?
 
[SIZE="3"]I need help with creating a world like this. Can anyone help???? It's a project from the Alice In Action With Java book, programming project 3.1. Variables need to be used so you don't have to do trial and error with the distances between objects and such. I do not understand the variables aspect of this...

[B]"Build a scene containing two people who walk toward each other from opposite sides of the screen. When they meet, they should turn and walk off together toward a building, and enter the building when they get there."[/SIZE][/B]

[SIZE="3"]Thanks :)[/SIZE]

DensetsuNoKaboom 11-18-2011 05:22 PM

I don't think it looks very hard...

dakota95 11-22-2011 03:41 PM

just make them walk towards eachother to start. Then one of them turn and both walk again

DensetsuNoKaboom 11-23-2011 02:47 PM

Apparently it requires variables to be used, which to me sounds kinda pointless in this instance.

davidghemer 11-29-2011 04:14 AM

Use the [B]distance to[/B] function to measure the distance between the two people and store this in a variable, [I]dist[/I].

Then move the two people [I]dist/2[/I] towards each other (you will need to adjust a little to leave a small amount of distance between the two people but that should be easy to do).

mdemonion 12-12-2011 08:21 AM

Wow i really like your idea of creating a world..It is so nice and it shows creativity..What I like most is your concept or we can say thinking of a scene containing two people who walk toward each other from opposite sides of the screen...


All times are GMT -5. The time now is 05:38 AM.

Copyright ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.