1
Ask a Question / "Sensor or Solid" behaviour doesn't work in Stencyl 3 anymore
« on: March 03, 2014, 04:28:00 am »
Hey, folks! 
I just upgraded to Stencyl 3 and now the "Sensor or Solid" behaviour doesn't work anymore
The error message, when I try running it, says
"Sensor Or Solid (52) - Unexpected =
Sensor Or Solid (52) - Unexpected ="
This is the original code for the "MakeSensor" block:
for(var fixture:b2Fixture = __target.body.GetFixtureList(); (fixture != null); fixture = fixture.GetNext())
{
fixture.SetSensor(true);
}
I hope somebody has an idea what needs to be changed in Stencyl 3 for this to work as I really, really need this funtion. Thank you very much in advance!

I just upgraded to Stencyl 3 and now the "Sensor or Solid" behaviour doesn't work anymore

The error message, when I try running it, says
"Sensor Or Solid (52) - Unexpected =
Sensor Or Solid (52) - Unexpected ="
This is the original code for the "MakeSensor" block:
for(var fixture:b2Fixture = __target.body.GetFixtureList(); (fixture != null); fixture = fixture.GetNext())
{
fixture.SetSensor(true);
}
I hope somebody has an idea what needs to be changed in Stencyl 3 for this to work as I really, really need this funtion. Thank you very much in advance!