how to get the values from an array in python?

For questions about using Classic.

Post » Thu Jun 09, 2011 6:38 pm

I know it's probably easy, but I can't figured out the solution.
Is anyone can post a proper python code about the ForEach() command? (get values if it's possible)
I would like to make a save file, but I don't want to save everything, just some values.(I know, it's can be done in the event system easily, but I don't like it, it's can be very ugly in no time.)
Thanks
B
10
S
6
G
3
Posts: 127
Reputation: 2,481

Post » Fri Jun 10, 2011 4:19 pm

You can access values from the array object from python with something like Array(2,1,1).
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Sat Jun 11, 2011 2:35 am

Thanks
B
10
S
6
G
3
Posts: 127
Reputation: 2,481


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 9 guests