Path: chuka.playstation.co.uk!news From: sosman@terratron.com (Steven Osman) Newsgroups: scee.yaroze.beginners Subject: Re: --- Help me again ??? --- Date: Fri, 21 May 1999 21:33:06 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 59 Message-ID: <3746d09b.92448213@news.playstation.co.uk> References: <7i3t77$1187@chuka.playstation.co.uk> <7i4c17$1188@chuka.playstation.co.uk> NNTP-Posting-Host: 209.27.57.69 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Newsreader: Forte Agent 1.5/32.452 You are correct. The reason is because Michael sets the next clock update to be at a time when count==value (not when count>=value) Count is incrementing while the game is paused, so once count becomes greater than value, it will never be equal to it (and the clock will never update). Michael : Move your "count++;" statement to insider if not paused statement and then it will work fine. Steven On Fri, 21 May 1999 20:26:24 +0100, "Rikki Prince" wrote: >I'm not sure, coz I haven't had a chance to try it (sorry!) but it could >possibly be that the incrementation of the 'count' variable is independant >of whether it is paused or not. I can't quite get my head around what is >happening (coz I'm lazy), but I'll have a go later, when I'm offline, and >see if I can work it out. Also, you I'm not sure why you've put the check to >see if the cross or circle is pressed away from the other pad checking, but >it makes the code a bit confusing, so I suggest you put it with the rest, to >make it easier when the program gets more complex, and even if it won't, you >might as well get into the habit of doing it for later games. >Anyway, try putting the increment of the 'count' variable inside the check >for paused or not, and if I do work out if it's something else, I'll repost. > >Thanks >Rikki > >Michael Dyer wrote in message >news:7i3t77$1187@chuka.playstation.co.uk... >> Hello Everyone >> >> Before i tell you about my latest problem in my timer program, I just want >> to thank everyone who's helped me over the past few days. I've been >> programming a timer program and i couldn't have got to the stage i'm at >now >> without the help from people who have helped me. >> >> Anyway my latest problem : >> >> I'm trying to change the timer prgram so that you can pause and unpause by >> pressing X and O respectively. It pauses when i press X, but then does >> nothing when i press O. What's wrong? The code is included with this >email. >> >> Please help. >> >> Loz >> >> >> >