Discuss Scratch

24________
Scratcher
9 posts

The Current Day Of The Week Block in Sensing prob

Hi Scratchers!

While I was in a huge project in scratch to make a duplicate of Mac Os, I found a problem in the code. It displays the next day of the current day when I run the project. The project is in process and have to add apps, make all the buttons work, etc. The code for the current day is in the the Current Day sprite. If I have done any mistakes in the code or in the costumes then please reply. When you see the the desktop, on the status bar, it displays the wrong day. Checked the costumes but didn't find the solution.

Link for the project: Project Link.

Thank You Scratchers!

when green flag clicked
go to x: (24) y: ( ________ )

set [ v] to [24________ ]
[url=https://scratch.mit.edu/users/24________/]My Profile[/url] | [url=https://scratch.mit.edu/users/24Testaccount/]My Test Account[/url]
AlexeyChub
Scratcher
100+ posts

The Current Day Of The Week Block in Sensing prob

The current day of the week in scratch (and js) is a bit weird, the order of the days is different to what most people would think. To solve your problem, you can just move the “Sun” costume to the beginning. So here is the new order of costumes you should have inside the “day” sprite:

Sun
Mon
Tue
Wed
Thu
Fri
Sat
24________
Scratcher
9 posts

The Current Day Of The Week Block in Sensing prob

Oh, Thanks @AlexyChub !

when green flag clicked
go to x: (24) y: ( ________ )

set [ v] to [24________ ]
[url=https://scratch.mit.edu/users/24________/]My Profile[/url] | [url=https://scratch.mit.edu/users/24Testaccount/]My Test Account[/url]

Powered by DjangoBB