Alice Community  

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

Reply
 
Thread Tools Display Modes
Get my frog to jump on lilly pads (vehicles)
Old
slba34g
Guest
 
Status:
Posts: n/a
Default Get my frog to jump on lilly pads (vehicles) - 12-15-2009, 06:53 PM

Hello,

I am working on my final project and need some help. I am supposed to get the 5 lilly pads to move across the pool randomly (which they do) and have the frog jump on the lilly pads. If he misses the game should be over, if he makes it across all of them then the player wins (similar to frogger). Can someone please look at my attachment and tell me if you see something obvious that I am doing wrong? I am not looking for the answer, just a push in the right direction. Thanks in advance for you taking the time to look!
Attached Files
File Type: a2w frogGame2.a2w (581.8 KB, 218 views)
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 12-15-2009, 07:19 PM

Sorry, but I actually wanted to do it myself. This is actually a fun game! Click the link to see the changes I made.

The main thing I did was to make the if/else statements for vehicles at the end of the frogJump method. Also, I don't know why you have turn left, right, backwards thing, because you really only need to jump forward. I made a few other minor changes (like making the frog a little higher up so his feet were not invisible to the pads as he landed, and now the lose/win text appear better, just fixed where they were located is all, and some other minor things.)

Also, you might want to changed the way that your lillie pads move around. It is very easy for you to just wait until the pads all stop at each side of the water and then jump.

Other than that, I made everything work, I hope you like it! If you feel like this is cheating, then you can just use it as reference and make your own copy using my ideas, but I just wanted to show you how I would have made it so it will work. Tell me what you think please.

I renamed it frogGame2.1 so that it will not overright the one you made when you save it.
Attached Files
File Type: a2w frogGame2.1.a2w (625.7 KB, 574 views)


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Reply to frog jumping
Old
slba34g
Guest
 
Status:
Posts: n/a
Default Reply to frog jumping - 12-15-2009, 07:33 PM

This is exactly what I want mine to do! For some reason when I opened up the file, it does not show me anything that you changed. I can play the game perfectly, but can not see any of your work to reference so I can fix mine. You are obviously pretty skilled at this
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 12-15-2009, 07:36 PM

Sorry, maybe I should have added some comments, but if you see in the main method there should no longer be the long list of if/elses to change the vehicles. That is really the main change that should now be in the frogJump method. If you are for some reason seeing the if/else statements still in the main method as if nothing has changed, then I don't know the problem maybe it is just a glitch, but as long as it still works that should be the important thing.

EDIT: Woot, 150th post!!!


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
slba34g
Guest
 
Status:
Posts: n/a
Default 12-15-2009, 07:39 PM

THANK YOU!!! I see everything now.
   
Reply With Quote
Old
jfranco77
Guest
 
Status:
Posts: n/a
Default 12-10-2010, 11:53 AM

i don't know what;s wrong but i can't open this file it says im not logged in when i know i am hence i am mesaging you and am having similar problems


Quote:
Originally Posted by Dameria View Post
Sorry, but I actually wanted to do it myself. This is actually a fun game! Click the link to see the changes I made.

The main thing I did was to make the if/else statements for vehicles at the end of the frogJump method. Also, I don't know why you have turn left, right, backwards thing, because you really only need to jump forward. I made a few other minor changes (like making the frog a little higher up so his feet were not invisible to the pads as he landed, and now the lose/win text appear better, just fixed where they were located is all, and some other minor things.)

Also, you might want to changed the way that your lillie pads move around. It is very easy for you to just wait until the pads all stop at each side of the water and then jump.

Other than that, I made everything work, I hope you like it! If you feel like this is cheating, then you can just use it as reference and make your own copy using my ideas, but I just wanted to show you how I would have made it so it will work. Tell me what you think please.

I renamed it frogGame2.1 so that it will not overright the one you made when you save it.
   
Reply With Quote
hi lads
Old
kammarila
Junior Member
 
Status: Offline
Posts: 2
Join Date: Dec 2011
Default hi lads - 12-09-2011, 09:56 AM

Thanks for all the help,especially to Dameria! I made the game a little bit complicated,now its got 5 levels ,depending on the speed the lilipads are moving around,in each level the player has three lives for the frog. I changed as well some minor things:if the frog is moving left or right on the lilipad,it may fall and sink in the pool.Feel free to work from this point,still I did not change the fact that indeed is easier to jump when all the lilipads are near the edge or the pool.Enjoy!
PS English is not my first language so pardon me for the mistakes.
Attached Files
File Type: a2w CrazyFrog.a2w (901.8 KB, 37 views)
   
Reply With Quote
Old
InsertName
Senior Member
 
InsertName's Avatar
 
Status: Offline
Posts: 341
Join Date: Jun 2011
Location: In a house
Default 12-09-2011, 05:29 PM

Quote:
Originally Posted by kammarila View Post
Thanks for all the help,especially to Dameria! I made the game a little bit complicated,now its got 5 levels ,depending on the speed the lilipads are moving around,in each level the player has three lives for the frog. I changed as well some minor things:if the frog is moving left or right on the lilipad,it may fall and sink in the pool.Feel free to work from this point,still I did not change the fact that indeed is easier to jump when all the lilipads are near the edge or the pool.Enjoy!
PS English is not my first language so pardon me for the mistakes.
wut?
I dunno about this guy, you're not the same person that made the original are you?


__№_₤⅞__
Handguns: http://www.alice.org/community/showthread.php?p=45349
MINECRAFT IN ALICE: http://alice.org/community/showthread.php?p=48208
My Stupid Animations: http://alice.org/community/album.php?albumid=119
   
Reply With Quote
No
Old
kammarila
Junior Member
 
Status: Offline
Posts: 2
Join Date: Dec 2011
Default No - 12-11-2011, 05:48 AM

No,I am not the same guy.But I felt I needed to say thank you as I had the same project for college ,a bit modified and as a starting point I used Dameria's work.
   
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.