I want to set default points for my game , but none of docs here are helping me . Does anyone know how I can do it ?
Sorry can you explain a little more of what you need? Default points? Are you referring to a score of some kind?
Yes . I want to set default points like when the user first starts to play the game they have a certain amount of points .
So are you trying to just have an exact amount of points every time someone opens your game? Or does it change?
You have to explain exactly what you want so we don’t have to guess here.
–SonicX278
I want it to be 1000 points given to every user when they first play the game
local points = 1000
That’s about the best answer I can give you with the information you’ve provided
So ya like JonPM said you can do this.
local points = 1000 local pointsTxt = display.newText( "Point: "..points, centerX, centerY, native.systemFontBold, 40 )
–SonicX278
Sorry can you explain a little more of what you need? Default points? Are you referring to a score of some kind?
Yes . I want to set default points like when the user first starts to play the game they have a certain amount of points .
So are you trying to just have an exact amount of points every time someone opens your game? Or does it change?
You have to explain exactly what you want so we don’t have to guess here.
–SonicX278
I want it to be 1000 points given to every user when they first play the game
local points = 1000
That’s about the best answer I can give you with the information you’ve provided
So ya like JonPM said you can do this.
local points = 1000 local pointsTxt = display.newText( "Point: "..points, centerX, centerY, native.systemFontBold, 40 )
–SonicX278