Hello,
I just startet playing around with Gideos, and I really like it, I'm just having one problem: I don't know where I should setup the position values for my sprites. I tried setting them up in the APPLICATION_START method, or before any method is calles, but somehow the positions always get weirdly messed up. The only place its working correctly is when I set them up in the ON_ENTER_FRAME method, which I could do, I just want to know if theres a better way to do it.
Thanks for any answer
David
EDIT: Oh, and if you could also tell me why this does/doesn't work
EDIT: Ok, solved it, was just a dumb mistake: I scaled the sprites after I set their position using their height and width..
Comments
To do something repeatedly, you need to have a loop of some sort, the ENTER_FRAME event is a loop that triggers as many times as the fps in a second.
So when you ask "could also tell me why this doesn't work", what is it that doesn't work? If you need assistance, you will have to either articulate what you are after or place the code that you are having an issue with.
and if you did solve it, that's the best thing ever...
Likes: dddent
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps