Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Where am i going wrong here?
Old
pikemeister
Junior Member
 
Status: Offline
Posts: 8
Join Date: Jun 2011
Location: Australia
Default Where am i going wrong here? - 06-08-2011, 12:30 AM

Short Alice Game: Wolf and Rabbit

Storyline: Wolf responds to <-- , --> and ^ arrows.

-If the wolf gets to within 4 mtrs in front of Rabbit, Rabbit goes down 0.5m
-If wolf moves to position greater than 4m from rabbit, rabbit comes up 0.5m
- If wolf can get behind roger and get close enough the wolf turns its head, rabbit says oh no and wolf eats rabbit.

I can't figure out how to make this work. So far i have :

if husky dist. in front of bunny <4
bunny move down 0.5m
Else
Do nothing

If husky distance behind bunny >4
bunny move up 0.5m
Else
Do nothing


I press play and the bunny moves straight down. I have spent 10 hours trying everything possible but i can't figure out how to get it done. Any help would be greatly appreciated
   
Reply With Quote
Old
ElectricKirby
Senior Member
 
ElectricKirby's Avatar
 
Status: Offline
Posts: 164
Join Date: May 2011
Location: Dreamland, Planet Popstar
Default 06-08-2011, 09:00 AM

The wolf is probably within the allotted area. Try this:

Event: When the world starts, [method: printDistance]

world.printDistance:

print {{[husky]'s distance in front of [rabbit]} as a string}


When you run the world, it will tell you the starting distance between the two.


My Favorite Resources:
Uploading Images - http://tinypic.com/

File Sharing - http://www.4shared.com/

Textures - http://www.filterforge.com/

Convertible Game-Ripped Models - http://models-resource.com/

Music - http://www.brawlcustommusic.com/gamelist
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,143
Join Date: Dec 2010
Location: The Twilight Zone!
Default 06-08-2011, 12:10 PM

Although it appears as though you've already recieved help, if what he/she said doesn't work, then upload your animation, and I will take a look at it because I didn't understand what you needed help with.


██████████████████████
█░░░░░░░░░░░░░░░░░░░░█
█░▓▓▓▓░░░▓░▓░▓░░▓▓▓▓░█
█░▓░░░▓░░▓░▓░▓░░▓░░░░█
█░▓▓▓▓░░░▓░▓░▓░░▓▓▓░░█
█░▓░░░░░░▓░▓░▓░░▓░░░░█
█░▓░░░░░░░▓░▓░░░▓░░░░█
█░░░░░░░░░░░░░░░░░░░░█
██████████████████████

________________

Alice Hater? Rant Here!: http://tinyurl.com/HateAlice
   
Reply With Quote
Old
pikemeister
Junior Member
 
Status: Offline
Posts: 8
Join Date: Jun 2011
Location: Australia
Default 06-08-2011, 11:36 PM

now im just completely stuck. I have no idea how to even start this game or how I go about it. I want my wolf to walk in front of the bunny, once its within 4m i want the bunny to go down 0.5m.... then after the wolf walks more than 4m behind the bunny i want the bunny to come up 0.5m and thats it. Then the wolf crawls up behind the bunny and eats it.

How do i start this code from the start. I'm so stuck
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,143
Join Date: Dec 2010
Location: The Twilight Zone!
Default 06-15-2011, 09:06 AM

Pikemeister has asked that I post the download link for his game, so here it is. Click here to see it.


██████████████████████
█░░░░░░░░░░░░░░░░░░░░█
█░▓▓▓▓░░░▓░▓░▓░░▓▓▓▓░█
█░▓░░░▓░░▓░▓░▓░░▓░░░░█
█░▓▓▓▓░░░▓░▓░▓░░▓▓▓░░█
█░▓░░░░░░▓░▓░▓░░▓░░░░█
█░▓░░░░░░░▓░▓░░░▓░░░░█
█░░░░░░░░░░░░░░░░░░░░█
██████████████████████

________________

Alice Hater? Rant Here!: http://tinyurl.com/HateAlice
   
Reply With Quote
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,186
Join Date: May 2010
Location: e4eaf2
Default 06-15-2011, 09:51 AM

Just wondering, are you in any way related to this guy?


Thank you for taking the time to read this signature. This signature loves you.
   
Reply With Quote
Old
pikemeister
Junior Member
 
Status: Offline
Posts: 8
Join Date: Jun 2011
Location: Australia
Default 06-15-2011, 10:12 PM

no? who's that?
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,143
Join Date: Dec 2010
Location: The Twilight Zone!
Default 06-16-2011, 08:50 AM

Quote:
Originally Posted by DensetsuNoKaboom View Post
Just wondering, are you in any way related to this guy?
Nope. There are two people that I know personally on the Alice Community Forums, and they never use their account.


██████████████████████
█░░░░░░░░░░░░░░░░░░░░█
█░▓▓▓▓░░░▓░▓░▓░░▓▓▓▓░█
█░▓░░░▓░░▓░▓░▓░░▓░░░░█
█░▓▓▓▓░░░▓░▓░▓░░▓▓▓░░█
█░▓░░░░░░▓░▓░▓░░▓░░░░█
█░▓░░░░░░░▓░▓░░░▓░░░░█
█░░░░░░░░░░░░░░░░░░░░█
██████████████████████

________________

Alice Hater? Rant Here!: http://tinyurl.com/HateAlice
   
Reply With Quote
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,186
Join Date: May 2010
Location: e4eaf2
Default 06-16-2011, 12:26 PM

I was wondering because it seems you two had the exact same question...


Thank you for taking the time to read this signature. This signature loves you.
   
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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.