Тема: hitTest
Показать сообщение отдельно
Старый 27.03.2004, 18:50
silin вне форума Посмотреть профиль Посетить домашнюю страницу silin Найти все сообщения от silin
  № 3  
silin
 
Аватар для silin

блогер
Регистрация: Mar 2003
Адрес: Моск. обл.
Сообщений: 5,269
Записей в блоге: 6
если только не пускать, то на ostatki
onClipEvent (enterFrame) {
with (_root.man) {
if (this.hitTest(getBounds(_root).xMax, _y, true)) {_root.ground._x += 4;}
if (this.hitTest(getBounds(_root).xMin, _y, true)) {_root.ground._x -= 4;}
if (this.hitTest(_x, getBounds(_root).yMax, true)) {_root.ground._y += 4;}
if (this.hitTest(_x, getBounds(_root).yMin, true)) {_root.ground._y -= 4;}
}
}
если чего другое то здесь же посмотреть - чего надо