How do I fix this simple nested loop?

Get help using Construct 2

Post » Sat Mar 04, 2017 2:42 pm

Message: KodeMonkee can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hello.
This looks the same as other examples I can see, but my output is only a single vertical line of sprites instead of a page full.
I have no clue! Please send halp!

Screenshot:
http://imgur.com/a/ENp02
B
4
Posts: 14
Reputation: 230

Post » Sat Mar 04, 2017 3:15 pm

You need to reset noiseYPos in event 2, otherwise it just keeps getting bigger.

A better mechanisms to use the loopindex.
noiseXPos = gridSize * loopindex("foo")
noiseYPos = gridSize * loopindex("bar")
ImageImageImage
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725

Post » Sat Mar 04, 2017 3:32 pm

Ah ha! Yes! I knew i must have just been forgetting something and that explanation matches what the debug mode tells me when looking at variable values. And thanks! I was trying to figure out how to use loopindex somehow.

Onya, mate.
B
4
Posts: 14
Reputation: 230


Return to How do I....?

Who is online

Users browsing this forum: Lancifer and 7 guests