Character blocking. I can already hear people sighing!

Started by RetroJay, Thu 28/05/2009 22:39:43

Previous topic - Next topic

RetroJay

Hi all.

Tis I RetroJay.
I am still using 2.72. (still trying to finish my first game).

I am having a small and annoying problem with character blocking.
I have a character in a room that I want the player to give a wide birth to.
Now within the room that has this character I have this code under 'Player enters room before fadein'
Code: ags

  // script for Room: Player enters room (before fadein)
character[BOB].Solid = 1;
character[BOB].BlockingWidth = 50;   
character[BOB].BlockingHeight = 15;


Now most of the time this works just fine. but every now and then the player character will ignore this and walk straight through [BOB].
Have I got the script for this in the right place or should it be somewhere else.

Many thanks.
Jay.

SMF spam blocked by CleanTalk