i am creating a flash game and i can stop the caharacter from crossing lines but when i use diagonal lines, the character stops at the blue box seounding it.
i thought it would work but i need to know how to shrink the blue box that is created when you make a movie clip.
please help
----------CODE------------------------
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root["stanD"])) {
_root["stanD"]._y -= _global.speed;
_root["stanD"]._x += _global.speed;
}
if (this.hitTest(_root["blob"])) {
_root["blob"]._y -= _global.moveSpeed2;
_root["blob"]._x += _global.moveSpeed2;
}
if (this.hitTest(_root["gEnemy"])) {
_root["genemy"]._y -= _global.gEnemySpeed;
_root["genemy"]._x += _global.gEnemySpeed;
}
}
i thought it would work but i need to know how to shrink the blue box that is created when you make a movie clip.
please help
----------CODE------------------------
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root["stanD"])) {
_root["stanD"]._y -= _global.speed;
_root["stanD"]._x += _global.speed;
}
if (this.hitTest(_root["blob"])) {
_root["blob"]._y -= _global.moveSpeed2;
_root["blob"]._x += _global.moveSpeed2;
}
if (this.hitTest(_root["gEnemy"])) {
_root["genemy"]._y -= _global.gEnemySpeed;
_root["genemy"]._x += _global.gEnemySpeed;
}
}