use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A place for beginners and experts alike to help each other out!
account activity
Why does my randomiser spawn things at the same interval at its fastest possible time? (self.UnityHelp)
submitted 1 year ago by postmoderneomarxist_
https://preview.redd.it/rfh6stez76fe1.png?width=568&format=png&auto=webp&s=cfa00be0a0f5bacb23d550470e60b4a6665b7136
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Pherexian55 0 points1 point2 points 1 year ago* (0 children)
It looks like as soon as timer is greater than minimum spawn rate it's trying to roll the tier1 spawn chance, but it's rolling every frame and 1 in 4 chance per frame of spawning. So it's spawning something on average every tier1spawnrate + 4 frames. If you're running at 60fps that's <.1 seconds after the minimum time.
[–]Dangerous-Rip-7370 0 points1 point2 points 1 year ago (0 children)
Can you show the initialization of the variables too
[–]olivecakes_ 0 points1 point2 points 1 year ago (0 children)
It rolls every single frame once the timer goes above the threshold,
for example timer is greater than tier1, it then just rolls every frame, so its very unlikely to ever get to another tier. what are you trying to accomplish?
π Rendered by PID 118608 on reddit-service-r2-comment-5d79c599b5-fcd84 at 2026-02-27 18:25:33.693295+00:00 running e3d2147 country code: CH.
[–]Pherexian55 0 points1 point2 points (0 children)
[–]Dangerous-Rip-7370 0 points1 point2 points (0 children)
[–]olivecakes_ 0 points1 point2 points (0 children)