Alice Community  

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

Reply
 
Thread Tools Display Modes
Can't Get my Frogger game to Work!!!
Old
ieges
Guest
 
Status:
Posts: n/a
Default Can't Get my Frogger game to Work!!! - 04-21-2011, 12:46 PM

I spent a long time on this . I set up a frogger game where a chicken is trying to reach the gumdrops on the other side of the road. Everything goes well but when the chicken gets hit by a car it doesn't launch my "splat" method. See attachment.

-Spike
Attached Files
File Type: a2w Chicken Run.a2w (1.18 MB, 19 views)
   
Reply With Quote
Old
reuben2011
Senior Member
 
reuben2011's Avatar
 
Status: Offline
Posts: 489
Join Date: Sep 2009
Location: Hawaii
Default 04-21-2011, 06:57 PM

Ok, what I did is I separated the if/else statements concerning the chickens distance to the cars and the cars movement and I put each if the if sections in their own infinite loop. The problem before was that your game was only checking for a collision at the beginning of the game, but not throughout. Nice start though!

Also, I moved up the roads so they are not partially embedded in the ground anymore.
Attached Files
File Type: a2w Chicken Run.a2w (1.22 MB, 118 views)


Projects
-Escape the Kitchen
-That ninja animation
-Hill Collision

Upcoming Projects
-Some penguin adventure game?
   
Reply With Quote
Old
ieges
Guest
 
Status:
Posts: n/a
Default 04-21-2011, 08:32 PM

How could I miss that :P

Thank you a ton for your help!

-Spike
   
Reply With Quote
Old
reuben2011
Senior Member
 
reuben2011's Avatar
 
Status: Offline
Posts: 489
Join Date: Sep 2009
Location: Hawaii
Default 04-22-2011, 12:09 AM

No prob.


Projects
-Escape the Kitchen
-That ninja animation
-Hill Collision

Upcoming Projects
-Some penguin adventure game?
   
Reply With Quote
Reply


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