Alice Community  

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

Reply
 
Thread Tools Display Modes
Desperatley Need Some Help! :o
Old
Cindy
Guest
 
Status:
Posts: n/a
Default Desperatley Need Some Help! :o - 04-29-2010, 10:30 AM

me and my partner are doing a sort of pac-man game on alice.
the problem is we cant get the lollipops to disappear when she goes through them.
How can we fix it??
we already tried to use if/else statements, set the isShowing tablet thing to false, and put the opacity to 0 and it just doesnt want to go away!
Any suggestions??
We would really appreciate any help!
thanks.
Cindy&partner.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 04-29-2010, 01:06 PM

So you don't like having to click on them anymore? Good. I didn't like it either.

You'd need an infinite loop that constantly checks to see if your pac-man is within a certain distance (usually the character's width) of the lollipop. Implement that, and your only problem will be game speed, which I'll address after you've gotten this.


(')>
   
Reply With Quote
Old
Cindy
Guest
 
Status:
Posts: n/a
Default 04-30-2010, 10:09 AM

your a genius! thank you so much!
yeah we didnt like it either, it just wasnt fun. It seemed weird..
Well we will try it out then see what happens.
   
Reply With Quote
Old
Cindy
Guest
 
Status:
Posts: n/a
Default 04-30-2010, 10:12 AM

oh my your game is soooooooooooo cooool!
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 04-30-2010, 04:35 PM

If you want you can see how I did it on my version of your game as an example. Also, in order to make it lag less, just add a "Wait 0.1 seconds" in the text for when you are not within a certain distance of the lollipop. That way it will only check ever 0.1 seconds and cause much less lag, yet still be fast enough to detect the collision instantly.


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
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 04-30-2010, 04:59 PM

Quote:
Originally Posted by Dameria View Post
If you want you can see how I did it on my version of your game as an example. Also, in order to make it lag less, just add a "Wait 0.1 seconds" in the text for when you are not within a certain distance of the lollipop. That way it will only check ever 0.1 seconds and cause much less lag, yet still be fast enough to detect the collision instantly.
Great idea, D.


(')>
   
Reply With Quote
Old
Cindy
Guest
 
Status:
Posts: n/a
Default 04-30-2010, 06:41 PM

Didnt you just like take our idea and is calling it your own?
It seems like the same thing we had but all you did was add some more stuff to it. It would be like if we took one of your games and just added a few more things and called it our own.
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 04-30-2010, 10:38 PM

Well the thing is, you didn't really have a lot before I started to edit it. I took your outline and completely rearranged it into my own format. For example I took out the arrow keys moving the person, and the clicking of the lollipops. I kept the maze itself (the one that came with Alice anyways) and the person, but I also added collision detection and a lot of other features that yours did not have, so I do feel comfortable saying that it is my program. I agree that it was your idea, but I still made it into my own version of your idea. You can still make your project, and you can use any part of the world that I made to help guide you. I was just so proud of what I created from your program that I wanted to publish it in another 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
dameria's version
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Default dameria's version - 05-01-2010, 09:05 AM

I agree that Dameria's version is very different and if you publish things on the community then expect them to maybe get modified by other people, you have no copyrights over it and Dameria credited you anyway in it. I think other people editing stuff is quite useful sometimes. I have edited stuff, even Dameria's stuff and gave credit. Anyway, this means that you can edit Dameria's version and give thanks to Dameria in the published thread.


█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [-]
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 05-01-2010, 10:44 AM

I was actually talking about his collision detection lag idea. The game itself I knew was originally your idea, but improved by Dameria.


(')>
   
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.