Advertisement
egyware

Untitled

Apr 27th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     name: "ZombieBasic",
  3.     behaviors:
  4.     {
  5.         Transform: {},             
  6.         Sprite:    {},
  7.         Animator:
  8.         {      
  9.             atlasName: "atlas/zombie.atlas",
  10.             regionName: "zombie_caminando"
  11.             animations:
  12.             {
  13.                 idle:
  14.                 {
  15.                     data: [1,2,3,4,5],                 
  16.                     duration: 50
  17.                 }              
  18.             },
  19.             states:
  20.             {
  21.                 leftState:
  22.                 {
  23.                     animation:"idle",
  24.                     action: "self.sprite:flipX(false)"                     
  25.                 },
  26.                 rightState:
  27.                 {
  28.                     animation:"idle"                   
  29.                     action: "self.sprite:flipX(true)"
  30.                 }
  31.             }          
  32.         },
  33.         ZombieBasicController:
  34.         {
  35.             velocity: 50
  36.         }
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement