Discuss Scratch

MrNanners
Scratcher
100+ posts

⛔⛔Is the "days since 2000" variable the same for everybody?⛔⛔

I want to make a cloud multiplayer game where people can get effects like “insta-kill” (it's a zombie shooter) and every body gets it. Once you pick it up it will do something along the lines of:
when this sprite touched :: events
set [☁ game v] to (join (☁ game) (join (join [;effect,instakill,] (((days since 2000) * (86400)) + (30))) [;]))
obviously the words will the encoded to numbers. but if the “days since 2000” block was different for everybody, then this wouldn't work.

That's about it, see yah.
My best and most helpful projects:
Savable Games Engine | Plants Vs. Zombies | Competitive Clicker Game
As a kid, John Lennon, member of the most successful band in history, the Beatles, said, “When I grow up, I want to be happy.” The teachers around him said that he didn't understand the question, but young John said that {the teachers} didn't understand life.
MrNanners
Scratcher
100+ posts

⛔⛔Is the "days since 2000" variable the same for everybody?⛔⛔

gor-dee wrote:

https://en.scratch-wiki.info/wiki/Days_Since_2000_(block)
I can't open that since it's blocked on my chromebook, which is administrated by the school.

That's about it, see yah.
My best and most helpful projects:
Savable Games Engine | Plants Vs. Zombies | Competitive Clicker Game
As a kid, John Lennon, member of the most successful band in history, the Beatles, said, “When I grow up, I want to be happy.” The teachers around him said that he didn't understand the question, but young John said that {the teachers} didn't understand life.
Nezon
Scratcher
1000+ posts

⛔⛔Is the "days since 2000" variable the same for everybody?⛔⛔

yeah, it's based on EST timezone

This is my signature (it goes automatically under every post I make)! Here is a bit of advice on foruming, by the way. Don't do SAND. SAND means four words.
SAND means Spam, Advertising, Necroposting, and Derailing.
Spam is when a irrelevant message is sent to many places. Wiki Article: Spam
Advertising is when you promote your studios and projects. Wiki Article: Advertising
Necroposting is when you post on a old topic. It distracts other helpers! Wiki Article: Necroposting
Derailing is when you post something that is irrelevant to the topic, like minimodding. It is called thread hijacking. Wiki Article: Derailing(Derailing idea comes from this guy),
in the process of leaving scratch.
bob has been hidden again :(

qloakonscratch
Scratcher
1000+ posts

⛔⛔Is the "days since 2000" variable the same for everybody?⛔⛔

Yes.




Now Showing: CCRP V
https://scratch.mit.edu/studios/33864948/


Coding on Scratch since 2013

Foruming since 2016

In the Forum Helpers since 2022
MrNanners
Scratcher
100+ posts

⛔⛔Is the "days since 2000" variable the same for everybody?⛔⛔

Nezon wrote:

yeah, it's based on EST timezone
Thanks bro ur the greatest

That's about it, see yah.
My best and most helpful projects:
Savable Games Engine | Plants Vs. Zombies | Competitive Clicker Game
As a kid, John Lennon, member of the most successful band in history, the Beatles, said, “When I grow up, I want to be happy.” The teachers around him said that he didn't understand the question, but young John said that {the teachers} didn't understand life.
deck26
Scratcher
1000+ posts

⛔⛔Is the "days since 2000" variable the same for everybody?⛔⛔

No it's based on UCT which is essentially the same as GMT. Run it at 12 noon or some other obvious fraction of a day and you can easily confirm this. In the UK at the moment the block will have a fractional part of 0.5 at 12 noon - I say at the moment because if we were in summer and using BST it would show 0.5 at 1 pm.

If by EST you mean Eastern Standard Time that is 5 hours behind GMT so at 1pm in that time zone it will be 6pm in GMT so the fractional part will be 0.75 (three quarters through the day).

Powered by DjangoBB