Spawm an object randomly on the scene

Hi

I want to randomly spawn an object on the scene, but still struggling!

What is your idea

thanks

1 Like

Do you want it to repeatedly spawn or just once?

I need to repeatedly spawn.

Hey!
Have you tried adding a trigger once to this event?
Screenshot 2025-12-10 at 10.23.15 PM

Yes, I have tried it.

1 Like

IDK if you meant for the last event to be a subevent. Currently, the timer is being reset before the elapsed time condition so it will never expire.

What should I do? There is no function for elapsed time?

Can you explain more.

Hello SaeedP,

I think you can put the trigger once on event that @SnowyRawrGamer said and change the subevent to be an event like @Keith_1357 pointed.

Without trigger once your event will be true while the variable NumberRange = 3. So, every frame it will reset the timer “RedSpawn”.

2 Likes

Screenshots-20251210215517
try this

1 Like

But how did you use the “repeat every by time” ?
Is that a sub-event?

I mean, how could you add it to the scene?


Hey SaeedP!

There is an extension called repeat every X seconds, download that into your game and you can use it!
I myself didn’t even know about it!

2 Likes

@mrcraftar , maybe next time you should mention if you are using an extension, coz it can get confusing! :sweat_smile:

2 Likes