Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --For usage, check out the encounter Lua's EncounterStarting() and Update() functions.
- -- First, we can create the torso, legs and head.
- eyeofcthulhu = CreateSprite("Eye_of_Cthulhu")
- --Now we adjust the height for the individual parts so they look more like a skeleton and less like a pile of bones.
- eyeofcthulhu.y = 350
- --Finally, we do some frame-by-frame animation just to show off the feature. You put in a list of sprites,
- --and the time you want a sprite change to take. In this case, it's 1/2 of a second.
- eyeofcthulhu.SetAnimation({"Eye_of_Cthulhu", "Eye_of_Cthulhu2", "Eye_of_Cthulhu3"}, 1/7)
- function Animateeyeofcthulhu()
- eyeofcthulhu.rotation = 10*math.sin(Time.time + 2)
- end
Add Comment
Please, Sign In to add comment