Two possible things. One, you need to make sure the direction that the ghost is moving is set with dir. I forgot to add that, but essentially something like this.
ghost -> Create Actor -> Script Editor
- Code: Select all
dir=0;
directional_velocity=2;
angle=0;
That way the intersection code will know what direction the ghost was actually moving in. Another possible problem is that the speed of the actor does not align the nodes but the symptoms would be slightly different. One other adjustment you need to do is make dir an actor variable, instead of a global variable. That way you can have clones, instead of just a single ghost.