Alice Community

Alice Community (
-   Works-In-Progress (
-   -   Frogger game.. pleasee help me!!! (

ilikepie 01-10-2013 06:00 PM

Frogger game.. pleasee help me!!!
1 Attachment(s)
Hi my program that makes the frog go onto the carrier will not work when i go close to the water (blue sqaure blocks its diesnt send me back). What i was trying to do was make my frog jump on to the moving carrier and on to the next one and so on but i cant.. And my car collision doesn't work for some odd reason..Thanks for reading my plead for help!! :confused:

bob3583 01-12-2013 12:26 AM

I'll help, although I'm not sure I WILL be of any help.

bob3583 01-12-2013 12:46 AM

You know what? I can't. It kept locking my computerm, and you do it so diferently than me, I would have to gut it of all its programming. Sorry, but I can't help.:mad:

chickentree 01-21-2013 06:03 PM

Sorry, but you need to rewrite this I am not sure what you are attempting to do and I can't spend time going through all the methods to figure it out.

Now for the help!

If you right click on the "When the world starts" event you can change it to "while the world is running" which is a BDE (Begin, During, End) event. [INDENT]Begin: Put a method here to take care of anything you want to do when the movie starts.[/INDENT][INDENT]During: The method you put here should cause your traffic to move. It will be called over and over again as long as the movie is running, so you don't need a loop.[/INDENT][INDENT]End: Any "clean-up needed before the movie ends should go here.[/INDENT]
Now go back to your code and get rid of all the infinite loops. Using these in a method pretty much stops any other methods (not events) from running.
Put the code into the methods you will use in the BDE event.
Next look for when the scores need to be updated. For instance if the only time the score can change is when the frog moves, write a score method and call it in each of the frog movement methods.

Hope this helps

All times are GMT -5. The time now is 03:59 AM.

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