Hi guys
I've setup a self.lightbulb movie clip inside a scenes init() function
I'm now trying to set its rotation inside onEnterFrame, but nothing is happening ...
function StageRandom02:onEnterFrame()
self.lightbulb:setRotation(40)
end |
If I put the same line - self.lightbulb:setRotation(40) - inside init(), it works fine.
What could I be doing wrong here?
Thank you heaps for any help!
Comments
@Ninjadoodle Did you remember to actually point the ENTER_FRAME event to the function ?
https://deluxepixel.com
I'm still getting nothing in the onEnterFrame event - no rotation / movement.
inside init() it works just fine.
Thanks again, I'm not sure what it could be
Likes: SinisterSoft
Thanks for that!!
Likes: SinisterSoft