I'm doing a 2D project with a scrolling background. I'm achieving the scroll by using a quad and curving the offset of its texture. But I'm having some trouble with it on two points.
First, I can do a very simple scroll and it works fine. But I don't understand why it works. If I just do a "Curve Float" and followed by a "Set Texture Offset" with "Every Frame" checked, it scrolls merrily along (see attached image). But as I understand it, "Curve Float" does not loop all by itself. So it seems like it should scroll through one distance of the tile size and then stop. But it does not. Why?
Second, if I try to do a more complex scroll it fails entirely. My background is composed of three quads and I want them to scroll in sync (no parallax). So I do the "Curve Float" once and use a "Get Next Child" loop to apply the "Set Texture Offset" for each quad. The loop works fine in that it fires for each quad, but the offset variable doesn't seem to reach the action (there's no scrolling, so I imagine it's applying an offset of 0). Indeed, if I put the "Curve Float" anywhere other than in the same state as "Set Texture Offset" it doesn't work. Again, why? I'm guessing it's related to my failure to understand why it does work in the above example.
If anyone could help illuminate how this works (and doesn't), I'd be quite grateful. Thank you very much!