Alice Community  

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

Reply
 
Thread Tools Display Modes
Problem with counters skipping "hits" in torus catch game
Old
todd0312
Member
 
todd0312's Avatar
 
Status: Offline
Posts: 35
Join Date: Sep 2011
Default Problem with counters skipping "hits" in torus catch game - 11-13-2011, 05:17 AM

Hello everyone:

I am having an issue with my counters.

I have a game where the user moves a cone with his/her mouse - to catch some toruses falling from the sky. When a torus is caught, the color of both the cone and torus change. The problem is this:

My counters are skipping numbers. For example, I will miss a torus, when the counter is at 2, but no increment occurs in the "Missed counter". I miss again, and the counter skips 3 and moves to 4. The same thing is occurring with my "Caught" counter. It is very random, and I can't figure out what the problem is. SOMETIMES - it works fine, other times not. It's very random as to which number counts are skipped. It does usually occur when I make 2 catches in a row; the 2nd catch will not count. But on the 3rd catch, the counter will "skip 2" and move to "3". Occasionally, catches will not count at all.

It may be my conditions. I am really not sure.

I have attached the program - if someone (or someones) could take a look at this, I would greatly appreciate.

Thanks,

Todd
Attached Files
File Type: a2w Lab 4.a2w (253.4 KB, 23 views)
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 11-13-2011, 06:24 AM

I think I know what the problem is already, but i'll check it out to make sure, but im guessing it is the duration of the counter incrementation time(well the reprensentation of it atleast) but i'll look at it now since it downloaded


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 11-13-2011, 06:34 AM

okay, in your missed method, when you have it increment the missed counter by 1, the .2 second duration you have on it is screwing it up, it might work for you if you just delete that and replace it with the orignial bit of code (just drag the variable over, then select increment by 1) then leave it at that


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,188
Join Date: May 2010
Location: e4eaf2
Default 11-13-2011, 08:15 AM

Also, when 3D text sets itself to a new text it takes 1 second by default.


Thank you for taking the time to read this signature. This signature loves you.
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 11-13-2011, 09:02 AM

Quote:
Originally Posted by DensetsuNoKaboom View Post
Also, when 3D text sets itself to a new text it takes 1 second by default.
They already had that changed, they just had the duration of the increment wrong


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
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 ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.