I need a script for a certain surprise game I'm making. Basically, I need it so that a certain pattern equals one thing. I think it will be best explained with a diagram.
Let's say, I was combining paints virtually.
Red + Yellow + Blue = Brown
Right? Now what I'm wondering is how I make that happen with scratch.
It needs to be so that:
Red + Yellow + Blue
Is also the same as
Yellow + Blue + Red
Or
Blue + Red + Yellow
See what I mean? There will also be other colors too like
Pink + White = Light Pink
Can someone develop a script for that please? I will be very gratful and give credit.
Offline
{When flag clicked}
FOREVER
[if mouse down and touching [whatever color]
add [whatever color] to [whatever list]
[end if]
[if mouse down and touching whatever sprite]
clear [whatever list]
[end if]
END FOREVER
[When flag clicked]
[if [whatever list] contains [whatever color] and [whatever color] etc.]
switch [whatever controls the color] to [whatever color]
[end if]
Repeat this for every color:
[if mouse down and touching [whatever color]
add [whatever color] to [whatever list]
[end if]
Repeat this for every combination:
[if [whatever list] contains [whatever color] and [whatever color] etc.]
switch [whatever controls the color] to [whatever color]
[end if]
HOPE THIS HELPS!!!
Offline
soupoftomato wrote:
{When flag clicked}
FOREVER
[if mouse down and touching [whatever color]
add [whatever color] to [whatever list]
[end if]
[if mouse down and touching whatever sprite]
clear [whatever list]
[end if]
END FOREVER
[When flag clicked]
[if [whatever list] contains [whatever color] and [whatever color] etc.]
switch [whatever controls the color] to [whatever color]
[end if]
Repeat this for every color:
[if mouse down and touching [whatever color]
add [whatever color] to [whatever list]
[end if]
Repeat this for every combination:
[if [whatever list] contains [whatever color] and [whatever color] etc.]
switch [whatever controls the color] to [whatever color]
[end if]
HOPE THIS HELPS!!!
Err...
What?
Offline
fg123 wrote:
You can try what soupoftomato said. Í'll make a project with that for you.
Thanks. I really don't understand things like that
Offline