Hi Guys
Here i have a new problem when i am trying use math.random() to create a random coordinate for the game object.
but the function always output a nil value.
i try all of these code below, but the result was all the same -nil
self.random_top = math.random(10,15)
self.random_top = math.random()
self.random_top = math.randomseed(10000)
[edit]
i put these functions in the update function ,will got a nil result
but in the init function ,it output a right value.
the problem is , i am trying to create a game object out of screen ,then it moves in.
so I have to get screen height or width value first in the render script, but in the init function ,the render is not run yet? so i cannot get the screen value