Discuss Scratch

TheBrainTumorCharity
Scratcher
19 posts

Transparent colour

My idea is that another colour could be introduce when making sprites which would appear in the sprite editor as maybe a glassy colour? but in the actual game/project it would be invisible, but there, meaning you could create things like hit boxes and games could benefit a lot from this.
Wahsp
Scratcher
1000+ posts

Transparent colour

Do you mean
change [ghost v] effect by (--) // at 100% this effect makes the sprite invisible

/ ||||||||||||| \ ____._____/ Wahsp \ ________._/ ||||||||||||| \
/ |||||||||||||||||||||| \_____ / Game Maker \______/ ||||||||||||||||||||| \
| |||||||||||||||||||||||| |___–_| 2,600 + Posts |___._| |||||||||||||||||||||||| |
/ |||||||||||||||||||||||||| \ ____/ Forum Helper \___._/ |||||||||||||||||||||||||| \
| ||||||||||||||||||||||||||| |____| Past FPC #288|____| ||||||||||||||||||||||||||| |
How do you picture me?
stickfiregames
Scratcher
1000+ posts

Transparent colour

Wahsp wrote:

Do you mean
change [ghost v] effect by (--) // at 100% this effect makes the sprite invisible
No, it would be a colour in the paint editor.

That said, it is possible to get a 99% ghosted colour using just the paint editor but it isn't easy, and it is probably still visible against certain backgrounds. The best way to do what the OP is trying to do is to have a separate costume or sprite for the hitbox.










If you can read this, my signature cubeupload has been eaten by an evil kumquat!




or you just used Inspect Element, you hacker

;
wWSunPandaWw
Scratcher
1000+ posts

Transparent colour

stickfiregames
Scratcher
1000+ posts

Transparent colour

wWSunPandaWw wrote:

Duplicate.
Not the same thing. This is asking for a completely invisible colour that still triggers touching tests, and that is asking for semitransparent colours.










If you can read this, my signature cubeupload has been eaten by an evil kumquat!




or you just used Inspect Element, you hacker

;
DaEpikDude
Scratcher
1000+ posts

Transparent colour

For hitboxes you can just create a costume that has the hitbox, switch to it at the start of the script, do whatever needs the hitbox then switch back at the end.
This feels really specific and doesn't seem like it'd actually be all that useful.

You know, I've got a really great proof to this one unsolved problem in mathematics, but unfortunately this signature isn't quite big enough to fit it in.
wWSunPandaWw
Scratcher
1000+ posts

Transparent colour

stickfiregames wrote:

wWSunPandaWw wrote:

Duplicate.
Not the same thing. This is asking for a completely invisible colour that still triggers touching tests, and that is asking for semitransparent colours.
I don't get it. Don't we already have a transparency color?

Botcho_Otkho
Scratcher
1000+ posts

Transparent colour

I can't undertand at all. What are you trying to say?

Hello! Moi is Botcho.

About me: Male / Catholic / Italian / Pizza lover / Hater of pineapple pizza / Undertale lover / Sagittarius / 13 years old / Walk-run cycles manager / Guitarist / Forum helper / Wiki Editor


Favourite games: Minecraft, Undertale My profile: click here!

Other: Donate an internet! Favourite communities: Roblox, Scratch Seasonal: nothing
;
paws48
Scratcher
100+ posts

Transparent colour

You could always just get the little white square with the red line through it and and another color, do a gradient, and there you go! Specific areas of the sprite are transparent.
stickfiregames
Scratcher
1000+ posts

Transparent colour

wWSunPandaWw wrote:

I don't get it. Don't we already have a transparency color?

Botcho_Otkho wrote:

I can't undertand at all. What are you trying to say?
The normal transparent colour isn't detected by the
<touching [ v] ?>
block, but this suggestion would be.

To be honest I don't really think this would be useful enough to be worth adding, since the workarounds are fairly easy and give you more control.










If you can read this, my signature cubeupload has been eaten by an evil kumquat!




or you just used Inspect Element, you hacker

;

Powered by DjangoBB

Standard | Mobile