Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Amount of color sense
- gobo64
- Scratcher
91 posts
Amount of color sense
Hi I'm making a game which involves the pen in which a player moves the mouse around the board and shoots “paint” and it covers part of the background. At the end I want to make it so that whichever color covers the most of the board wins but I do not know how to sense the amount of color that is on the board (colors can also overlap each other as part of the game).
If you could help thx
If you could help thx
I'm gobo64 and 64 is a power of 2. 1,099,511,627,776 is also a power of 2.
- asivi
- Scratcher
1000+ posts
Amount of color sense
To do it easy use a grid system and make every cell to be owned for each player when those go passing over, the player with more cells of his property wins.
- gobo64
- Scratcher
91 posts
Amount of color sense
how would i sense when a player shoots it, or if a player shoots it then another player shoots it but only takes 1/100 of it the other 99/100 is from the first? To do it easy use a grid system and make every cell to be owned for each player when those go passing over, the player with more cells of his property wins.
I'm gobo64 and 64 is a power of 2. 1,099,511,627,776 is also a power of 2.
- asivi
- Scratcher
1000+ posts
Amount of color sense
Sorry i don´t understand you, perhaps others helpers can.how would i sense when a player shoots it, or if a player shoots it then another player shoots it but only takes 1/100 of it the other 99/100 is from the first? To do it easy use a grid system and make every cell to be owned for each player when those go passing over, the player with more cells of his property wins.
- SlitherShade_m8
- Scratcher
64 posts
Amount of color sense
Hes saying that how does he make the grid system and how he can detect when a player shoots that area with paint, or how to detect when another person (or CPU) shoots over a area with the enemies paintSorry i don´t understand you, perhaps others helpers can.how would i sense when a player shoots it, or if a player shoots it then another player shoots it but only takes 1/100 of it the other 99/100 is from the first? To do it easy use a grid system and make every cell to be owned for each player when those go passing over, the player with more cells of his property wins.
gobo64, multiplayer games are difficult to make so I recommend going against a CPU and not another person, but you can try to do it against another person live but that's too complicated for a lot of people so you'll need lots of help.
- asivi
- Scratcher
1000+ posts
Amount of color sense
Ah!Hes saying that how does he make the grid system and how he can detect when a player shoots that area with paint, or how to detect when another person (or CPU) shoots over a area with the enemies paint how would i sense when a player shoots it, or if a player shoots it then another player shoots it but only takes 1/100 of it the other 99/100 is from the first?
gobo64, multiplayer games are difficult to make so I recommend going against a CPU and not another person, but you can try to do it against another person live but that's too complicated for a lot of people so you'll need lots of help.
Then @gobo&4 needs to create a complete project with all the gameplay working as he wants, so people can see how it looks and what is going on in order to explore posible solutions for his problem.
- gobo64
- Scratcher
91 posts
Amount of color sense
Hes saying that how does he make the grid system and how he can detect when a player shoots that area with paint, or how to detect when another person (or CPU) shoots over a area with the enemies paintSorry i don´t understand you, perhaps others helpers can.how would i sense when a player shoots it, or if a player shoots it then another player shoots it but only takes 1/100 of it the other 99/100 is from the first? To do it easy use a grid system and make every cell to be owned for each player when those go passing over, the player with more cells of his property wins.
gobo64, multiplayer games are difficult to make so I recommend going against a CPU and not another person, but you can try to do it against another person live but that's too complicated for a lot of people so you'll need lots of help.
It is going against a cpu i just wanted to say another person because asivi sounded like it was a 2 player game so i was saying it just so no one got confused (i am already so..)
I'm gobo64 and 64 is a power of 2. 1,099,511,627,776 is also a power of 2.
- gobo64
- Scratcher
91 posts
Amount of color sense
https://scratch.mit.edu/projects/129378415/
if anyone needs
if anyone needs
I'm gobo64 and 64 is a power of 2. 1,099,511,627,776 is also a power of 2.
- asivi
- Scratcher
1000+ posts
Amount of color sense
Looks like if the CPU is going to win forever.
Edit: The user is going to win forever
Edit: The user is going to win forever
Last edited by asivi (Nov. 6, 2016 23:52:24)
- gobo64
- Scratcher
91 posts
Amount of color sense
the CPU is going to win forever.you can change the difficulty and i might change the way the cpu works later but its just temporary for now Looks like if
Edit: The user is going to win forever
I'm gobo64 and 64 is a power of 2. 1,099,511,627,776 is also a power of 2.
- Discussion Forums
- » Help with Scripts
- » Amount of color sense