Data sheet (like an exel sheet)

New releases and general discussions.

Post » Sun Jun 28, 2009 11:43 pm

It would be great if we could associate a kind of "data sheet", to an object... let's say... we create an hero object, then in the data sheet we would create variables, like Attack, Defence, Level, Magic, MP, HP, ... we could create the variables we wanted and give them values... and use these values later on... like if LEVEL (a variable I created for example) ==50 then attack (the variable attack of that object) =120 for exemple or = another variable... this way it would be possible to store object refering data inside each object. I dont know if it is possible to implement or to do already... I'm kinda new to this sorry don't be too hard on me xD :D
B
2
G
4
Posts: 17
Reputation: 1,084

Post » Mon Jun 29, 2009 12:03 am

That's what Private Variables are for.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Jun 29, 2009 12:18 am

Check out a tutorial if you haven't already - Ghost Shooter covers private variables for storing enemy's health, for example.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Mon Jun 29, 2009 11:12 pm

Thnks I think I got it! :P and sorry
B
2
G
4
Posts: 17
Reputation: 1,084


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 3 guests