Create a local number

Get help using Construct 2

Post » Mon Feb 20, 2012 12:41 pm

Hello again probably another obvious question to answer.

I am currently working through the tutorial on adding leaderboards to a game.

http://www.scirra.com/tutorials/259/easily-add-leaderboards-to-your-game/page-2

On this page, it says:

First we update the player score text using the 'Score' variable. We can access it because it is global (shared across all event sheets).

Followed by a for loop, to go from row 2 to the last one and create the text fields along the way. The row variable is very important to set because we will use it again later to know which row should show which score.

---

I have done the score text, but can anyone give me more information on how to setup for the for loop. Also in the image below this it shows the creation of a 'local number' I know how to setup a global number on the event sheet but I cant seem to find any information on this tutoiral or other tutorials on how to create the local number.

Any tips and answers to this would be greatly appreciated.

Thank you.
B
25
S
7
G
5
Posts: 185
Reputation: 5,056

Post » Mon Feb 20, 2012 12:58 pm

local variable are either global variable you nest under an event (drag&drop under an event and slightly to the right so it gets nested)
or
something you can create by right clicking on a nested event.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 0 guests