Discuss Scratch

QuillzToxic
Scratcher
1000+ posts

Love and Favourite Detector in Projects

Gaza101 wrote:

QuillzToxic wrote:

I don't think I want this. “You can only acsess this level if you follow!” “The only way to play is if you favourite!”
Good point. This could so be abused.
Get FREE points if you follow!

Thats why they havn't added it.
GrannyCookies
Scratcher
100+ posts

Love and Favourite Detector in Projects

QuillzToxic wrote:

Gaza101 wrote:

QuillzToxic wrote:

I don't think I want this. “You can only acsess this level if you follow!” “The only way to play is if you favourite!”
Good point. This could so be abused.
Get FREE points if you follow!

Thats why they havn't added it.
Although, the Scratch Team can always add a rule into the Community Guidelines.
And See Inside still exists

wizzwizz7
Scratcher
500+ posts

Love and Favourite Detector in Projects

QuillzToxic wrote:

I don't think I want this. “You can only acsess this level if you follow!” “The only way to play is if you favourite!”
*access



wizzwizz7
Scratcher
500+ posts

Love and Favourite Detector in Projects

QuillzToxic wrote:

I don't think I want this. “You can only acsess this level if you follow!” “The only way to play is if you favourite!”
Perhaps, though, we could always not have that and just have a variable ‘favourites’ and ‘loves’. That way, you can have features automatically added when you get… say, 100 loves.



-Radical-
Scratcher
500+ posts

Love and Favourite Detector in Projects

Those were *great* ideas, but unfortunately, I don't think there will be a way to make them work, here's why.

With method A, although we were promised website communication, all we have are cloud variables. We *could* use that, but it would be VERY advanced. I'll talk about that at the bottom of the post.


With method B, that couldn't really work, because for security reasons, adobe flash cannot detect mouse clicks unless the most recent click was on the flash window. Plus, it is possible to love/favorite without actually pressing the green flag.


Back to method A, Icely and comp09 have set up a server to fiddle with the cloud variables and let their project interact with the web (e. g. a raspberry pi has a php script that gets the webpage then shoves it into a cloud variable).


But this'd be pretty tedious, and I don't think it'd be a good idea.

Sincerely, probably me. Maybe myself. Or sometimes I.

Signature last updated on 5/15/16
Joshadow11
Scratcher
27 posts

Love and Favourite Detector in Projects

QuillzToxic wrote:

I don't think I want this. “You can only acsess this level if you follow!” “The only way to play is if you favourite!”
It's called following then unfollowing

when green flag clicked
forever
if <(sad) = [true]> then
set (sad) to [false]
end
end
Hans5958
Scratcher
100+ posts

Love and Favourite Detector in Projects

Joshadow11 wrote:

QuillzToxic wrote:

I don't think I want this. “You can only acsess this level if you follow!” “The only way to play is if you favourite!”
It's called following then unfollowing
thanks for the necro

Just an ordinary Scratcher who makes projects and surfs the forums.
Main accountAlternative accountMain account projectsAlternative account projectsMain website (GitHub) • 335 posts as of 6 July 2019

Google for my posts: ZjpZ867tgFSohdGEMaeyXSvAQSyXk5Ew • Google users, please click this link to see the full post.
raging_man123
Scratcher
10 posts

Love and Favourite Detector in Projects

Jonathan50 wrote:

MegaApuTurkUltra wrote:

https://scratch.mit.edu/messages/ajax/user-activity/?user=wizzwizz7&max=100 anyone?

You don't need to be following the user
Good idea.
So, on the Scratch side:
define has (user) loved this project?
encode (username) :: custom
set [☁ username v] to (encoded)
change [☁ get has loved v] by (1)
wait until <(☁ got has loved) = (☁ get has loved)>
set [has loved? v] to (☁ has loved)
And on the backend (psuedocode):
while(true) {
  while(cloud["☁ got has loved"] == cloud["☁ get has loved"]);
  username = decode(cloud["☁ username"]);
  activity = http_request("https://scratch.mit.edu/messages/ajax/user-activity/?user=" + username + "&max=10000");
  if activity.strip()
             .contains("loved <a href=\"/projects/" + project_id + "/\">".strip()) {
    cloud["☁ has loved"] = 1;
  }
  cloud["☁ got has loved"] += 1;
}
I don't think this will work on scratch 3.0
Mdawg4884
Scratcher
100+ posts

Love and Favourite Detector in Projects

Hmmm

happyshrimp0308
Scratcher
6 posts

Love and Favourite Detector in Projects

How to make
DVmathexpert
Scratcher
10 posts

Love and Favourite Detector in Projects

You could try this:

when green flag clicked
hide
set [clone id v] to [0]
create clone of [myself v]
wait (0.2) secs
set [clone id v] to [1]
create clone of [myself v]
wait until <<(Loved) = [1]> and <(Faved) = [1]>>
wait (0.5) secs
show
go to x: (1) y: (-100)
reset timer
set [ghost v] effect to (100)
repeat until <(timer) > [3.5]>
change y by ((y position) / (-15))
change [ghost v] effect by (-3)
end
reset timer
repeat until <(timer) > [3.5]>
change y by (((y position) - (-100)) / (-15))
change [ghost v] effect by (10)
end
when I start as a clone
if <(clone id) = [0]> then
go to x: (-15) y: (0)
set [Loved v] to [0]
switch costume to [love v]
forever
set [love? v] to <touching [mouse pointer v] ?>
if <touching [mouse pointer v] ?> then
wait (0.2) secs
if <touching [mouse pointer v] ?> then
set [Loved v] to [1]
end
end
end
end
if <(clone id) = [1]> then
go to x: (0) y: (0)
switch costume to [fave v]
set [Faved v] to [0]
forever
set [fave? v] to <touching [mouse pointer v] ?>
if <touching [mouse pointer v] ?> then
wait (0.2) secs
if <touching [mouse pointer v] ?> then
set [Faved v] to [1]
end
end
end
end
bubbaspeedmaster
Scratcher
26 posts

Love and Favourite Detector in Projects

You have been a big help man Let me follow you please
bubbaspeedmaster
Scratcher
26 posts

Love and Favourite Detector in Projects

Oh, and what sprite is it in? and
Am I going to need more code?
AUMSUMTHEGREATHULK
Scratcher
20 posts

Love and Favourite Detector in Projects

bubbaspeedmaster
Scratcher
26 posts

Love and Favourite Detector in Projects

AUMSUMTHEGREATHULK wrote:

Ok…

Powered by DjangoBB

Standard | Mobile