Hello
I'm starting to learn array. It's a bit hard for me. I know how to save and load i alterable value of 1 object. I want to now how to save all alterable values. I was trying do start a loop 27 times but i don't know how to load the values. Cam u help me with my problem? I want to know how to save all alterable values of 1 object in 1 event and also how to save qualifiers object into array.
Array, saving qualifiers and all alterable values in objects
Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
-
-
I made a little example.
For the object to register I set the first Value as a counter on how many others "usefull value" used, in my case 5, so I dont make 26 (or more loops, you can have more than 26 after ValueZ is ValueAA like in Exel) but just how many are needed. Then copied the value by index in the array, be sure it is huge enought to store all you want.
To retrieve the value is the same way, I used a loop with (ArrayElement0 + 1) cicles and past by index into the value of the objects.
To target the index Value to set you can use the Use Expression button on the right ad use the formulaLoopindex("NameOfTheLoop")
Please login to see this attachment. Please login to see this attachment.
Here the mfa
-
Thank you for help, but i dont know 1 more thing. What is the LoopIndex? For what he is sed
-
And also 1 more question. I want to have alterable value a be a Save ID (just changing name). Every objects have own Save ID. On Load if Save ID in previous frame was same, load this same values to this object. If you know what i mean. Like in minecraft. Every item have his own id, and every item have alterable values like hunger etc... And if id in array is same like in Object so this should write to Object parameters.
Sorry for my english ;D -
Thank you for help, but i dont know 1 more thing. What is the LoopIndex? For what he is sed
When you start a fastloop you pass two parameters, the name that identify the loop and how many times execute this loop (call it NTime).
The next event OnLoop("LoopName") is the event that is repeated NTime times. In this event when you are setting the various actions for your objects you can use the expression editor to use the function LoopIndex("LoopName") to retrive a number thath tell you on wich passage/cicle of the loop you are, this is the LoopIndex.Now there is one thing to remember, LoopIndex always start from 0 so the last Index is (NTime-1).
If we start a Fastloop called "myLoop" for NTime=10, the values returned from LoopIndex are this:- Loop cicle 1: LoopIndex("myLoop") = 0
- Loop cicle 2: LoopIndex("myLoop") = 1
- Loop cicle 3: LoopIndex("myLoop") = 2
- ....
- Loop cicle 10: LoopIndex("myLoop")= 9 = (NTime-1)The main use of LoopIndex is obviously when you are working with object thath have an index of reference, as the Array or the List objects, so you can link the LoopIndex to the position into the Array (be sure the array is 0 based or you need to add +1 to loopindex ;D), but there are others uses of this function according to what one want to do.
-
Ok. So one more question xD
I want to have first Alterable Value be the Save ID ,it will be set manuallyAlterable value a -> SAVE ID
-On loop "retrieve", Save id is equal to Save ID in array
+load object valuesIf
-Save ID = 1
+Load informations from array Save Id =1How can i do that?
-
I'm just want to make video on youtube about arrays, saving. There isn't much videos in Polish, so i'll be one of first ;P, but before i need to learn them ;P
-
you could always think about the [ SAVE GAME OBJECT ] which can save ALL the values of actives, along with directions etc, in 1 move. possibly it might be an easier way rather than looping or doing each value.
-
you could always think about the [ SAVE GAME OBJECT ] which can save ALL the values of actives, along with directions etc, in 1 move. possibly it might be an easier way rather than looping or doing each value.
I never used this object, but now that you mention it I go to read the documentation.
It is very intresting. -
Save Game Object save all values, but what's with reading them. If i have Sprint widget, Crouch widget and Jump Widget on 1st frame, on 2nd frame i have only sprint widget, so what's happening with other?
-
Also question for array. If there is base 1 index checked, so every time when i load the values, First value [A] is always set to 0, is that normal? If i manually set it to 1, after loading it's set to 0
-
1 base means it starts at 1. the zero element will always be a 0
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!