06-11-2008, 10:41 AM
|
#21 (permalink)
|
|
Experienced Member
Join Date: May 2008
Location: Colorado
Posts: 800
|
Quote:
Originally Posted by soccerfreak24
Oh, one other thing. IT seems like it'd be a bit easier to use if Play was like start/stop, that way you could start, or stop it, without moving your finger.. lol
|
That's what I had thought too.
But this game is SO small and loops so fast after it pauses it it goes to the bottom of the program loops back to the top and finds your still holding your finger down and un-pauses it again. It's really quite annoying. So I programmed it this way.
__________________
Invisible Text. =P
|
|
|
06-11-2008, 10:56 AM
|
#22 (permalink)
|
|
Experienced Member
Join Date: Mar 2007
Posts: 976
|
Quote:
Originally Posted by ShotgunSnipist
That's what I had thought too.
But this game is SO small and loops so fast after it pauses it it goes to the bottom of the program loops back to the top and finds your still holding your finger down and un-pauses it again. It's really quite annoying. So I programmed it this way.
|
Use a boolean.
Declare something like:
bool pressed = false;
Now just modify your DPad.B(Play/Pause) code to look like this:
if (!pressed && GamePad.GetState(PlayerIndex.One).DPad.B == ButtonState.Pressed)
{
your code here
pressed = true;
}
if (pressed && GamePad.GetState(PlayerIndex.One).DPad.B == ButtonState. Released)
{
pressed = false;
}
What this does is it checks for a boolean to be false when pressing the button, if its false it carries the code under it out and then makes the boolean true therefore not letting it loop again until you release the button and it makes the boolean false again.

|
|
|
06-11-2008, 11:37 AM
|
#23 (permalink)
|
|
Experienced Zuner
Join Date: Jan 2008
Posts: 156
|
Thanks, will try it
__________________
Proud Zune 80 Owner
|
|
|
06-11-2008, 11:50 AM
|
#24 (permalink)
|
|
Experienced Member
Join Date: May 2008
Location: Colorado
Posts: 800
|
Quote:
Originally Posted by LedZepp
Use a boolean.
Declare something like:
bool pressed = false;
Now just modify your DPad.B(Play/Pause) code to look like this:
if (!pressed && GamePad.GetState(PlayerIndex.One).DPad.B == ButtonState.Pressed)
{
your code here
pressed = true;
}
if (pressed && GamePad.GetState(PlayerIndex.One).DPad.B == ButtonState.Released)
{
pressed = false;
}
What this does is it checks for a boolean to be false when pressing the button, if its false it carries the code under it out and then makes the boolean true therefore not letting it loop again until you release the button and it makes the boolean false again.
|
THANKS!
Works great.
Update: This will be used to make the music run smoother as well. So just hang on while I fix this.
Okay, so now, the timer doesn't lag for 100ms every time you adjust the music or volume. And now, because the play button now does play AND pause with no annoying mistakes, the center button is essentially useless. So i'm thinking about putting a menu in when you press it (mainly so I can extend my C# experience and learn something) But i'll try to add something like changing the background or something awesome like that. =D
I'll re-upload the new version: v0.25
__________________
Invisible Text. =P
Last edited by ShotgunSnipist; 06-11-2008 at 12:13 PM.
|
|
|
06-12-2008, 06:49 AM
|
#25 (permalink)
|
|
Jr. Member
Join Date: Jan 2008
Location: Hotel California
Posts: 430
|
maybe u could add a lap counter, other than that it looks excellent. keep up the good work



|
|
|
06-12-2008, 06:52 AM
|
#26 (permalink)
|
|
Experienced Member
Join Date: May 2008
Location: Colorado
Posts: 800
|
Quote:
Originally Posted by techfreak243
maybe u could add a lap counter, other than that it looks excellent. keep up the good work
|
A lap counter? You mean like when you click it says 1 click again it says 2?
__________________
Invisible Text. =P
|
|
|
06-13-2008, 08:45 PM
|
#27 (permalink)
|
|
Zuner
Join Date: Mar 2008
Location: Illinois
Posts: 86
|
Like this function very much. Use it at the gym track for my mile run. 5 min's 39 sec


|
|
|
06-13-2008, 10:12 PM
|
#28 (permalink)
|
|
Zuner
Join Date: Sep 2007
Posts: 98
|
I just made mine, and find this =[
|
|
|
06-14-2008, 09:42 AM
|
#29 (permalink)
|
|
Experienced Member
Join Date: May 2008
Location: Colorado
Posts: 800
|
Anyone have a suggestion of what to make the middle button do?
I was thinking some kind of menu, But I don't know what to put in it.
__________________
Invisible Text. =P
|
|
|
06-14-2008, 09:58 AM
|
#30 (permalink)
|
|
Support Team Expert Zuner
Join Date: Nov 2007
Posts: 3,027
|
Quote:
Originally Posted by ShotgunSnipist
Anyone have a suggestion of what to make the middle button do?
I was thinking some kind of menu, But I don't know what to put in it.
|
Lap Function is a good idea... but I'm set with w/e now that I can play/pause easily. ;D
__________________


|
|
|
06-14-2008, 05:55 PM
|
#31 (permalink)
|
|
Experienced Member
Join Date: May 2008
Location: Colorado
Posts: 800
|
So by lap do you guys mean like you press the button it saves the time you press it again it saves that time?
So after like 3 laps it says this?
Total: 00.38.06
lap one: 00.02.36
lap two: 00.07.03
lap three: 00.28.27
(This is how my running would look. lol)
__________________
Invisible Text. =P
|
|
|
06-17-2008, 08:05 PM
|
#32 (permalink)
|
|
Zewbie
Join Date: Jun 2008
Posts: 1
|
returning back to main screen?
How do you return to the main screen after using the stop watch?
|
|
|
06-17-2008, 10:12 PM
|
#33 (permalink)
|
|
Experienced Member
Join Date: May 2008
Location: Colorado
Posts: 800
|
Quote:
Originally Posted by thecolourpink...
How do you return to the main screen after using the stop watch?
|
Hold back for 4 seconds.
__________________
Invisible Text. =P
|
|
|
06-19-2008, 09:58 AM
|
#34 (permalink)
|
|
Experienced Zuner
Join Date: May 2008
Posts: 182
|
This stopwatch is pretty, haha. Oh gosh, my Zune comes back to me from repair TOMORROW and then I can use all the spiffy new stuff that popped up as soon as it went kaput.

|
|
|
06-19-2008, 05:23 PM
|
#35 (permalink)
|
|
Zune Priest
Join Date: May 2008
Location: Planet Bob
Posts: 7,081
|
Hmmm....Pretty neat. I always have my watch with one already on it, but that withstanding, a useful app.
|
|
|
06-24-2008, 02:52 AM
|
#36 (permalink)
|
|
Squirt
Join Date: Dec 2007
Posts: 12
|
Great app. I've got a couple suggestions if you'd like:
First off, the skip keys are "backwards" (ie left should skip back and right should skip forwards).
Next, the volume's a bit funny. It's a bit annoying that it sets your current volume as "max", so you have to first turn up your Zune's volume before entering the app. The volume jumps are also a bit too large; if you could implement something similar to the Zune's native volume controls, that would be mighty good.
Finally, if you're missing something for the middle button, might I suggest that you put in some sort of music play/pause feature, either on the original play/pause button (and then put the timer play/pause on the middle button) or on the middle button (and keep the timer play/pause button the same).
Finally, I don't know if there's a way to turn the screen/backlight off, but if there is that'd be great, as if you're timing for extensive periods, I'd imagine it's quite a drain on the battery life.
Great work so far, though! Thanks so much (I've been using this timer for running, which is great, because I don't need to bring a watch now).
|
|
|
06-24-2008, 08:50 AM
|
#37 (permalink)
|
|
Experienced Member
Join Date: May 2008
Location: Colorado
Posts: 800
|
Quote:
Originally Posted by Browncoat
Great app. I've got a couple suggestions if you'd like:
First off, the skip keys are "backwards" (ie left should skip back and right should skip forwards).
Next, the volume's a bit funny. It's a bit annoying that it sets your current volume as "max", so you have to first turn up your Zune's volume before entering the app. The volume jumps are also a bit too large; if you could implement something similar to the Zune's native volume controls, that would be mighty good.
Finally, if you're missing something for the middle button, might I suggest that you put in some sort of music play/pause feature, either on the original play/pause button (and then put the timer play/pause on the middle button) or on the middle button (and keep the timer play/pause button the same).
Finally, I don't know if there's a way to turn the screen/backlight off, but if there is that'd be great, as if you're timing for extensive periods, I'd imagine it's quite a drain on the battery life.
Great work so far, though! Thanks so much (I've been using this timer for running, which is great, because I don't need to bring a watch now).
|
As for the right and left being reversed I had no idea.
I'll fix the volume adjuster.
I was planning on making a menu when you center click. Maybe to control what plays and such.
And, No there is no way to turn off the back light. XNA (currently) Forbids it.
__________________
Invisible Text. =P
|
|
|
06-29-2008, 06:28 AM
|
#38 (permalink)
|
|
Squirt
Join Date: May 2008
Posts: 10
|
This is excellent!
great work.
Just one suggestion, could you please have like a time view as well at the bottom.
I'm tired of checking the seconds section and hours section every time and not say the time properly. for example, like 1:11:27:19
Hrs:minutes:seconds:milliseconds
And maybe another suggestion. Music playback while using the app.
|
|
|
07-02-2008, 06:12 PM
|
#39 (permalink)
|
|
Squirt
Join Date: Jul 2008
Posts: 13
|
thank you the stop watch came in handy

|
|
|
07-02-2008, 08:05 PM
|
#40 (permalink)
|
|
Zewbie
Join Date: Jul 2008
Posts: 1
|
Thanxx
Wow. Thanks alot really nice app to have
|
|
|
|