April 28, 2023, 7:21pm
I want to make a little list in my game which shows the creators of our game. I want to keep the script simple and write all creators below each other.
Heres what I tried: (I know this is not even close to a working script)
If you have any questions please consider asking.
April 28, 2023, 7:23pm
The CLEAR block will make only one name appear at a time.
April 28, 2023, 7:24pm
Youre right. But still, only the first item of the list will be written.
April 28, 2023, 7:27pm
Oh, right, I didn't even notice that part.
The easiest solution is to use the
block, and then ask for ITEM I OF CREDITS instead of ITEM 1.
April 28, 2023, 7:35pm
I probably did something completely wrong. Can you help?
April 28, 2023, 8:01pm
Yeah just get rid of the ASK STAGE part. Why do you think you need that?
April 28, 2023, 8:08pm
I somehow thought that the first item of the list would change to the next one idk
This doesnt work. What am I doing wrong?
the for loop should replace the repeat loop...
the for loop:
In this case, the script inside the for loop will run 3 times (length of credits) and the value of i will be 1 on 1st pass,2 on second pass and 3 on third pass.
write the value i of credit:
(on 1st pass, this value is "me" because 1st item of credits is "me", etc)
and finally do a "carriage return":
I think the easiest way is to use the for each loop instead of the for loop block...
April 29, 2023, 5:38pm
Oh yeah good point! I guess what I meant by "easiest" was "get it to work with the least change to the meaning of each block" or something like that. But I totally didn't think of FOR EACH. Must be cognitive decay due to Long Covid or something.
May 29, 2023, 5:38pm
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.