If you have a .txt file, that is comma separated, for example. Bill,Jane,Fred,Mable, you can import this file into Construct.
Then use the Ajax Plugin to do something like this.
This will load it into an array.
Ah, cool, thanks! That's also a nice way to do it. What is the 24 based on? fontsize?
Ah, cool, thanks! That's also a nice way to do it.
What is the 24 based on? fontsize?
Actually, you could use *Text.TextHeight, which would probably make more sense.
Or you could use tokenat.
Try this.
loopindex +1, Will return 4
or loopindex will return 3
Sorry last pic I forgot to put an event in.
Revised below.
I still don't understand what you exactly want?
If I understood correctly ?, this will adapt to any object count, and just effect the last 3 boxes.
This will give you 60,40,20 for the last 3 created.
So 15 objects would be 80,60,40,20
You can mess around with the math to adjust.
Develop games in your browser. Powerful, performant & highly capable.
Opacity from first created to last, last created being 100% ?
Or for the first 4 created only.
Some beginners information on Arrays.
https://www.construct.net/en/tutorials/arrays-beginners-170
Or
It may be related to this issue, I am having.
I have posted a bug report.
https://github.com/Scirra/Construct-3-bugs/issues/4181
Use Modulo, Remainder of division, Represented in Construct as %
https://www.construct.net/en/tutorials/modulo-odd-even-1247
You do not have permission to view this post