I know, I’m an absolute beginner. But I work hard. One of my goal is now to help somebody on this forum before the end of the year…
At the moment, I need help to understand what I missed and correct my code (or bug?).
I try to mix two examples to practice: gear animation and director.lua (screen1 with animated gear and a button to go to screen2 with flipside mode, and back. Very simple…
The problem appears when I press the button to go to screen2. (“system.getTimer()” seems to be the cause; with timeTable = os.date(“*t”) everything is ok).
–[[Message error
Runtime error
…screen1.lua 41 :attempt to perform aritmetic on field ‘rotation’ (a nil value)
Stsck trsceback
[C]:?
…screen1.lua: 41 in fonction ‘_listener’
?: in function <?:413>
?: in function <?: 186>
]]
–line 41
gear.rotation = gear.rotation – rotationAngle
Why and how to correct (I need system.getTimer)? Thanks in advance for your help.
[import]uid: 8970 topic_id: 3010 reply_id: 303010[/import]