Advertisement
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.
- CyanSoul = CreateSprite("a_nothing")
- Toriel = CreateSprite("a_nothing")
- --Now we adjust the height for the individual parts so they look more like a skeleton and less like a pile of bones.
- CyanSoul.y = 314
- CyanSoul.x = 510
- CyanSoul.xscale = 1.0
- CyanSoul.yscale = 1.0
- --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 of a second.
- timer = 0
- SetGlobal("help",0)
- function TorielIntro()
- local help = GetGlobal ("help")
- if help == 1 then
- CyanSoul = CreateSprite("a_cyanSoul")
- CyanSoul.MoveTo(314, 400)
- SetGlobal("help",2)
- elseif help == 2 then
- CyanSoul.alpha = 0.00
- end
- end
- function HideToriel()
- Toriel.alpha = 0
- end
- function RevealToriel()
- Toriel.alpha = 1
- end
- function Sacrifice()
- CyanSoul.MoveTo(314, 300)
- CyanSoul.alpha = 0
- Audio.PlaySound(nom)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement