Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

Reply
 
Thread Tools Display Modes
Game problem
Old
Silent Adonis
Junior Member
 
Status: Offline
Posts: 9
Join Date: Jun 2011
Default Game problem - 06-20-2011, 02:31 AM

Hey There
I have a game that Im doing about a wolf and a bunny. Its very short and simple but there is one part that Im struggling with and have not been able to do. The bunny is always in his hole and when the world starts he moves down the hole automatically .35 of a meter. the wolf then moves using the arrows as events and when he gets 4 meters directly in front of the bunny, the bunny should move down .5 of a meter. then when the wolf is at a safe distance the bunny should move back up to .35 when the wolf is 4 meters away from him. The wolf sneaks behind the bunny and eats him which I have done but I cant get the move down and move up part to work. the bunny just keeps going down and down and down when I press the up arrow to move forward. I hope it makes sense.

any help would be awesome thanks
   
Reply With Quote
Old
room14
Senior Member
 
room14's Avatar
 
Status: Offline
Posts: 549
Join Date: Nov 2009
Location: Auckland New Zealand
Default 06-20-2011, 02:33 AM

post the world. that will help.


:D
   
Reply With Quote
World
Old
Silent Adonis
Junior Member
 
Status: Offline
Posts: 9
Join Date: Jun 2011
Default World - 06-20-2011, 02:35 AM

Assign 1 Rough.a2w
   
Reply With Quote
Old
Silent Adonis
Junior Member
 
Status: Offline
Posts: 9
Join Date: Jun 2011
Default 06-20-2011, 02:39 AM

I cant use variables, loops, user written functions or method parameters. I can only use ‘when the world starts’ and ‘when a key is pressed/typed.
   
Reply With Quote
Old
room14
Senior Member
 
room14's Avatar
 
Status: Offline
Posts: 549
Join Date: Nov 2009
Location: Auckland New Zealand
Default 06-20-2011, 02:41 AM

umm.. you have not connected the bunny's method to the events section


:D
   
Reply With Quote
Old
Silent Adonis
Junior Member
 
Status: Offline
Posts: 9
Join Date: Jun 2011
Default 06-20-2011, 02:46 AM

Yeah I took it out.

It looked like this though.

Method Bunny Down.

If both (wolfs foot) distance to (bunny's whiskers) < 4 and (Wolfs foot) is in front of (bunnys Whiskers)

Then, Bunny Move down .5

else
do nothing.

The bunny Up was similiar of course.

Cheers
   
Reply With Quote
Old
room14
Senior Member
 
room14's Avatar
 
Status: Offline
Posts: 549
Join Date: Nov 2009
Location: Auckland New Zealand
Default 06-20-2011, 02:47 AM

that means that the world does not play the method.


:D
   
Reply With Quote
Old
room14
Senior Member
 
room14's Avatar
 
Status: Offline
Posts: 549
Join Date: Nov 2009
Location: Auckland New Zealand
Default 06-20-2011, 02:49 AM

okay so you are not allowed to use loop? but are you allowed to use the while world is running?


:D
   
Reply With Quote
Old
Silent Adonis
Junior Member
 
Status: Offline
Posts: 9
Join Date: Jun 2011
Default 06-20-2011, 02:51 AM

Yeah I took it out on purpose haha sorry I should of kept there.

The world first can be used but not loops.
   
Reply With Quote
Old
Silent Adonis
Junior Member
 
Status: Offline
Posts: 9
Join Date: Jun 2011
Default 06-20-2011, 05:46 AM

I have tried everything I was told, its so frustrating! thanks heaps for your help. Let me know if you have any ideas.


Thanks
   
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 ©2019, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.