I am not a pro with Java so I could be wrong here. I believe "while" is what is causing the crash. I have used "while" before and it caused the same issue for me.
Again I could be totally off-base here but I think if you put it in the Update() function and used "if" instead of "while" it would work.
I hope that helps or at least puts you on the right track.
God bless!
Howey
↧