Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » FPS-independent Tick System?
- Eventlesstew
- Scratcher
28 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!
Cheers!
(Creator of Pac-Man Scratched)
- Norse7
- Scratcher
74 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
28 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?
You could use something connected to a universal server such as “days since 2000”. This is how most FPS loggers work. 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.
she/her
Front-end web developer and software programmer
Javascript, HTML5, CSS, Python3, & Lua.
Signature color gradients here
cool LiDAR game!
AAGS Manager
- --Irrelevant
- Scratcher
90 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!
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?
it's not that advanced you know?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.
she/her
Front-end web developer and software programmer
Javascript, HTML5, CSS, Python3, & Lua.
Signature color gradients here
cool LiDAR game!
AAGS Manager
- --Irrelevant
- Scratcher
90 posts
FPS-independent Tick System?
it's not that advanced you know?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.
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.
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 :)
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 :)
- Discussion Forums
- » Help with Scripts
- » FPS-independent Tick System?