Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Gepard on Mon 02/01/2017 18:42:28

Title: AGS ignoring script when walkable area not simple?
Post by: Gepard on Mon 02/01/2017 18:42:28
Hello,

so I've noticed a strange thing today. I had a walkable area looking like this:
(http://i67.tinypic.com/w70j0y.jpg)
The original walkable area I had was the blue one. What I have now is the straight grey line underneath it. I have a code checking, whether player char is colliding with another character. If he isn't, the game will move him to the character's X and Y. Now, when I had the original walkable area (the blue arc), the code just decided to skip the part where the player character moves. All the rest of the code ran fine. I had this problem before, but it was because my walkable areas were too thin. Now I made sure that the original walkable area was wide enough. However it did not help this time and I had to draw a straight line to the character. It works now and I'm okay with it. It is just a bit weird. Do you have any idea why is AGS doing this?

PS: Yes, I made sure that player was ON walkable area before moving him.