{
 "pack": 1,
 "id": "c4c:beh:cameo",
 "type": "behaviour",
 "version": "1.0.0",
 "name": "Walk on and off",
 "description": "Waddles on from a side, announces, waddles off the same way.",
 "author": {
  "id": "c4c",
  "name": "Crafts4Class"
 },
 "license": "cc0",
 "remixable": true,
 "derived_from": [
  {
   "id": "tween:studio/behaviors.py",
   "version": "2026-06-08",
   "note": "pose(\"cameo\")"
  }
 ],
 "preview": {
  "moves": [
   "cameo"
  ],
  "seconds": 6.0
 },
 "content_hash": "sha256:8b6484029cad7ddf39877f311dbc5e10f30fc3406231ea5c09a7a96c2d9e6017",
 "content": {
  "v": 1,
  "kind": "behaviour",
  "params": {
   "side": -1,
   "t_in": 1.5,
   "t_out": 1.5
  },
  "scripts": [
   {
    "hat": {
     "on": "start"
    },
    "body": [
     {
      "op": "set",
      "to": {
       "dx": "=860*side"
      }
     },
     {
      "op": "together",
      "branches": [
       [
        {
         "op": "ramp",
         "to": {
          "dx": 0
         },
         "over": "=max(t_in, 0.1)",
         "ease": "smooth"
        }
       ],
       [
        {
         "op": "for",
         "s": "=t_in",
         "body": [
          {
           "op": "wave",
           "ch": "part:leg:-1",
           "shape": "sin",
           "every": 0.42,
           "amp": 10,
           "sync": "start"
          },
          {
           "op": "wave",
           "ch": "part:leg:1",
           "shape": "sin",
           "every": 0.42,
           "amp": -10,
           "sync": "start"
          },
          {
           "op": "wave",
           "ch": "dy",
           "shape": "abssin",
           "every": 0.84,
           "amp": -5,
           "sync": "start"
          },
          {
           "op": "wave",
           "ch": "rot",
           "shape": "sin",
           "every": 0.42,
           "amp": 3,
           "sync": "start"
          }
         ]
        }
       ]
      ]
     },
     {
      "op": "set",
      "to": {
       "rot": 1.5
      }
     },
     {
      "op": "for",
      "until": "=dur - t_out",
      "body": [
       {
        "op": "wave",
        "ch": "dy",
        "shape": "abssin",
        "w": 1.6,
        "amp": -4,
        "sync": "start"
       }
      ]
     },
     {
      "op": "set",
      "to": {
       "rot": 0
      }
     },
     {
      "op": "together",
      "branches": [
       [
        {
         "op": "ramp",
         "to": {
          "dx": "=860*side"
         },
         "over": "=max(t_out, 0.1)",
         "ease": "smooth"
        }
       ],
       [
        {
         "op": "wave",
         "ch": "part:leg:-1",
         "shape": "sin",
         "every": 0.42,
         "amp": 10,
         "sync": "start"
        },
        {
         "op": "wave",
         "ch": "part:leg:1",
         "shape": "sin",
         "every": 0.42,
         "amp": -10,
         "sync": "start"
        },
        {
         "op": "wave",
         "ch": "dy",
         "shape": "abssin",
         "every": 0.84,
         "amp": -5,
         "sync": "start"
        },
        {
         "op": "wave",
         "ch": "rot",
         "shape": "sin",
         "every": 0.42,
         "amp": 3,
         "sync": "start"
        }
       ]
      ]
     }
    ]
   }
  ],
  "name": "cameo"
 }
}
