I’m having trouble trying to get ray sensors and object actuators to work in 2.37a.
So I thought maybe there is a bug with ray sensors and I load the scene into 2.36. I had to comment out some of the code (see below) and now my ray sensors work.
The code that I had to comment out is really simple and that is what is puzzling me. I have objects in my scene with various properties attached to them. One of the properties is a simple counter. On one object it might be used to initialise some default variables and actuators.
if own.first_run ==1: high_score = 0 up_key = cont.getSensor('up_sens') own.first_run = 0
In Blender 2.37 this code worked. In 2.36 unless
own.first_run = 0
is commented out it refuses to run giving errors such as
NameError: name ‘invader_count’ is not defined
Maybe if someone can explain these code errors in 2.36, that might lead me to solve my ray sensor problem in 2.37a?
thanks for reading this!