Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Share Worlds (http://www.alice.org/community/forumdisplay.php?f=6)
-   -   Maze Game (http://www.alice.org/community/showthread.php?t=4301)

Dameria 04-26-2010 04:49 PM

Maze Game
 
1 Attachment(s)
I was asked for help by a student a few days ago to help them with their maze, and because I have always wanted to implement my method of collision detection into one of my worlds, I decided this would be the first real game for me to test it. This is the same game that is on the other thread, except with one exception. I did fix the clicking problem that most of you wanted me to. I made it so that the lollipops can be picked up as soon as you go over them, so there is no need to click them now. As I fixed this problem, it also fixed the bug to give you 15 points for every lollipop collected, so to make it even I made the time bonus set at 50 and count down by 1 every 3 seconds. Now you will not get the most points simply by going straight to the end of the maze, and you will actually have to get all the lollipops for the highest possible score.

So download it if you would like, the only reason I am making another post is because it will not become very popular unless it is on the Share Worlds section. Even though the maze was originally made by Cindy, before the changes that I made, it was just the maze, rockette, and a simple method to click lollipops. I believe that I have made enough changes in it to call it my own.

So, how do you like the collision detection? I know it is a little laggy, but that is only because there are more than 50 objects that rockette has to collide with. Also, if it is too laggy on Alice 2.2 for you, try running it on Alice 2.0 and it should run a little easier.

EDIT: Over 1000 downloads! Nice! For a more advanced collision detection to use for larger programs where more walls are needed with less lag, click [URL="http://alice.org/community/showthread.php?t=6255"]HERE[/URL]!

dominator15 05-04-2010 08:59 PM

Still need help
 
1 Attachment(s)
Hey, can you just do it for me please, but don't mess anything that doesn't need to be modded. Also, if the copter touches another object that's not a point circle, just make a miniature explosion. I've got everything else down though, so just that.
[ATTACH]2895[/ATTACH]:cool:
[EMAIL="dominator.tarro@gmail.com"]dominator.tarro@gmail.com[/EMAIL]

Dameria 05-04-2010 09:10 PM

[QUOTE=dominator15;20794]Hey, can you just do it for me please, but don't mess anything that doesn't need to be modded. Also, if the copter touches another object that's not a point circle, just make a miniature explosion. I've got everything else down though, so just that.[/QUOTE]

Please send me a private message for this type of stuff. I want this thread to be about the maze game that I created. Also, I am too busy to do any of your schoolwork, so try to figure it out yourself from what I have done.

patsito92 10-05-2010 01:52 PM

I am impressed
 
Pretty interesting. You have done the impossible possible. Congratulations.
May I use your code in one of my games? Thank you very much.
EDIT:
Also, I have two doubts about the timer and the score. The 1st one is in the world.startTimer method in the third "if(both world.bonus is geater than 0 and Variable 3Seconds==3:
decrement world.bonus by 1
3seconds set value to 1
Else
increment 3seconds by 1)"
How does that affect the timer and the score?
The 2nd one is, how does the game measure how many bonus points to give you according to your time? I think this question must be related to the first one.
Please reply as soon as possible.
Thanks.

Dameria 10-05-2010 04:11 PM

Sure you can use the method inside of your program. I'm not so sure about that first question, its been a while since I made that program and I don't feel like looking back at it. The second question though, I just made the bonus at a set number, like 50 or something, and every 3 seconds or so that you are in the maze the bonus goes down by 1 point, so if you spend 30 seconds in it before you finish, your bonus will be 40 points. If you spend 60 seconds, your bonus would be 30, and so on until you have spent 2 and half minutes in the maze, then the bonus just stops at 0. (These numbers might not be what I actually used in the game, but it is the same concept)

patsito92 10-05-2010 11:33 PM

Thanks
 
[QUOTE=Dameria;26174]Sure you can use the method inside of your program. I'm not so sure about that first question, its been a while since I made that program and I don't feel like looking back at it. The second question though, I just made the bonus at a set number, like 50 or something, and every 3 seconds or so that you are in the maze the bonus goes down by 1 point, so if you spend 30 seconds in it before you finish, your bonus will be 40 points. If you spend 60 seconds, your bonus would be 30, and so on until you have spent 2 and half minutes in the maze, then the bonus just stops at 0. (These numbers might not be what I actually used in the game, but it is the same concept)[/QUOTE]

Thanks for the quick answer. I will spend some time to try to figure out the 1st question. And for the second answer, it helped me a lot. Also, thanks for sharing the code. I will give you credit.

Owens81 11-29-2010 07:23 PM

Viewpoints
 
I noticed that you added the view options for first and third person viewpoints to the maze, but I can not get it to work for the first or third person view. Is there anyway I could try playing the game in first person?
Thanks and it looks amazing!

Dameria 11-30-2010 05:44 PM

[QUOTE=Owens81;28959]I noticed that you added the view options for first and third person viewpoints to the maze, but I can not get it to work for the first or third person view. Is there anyway I could try playing the game in first person?
Thanks and it looks amazing![/QUOTE]

I guess that if you change my program so that the camera is inside the place where the girl's head is, and you make the camera vehicle to the girl, then it would be first person. Third person I gave up on because the camera would sometimes be going through a wall so that you cannot even see the girl, but I guess that if you put the camera above the hedges and still faced towards the girl, then it would still work and you could have it that way if you want. Just move the camera to anywhere you want and change the "vehicle" option's value to "Rockette".

TheWhiteGuy 03-31-2011 12:27 PM

ok so i looked at the collision in this game and i cant quite figure it out do u think u can post how to make it because i cant make it so that "the distance to wall" but i cant insert it where it needs to go (srry its hard for me to explain)

sashu545 12-22-2011 07:29 PM

[QUOTE=Dameria;20380]I was asked for help by a student a few days ago to help them with their maze, and because I have always wanted to implement my method of collision detection into one of my worlds, I decided this would be the first real game for me to test it. This is the same game that is on the other thread, except with one exception. I did fix the clicking problem that most of you wanted me to. I made it so that the lollipops can be picked up as soon as you go over them, so there is no need to click them now. As I fixed this problem, it also fixed the bug to give you 15 points for every lollipop collected, so to make it even I made the time bonus set at 50 and count down by 1 every 3 seconds. Now you will not get the most points simply by going straight to the end of the maze, and you will actually have to get all the lollipops for the highest possible score.

So download it if you would like, the only reason I am making another post is because it will not become very popular unless it is on the Share Worlds section. Even though the maze was originally made by Cindy, before the changes that I made, it was just the maze, rockette, and a simple method to click lollipops. I believe that I have made enough changes in it to call it my own.

So, how do you like the collision detection? I know it is a little laggy, but that is only because there are more than 50 objects that rockette has to collide with. Also, if it is too laggy on Alice 2.2 for you, try running it on Alice 2.0 and it should run a little easier.

EDIT: Over 1000 downloads! Nice! For a more advanced collision detection to use for larger programs where more walls are needed with less lag, click [URL="http://alice.org/community/showthread.php?t=6255"]HERE[/URL]![/QUOTE]

Hye, when I press play. The rockette just move forward very qucikly and then disappears. Please help


All times are GMT -5. The time now is 12:40 AM.

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