In a platform activity, you can make a monster almost mimic the character along the x (horizontal) axis and make it almost impossible for a character to get past.
Within a platform activity select a "monster" and place it either above or below your character. Right click on it then click on the green rotation arrow below the image to view the animation options that are attached to the monster. Click on the red fish (for animation settings) and click on the "adv" option. in the script box that appears, enter the following code;
this._x += (_root.player._x - this._x) / 16 ;
What's happens is that the monster's x co-ordinate changes so it gets closer and closer to the x co-ordinate of the player, however it only moves a fraction of the distance at a time so it gives the player a chance to get through!
View example; Download Almost_impassable


Recent Comments