If you use Restart() to restart your application (instead of just branching to the beginning) then TotalScore will reset.
An alternative is to see whether you can determine with a comparison if TotalScore is negative then make your custom variable negative. IOW: If TotalScore<0 then MyScore := - Abs(TotalScore) end if
Brandt Wagner wrote: > > hey all I was playing earlier with some score keeping and I ran up against > something that was odd. I was attempting to use the AW variable TotalScore > to keep track of things. > > I put a restart button in my app so I needed to be able to reset the > TotalScore variable ... since this is not a option to directly set it I > thought I would find out what the TotalScore was then use an interaction to > subtract it out worked fine for a positive score... then I came to getting > rid of a negative score. So I tried to do the same thing basically. Set a > custom variable equal to TotalScore and subtract the negative value thus > adding a positive value, equating to zero. -- Grace Daminato
Macromedia Evangelist
Interaxys New Media voice: 905.542.2404 e-mail: grace@interaxys.com
-- The AWARE List http://www.e-media.nl/aware/index.html
Search the Archives http://www.e-media.nl/aware/search.html
Netiquette: - Use descriptive subject fields - Use subject prefixes (A5 , A5Mac , A5Web , KO , UCD , OT)