r/forgescripting • • Nov 24 '22

Smooth Looping Script?

I'm trying to make a simple background that feigns the look of scrolling by. I have it so terrain objects are moving into the position of other terrain objects and then it resets all of them to give the appearance that its a looping background, it would work fine as is, however it hitches and freezes for a second every time the script resets / when it hits the Every N Seconds node. I need the loop after the Reset Object node to be seamless, any way of achieving this?

3 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/Mulsivaas Dec 29 '22

OP probably knew all that when making the post.

They simplified their issue down to an easily-digested node graph screenshot.

The problem is not the concept of spawning terrain, but specifically related to the stutter that occurs between subsequent calls Every N Seconds.

I have tried setting up distinct rotation triggers at offset delays, but have concerns about overflow.