Random Float problems

Hello,

I’ve been making rain for my 2d side scroller and I have a slight problem.

The rain spawns randomly around a specific point and for performance reasons I decided to reuse the raindrops and have them spawn randomly around that point again, however they spawn in the same place they originally spawned, creating a loop.

There are 3 blueprints involved in this, and two of them have nodes. The first one is the BP for the rain actor, the second one spawns it in and does the timeline, and the third one is just the reference point to where the rain can spawn. If you’d like to see the code then please tell me.

The question is: why isn’t it spawning randomly the second time, even though the Random Float in Range changes each time?

Thank you in advance.

1 Like

Can you show the code?