Alice Community  

Go Back   Alice Community > Alice 2 > Share Worlds

Reply
 
Thread Tools Display Modes
New to alice.. Anyone have a world like this?
Old
sarah527
Junior Member
 
Status: Offline
Posts: 1
Join Date: Nov 2011
Question New to alice.. Anyone have a world like this? - 11-18-2011, 12:38 AM

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...

"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."


Thanks

Last edited by sarah527; 11-18-2011 at 07:55 PM.
   
Reply With Quote
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,188
Join Date: May 2010
Location: e4eaf2
Default 11-18-2011, 04:22 PM

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


Thank you for taking the time to read this signature. This signature loves you.
   
Reply With Quote
Old
dakota95
Senior Member
 
dakota95's Avatar
 
Status: Offline
Posts: 426
Join Date: Aug 2011
Location: like I would tell you. ;)
Cool 11-22-2011, 02:41 PM

just make them walk towards eachother to start. Then one of them turn and both walk again
   
Reply With Quote
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,188
Join Date: May 2010
Location: e4eaf2
Default 11-23-2011, 01:47 PM

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


Thank you for taking the time to read this signature. This signature loves you.
   
Reply With Quote
Old
davidghemer
Member
 
Status: Offline
Posts: 38
Join Date: Nov 2011
Default 11-29-2011, 03:14 AM

Use the distance to function to measure the distance between the two people and store this in a variable, dist.

Then move the two people dist/2 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).


For video tutorials on programming in Alice 2.2 check out my YouTube channel

http://www.youtube.com/user/drdave785

Also check out my Programming in Alice blog at

http://programminginalice.com
   
Reply With Quote
Old
mdemonion
Member
 
Status: Offline
Posts: 16
Join Date: Dec 2011
Location: Netherlands
Default 12-12-2011, 07: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...
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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