/* Caterpillars that can face either direction 1.0, by Violet CLM http://www.jazz2online.com/snippets/165/caterpillars-that-can-face-either-direction/ */ void onLevelLoad() { ///@Event 110=Caterpillar |+|Object |Cater |Pillar|Direction:{Left,Right}1 jjObjectPresets[OBJECT::CATERPILLAR].behavior = function(obj) { obj.behave(BEHAVIOR::CATERPILLAR); if (jjParameterGet(uint(obj.xOrg) >> 5, uint(obj.yOrg) >> 5, 0, 1) == 1) obj.direction = 1; obj.behavior = BEHAVIOR::CATERPILLAR; }; }