Discuss Scratch

Eventlesstew
Scratcher
18 posts

FPS-independent Tick System?

Hey, I'm making a Scratch Project and I want it to be FPS independent (To support Turbowarp and help with lag) Is it possible to make a tick system that's separate from framerate? (I'm looking for one that can do 120tps)

Cheers!

(Creator of Pac-Man Scratched)
Norse7
Scratcher
67 posts

FPS-independent Tick System?

you could try this for 120tps:
when green flag clicked
set [ ticks v] to [0]
forever
change [ ticks v] by (2)
end

“It’s not a bug; it’s an undocumented feature.” ― Anonymous

when green flag clicked
forever
change [ awesomeness] by (1)
end
Eventlesstew
Scratcher
18 posts

FPS-independent Tick System?

That doesn't solve the problem because the “Forever” loop is FPS-dependent. This means that 30FPS projects will have 60TPS, 60FPS > 120TPS, 15FPS > 30TPS, you get the point.

(Creator of Pac-Man Scratched)
MineTurte
Scratcher
500+ posts

FPS-independent Tick System?

Eventlesstew wrote:

That doesn't solve the problem because the “Forever” loop is FPS-dependent. This means that 30FPS projects will have 60TPS, 60FPS > 120TPS, 15FPS > 30TPS, you get the point.
You could use something connected to a universal server such as “days since 2000”. This is how most FPS loggers work.

(pronouns are she/her). Advanced Alpha Game Studios Manager. Our website: https://aags2.w3spaces.com
This is JuniperActias. AKA Moth mommy. If I helped you out consider following Juni-Bug (my new account)!




If you found this secret, say uwu
Signature gradients here













--Irrelevant
Scratcher
90 posts

FPS-independent Tick System?

Eventlesstew wrote:

Hey, I'm making a Scratch Project and I want it to be FPS independent (To support Turbowarp and help with lag) Is it possible to make a tick system that's separate from framerate? (I'm looking for one that can do 120tps)

Cheers!


This looks like it belongs in Advanced Topics. I'm not sure if there's one that can do 120tps btw.

I'm Irrelevant! (jk)

What I'm good at:
Creating evil kumquats
Creating more evil kumquats
Creating even more evil kumquats because why not?


GIMME YOUR FOLLOW


My profile…








MineTurte
Scratcher
500+ posts

FPS-independent Tick System?

--Irrelevant wrote:

Eventlesstew wrote:

Hey, I'm making a Scratch Project and I want it to be FPS independent (To support Turbowarp and help with lag) Is it possible to make a tick system that's separate from framerate? (I'm looking for one that can do 120tps)

Cheers!


This looks like it belongs in Advanced Topics. I'm not sure if there's one that can do 120tps btw.
it's not that advanced you know?

(pronouns are she/her). Advanced Alpha Game Studios Manager. Our website: https://aags2.w3spaces.com
This is JuniperActias. AKA Moth mommy. If I helped you out consider following Juni-Bug (my new account)!




If you found this secret, say uwu
Signature gradients here













--Irrelevant
Scratcher
90 posts

FPS-independent Tick System?

MineTurte wrote:

--Irrelevant wrote:

Eventlesstew wrote:

Hey, I'm making a Scratch Project and I want it to be FPS independent (To support Turbowarp and help with lag) Is it possible to make a tick system that's separate from framerate? (I'm looking for one that can do 120tps)

Cheers!


This looks like it belongs in Advanced Topics. I'm not sure if there's one that can do 120tps btw.
it's not that advanced you know?


Ok? A tick system that's seperate from frame rate seems advanced to me!

I'm Irrelevant! (jk)

What I'm good at:
Creating evil kumquats
Creating more evil kumquats
Creating even more evil kumquats because why not?


GIMME YOUR FOLLOW


My profile…








Malicondi
Scratcher
1000+ posts

FPS-independent Tick System?

You could likely make an tick system using Delta Time, although I'm not too sure how it would work but, I do know for a fact that you can't have a 120 tps system, as turbowarp only allows 60fps which at most would be 60 tps, that you can see.
I would recommend making a 20 tps or 30 tps system, so that it would work on both scratch and turbowarp.

Last edited by Malicondi (March 30, 2024 16:58:27)


post #1000 post #100 i help in the forums post #1 post #500 0 second ninja
I recommend reading jvvg's essay about the scratch team before complaining, as it may change your opinion and provide insight on the topic.

coming soon :)


Powered by DjangoBB