In my program I have a pause button that works by
setting the interpolator's value to null:
Interpolator.setAlpha(null);
There is also a continue button that resets the value
to a non null value
Also when the loopCount of the interpolator has
reached it's limit a message and score is printed out
signalling the end of the game:
if(Interpolator.getAlpha().finished()){
Game Over etc
}
Independently both these funtions work, but when
combined, a null pointer exception occurs when the
pause button is pressed the first time, referenced to
if(Interpolator.getAlpha().finished().  I think this
happens because the Interpolator.getAlpha()returns a
null value due to the first press of the pause button.
Is there a way to get around this/'trick' the getAlpha
method into recieving a non null value?  As ever any
advice would be appreciated.

Rob Elsam

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to