_root.speed = _xmouse - 50
if(_root.damy_x + _root.speed >= 0){
_root.damy_x =
(_root.damy_x + _root.speed)
% ( _root.ph_num_max * _root.ph_width )
}else{
_root.damy_x =
_root.ph_num_max * root.ph_width
+ ( (_root.damy_x + _root.speed)
% ( _root.ph_num_max * _root.ph_width ) )
}
_root.damy._x = _root.damy_x
・全てのパネルを並べなおす
for( i = 0 ; i < _root.ph_num_max ; i ++ ){
_root[i]._x =
(_root.damy_x + (i * _root.ph_width) )
% ( _root.ph_num_max * _root.ph_width )
}
|