samurai fruit add on

still get confused , anyone would please write or upload the Main.lua file , or copy and paste it here,

with accounting score in game page ,

[import]uid: 13061 topic_id: 11732 reply_id: 44617[/import]

What main.lua file are you talking about?

You were asking about how to update your score, I thought? [import]uid: 52491 topic_id: 11732 reply_id: 44652[/import]

i mean the the full code , with score in game page [import]uid: 13061 topic_id: 11732 reply_id: 44702[/import]

You can get the samurai fruit example code from the sample code section on the website; then just add the score like above.

scoreText.text = score

Easy :slight_smile: [import]uid: 52491 topic_id: 11732 reply_id: 44775[/import]

i have samurai fruit example code ,

and I try to make the score in the game page ,

but i could not ,

tell me wt do I have to write and where in the code . [import]uid: 13061 topic_id: 11732 reply_id: 44872[/import]

Add a score in the same way you always add a score, which has already been explained above.

  1. score =0
  2. Make new text called scoreText
  3. Find where objects are sliced in the code
  4. add score = score +1 to that spot
  5. add scoreText.text = score to that spot

What part of this is hard to understand?

Maybe you should try some simpler samples if you’re not yet able to understand Samurai fruit - it’s quite complicated for beginners.

Peach [import]uid: 52491 topic_id: 11732 reply_id: 44959[/import]