Hello,
I’m new at Lua, so a newbie.
I’m trying to make the eyes of my drawn character blink using movieclip.newAnim()
This is my code for now:
local movieclip = require “movieclip”
myAnim = movieclip.newAnim(
{
“eyeshalfclosed-pad.png”,
“eyesclosed-pad.png”
}
)
myAnim.x = display.contentWidth /126 * 57
myAnim.y = display.contentHeight / 81 * 42
myAnim:play()
Now the eyes blink constantly.
I’d like it to blink once every 10- secs. I’ve tried
timer.performWithDelay
but I guess I’m doing it wrong. Can anyone help me in the right direction? [import]uid: 100901 topic_id: 19968 reply_id: 319968[/import]
[import]uid: 100901 topic_id: 19968 reply_id: 78158[/import]
[import]uid: 91584 topic_id: 19968 reply_id: 78684[/import]