[suggestion] records as data types

Discussion and feedback on Construct 2

Post » Tue Aug 13, 2013 2:41 am

In large projects (but even in smaller projects) it becomes difficult to remember all the variables and especially variables connected to a particular purpose.

What I would love to see is the inclusion of records.
e.g.,
game = record of
playername = text
currentscore, highscore = number etc

that way we could access them easily through game.playername.

It would cut down the use of arrays for complex data and generally make c2 more friendly for developers, in terms of development and maintenance.

---

At the moment I was using a dummy object to do this but when you move to another layout you lose access to those variables.
B
36
S
8
G
5
Posts: 436
Reputation: 5,967

Post » Tue Aug 13, 2013 6:03 am

[QUOTE=czar] At the moment I was using a dummy object to do this but when you move to another layout you lose access to those variables.
[/QUOTE]

Not when your dummy object is set to Global.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
268
S
96
G
66
Posts: 7,217
Reputation: 73,225

Post » Tue Aug 13, 2013 6:41 am

You learn something new every day. Thanks @Kyatric.
B
36
S
8
G
5
Posts: 436
Reputation: 5,967

Post » Tue Aug 13, 2013 8:28 am

No problem.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
268
S
96
G
66
Posts: 7,217
Reputation: 73,225

Post » Tue Aug 13, 2013 3:19 pm

Sounds like you're looking for dictionaries.
Image
B
234
S
27
G
13
Posts: 1,784
Reputation: 18,274


Return to Construct 2 General

Who is online

Users browsing this forum: AllanR, arthurtomazz, sielxm3d, SnipG, X3M, yme and 8 guests