I have a weird problem, I'm building a platformer and I have been doing fine, I'm using a modified scroller class but the modifications I've made have just been so that the scroller doesn't follow him up until he's up to a certain height and such.
Now the problem is that I've built an Enemy class which are just guys that walk around doing nothing at the moment. I wanted to make a sensor like box which would be in the same position as the Enemy but longer. And when the sensor touches the player it reports a contact and the Enemy will then stop walking and run towards the player, pick him up and throw him away.
Anyway, so the problem is that when I add this shapes.Box to the stage the scroller stops scrolling, I don't know what is messing things up. I have alot of other shapes.Box around and they don't mess with the scroller at all. I have tried changing the type, I made it as a sensor etc. etc. this is the code for NPC_sensor as it is:
public class NPC_sensor extends Box
public function NPC_sensor()
type = "Static";
isSensor = true;
isGuideShape = true;
very basic, I don't understand why it is affecting the scroller? Does anybody have any ideas why this is happening or a better way to make a sensor which acts like the "view" of an NPC?