From my target shooting game demo thread (in this link)
ALSO: Look at this screen
If you click on the crosshair you’ll see this logic system, in the top right quarter you’ll see part of the 2 python scripts it uses.
I had a bit of trouble trying to optimize the logic system (by states or ray sensor filtering), without getting an error “Nonetype object has no attribute getOrientation()” or something similar either right away or after a minute. It breaks the shooting so I can’t do much to optimize it as much as I can or how optimized I think it can be.
The newest version is in the top post, see if you can look at what you see on the above screen and see what can be done to optimize it a bit, using states or something else, thanks.
As I said in the quote I had a bit of trouble trying to optimize this as far as it can go, and I do believe I’ll get a nice speedup once that is done. If anyone can help me by downloading the demo and optimizing the system I showed, telling me what was done, that would be great. If anyone finds the python can be noticably optimized as well that would be even better.