Discuss Scratch

rdococ
Scratcher
1000+ posts

Gamemaking Suggestions (sprite tags, hide other sprites & more)

Scratch is an educational programming language designed to make it easy for kids to create stories, animations and games. They've done a pretty good job, but there's a notable blind spot when it comes to games specifically - many common and simple game mechanics require lists, advanced coding tricks or repetition to pull off which could be simplified by the following suggestions.

1. `creator of this clone` Option

go to [creator of this clone v]
([direction v] of [creator of this clone v])

Currently, if you want multiple enemies to shoot bullets, swing swords, or gemstones to generate particles when collected, you need some hacky solution involving either lists or sprites cloning themselves to become the bullets/swords/sparkles. Allowing clones to access properties from the sprite that created them with `create clone of` would make these features much less painful to implement.

2. Sprite Tags

Sprite tags are labels you can apply to and remove from sprites to identify them dynamically.

add tag [#enemy v] :: sensing
remove tag [#enemy v] :: sensing

<touching [#enemy v] ?>
([x position v] of [closest #enemy v])

If you want your player sprite to detect collisions with a number of enemies or platforms, your only options are a long chain of `touching` & `or` blocks, or coding all enemies/platforms into a single messy sprite. Sprite tags would streamline this significantly: just give each one a tag and have the player check for that tag. Also, if you construct tag names with reporters, you can recreate Snap!'s first-class sprites

3. Hide Other Sprites

hide [closest #coin v] :: looks

when this sprite is hidden :: looks hat

Scratch's main ways for sprites to communicate include broadcasts (and with this suggestion implemented, sprite tags), and this is usually perfect. However, there are cases where it's not quite enough. In a multiplayer game, if multiple players collect the same powerup, you can have a situation where both players get the powerup before it has a chance to disappear.

Being able to hide the powerup directly prevents other player sprites from picking it up by accident, while `when this sprite is hidden` gives the powerup an opportunity to delete itself, reshow after a cooldown, create particles etc.

Last edited by rdococ (June 13, 2024 09:28:40)

Zack_39450
Scratcher
100+ posts

Gamemaking Suggestions (sprite tags, hide other sprites & more)

Lists of suggestions aren’t allowed
(not responding for a while cuz I’m going to bed)

Hey! What’s up? I’m Zack! I’m the main OC under control on this account. I might give Jay his own account but I don’t think he really deserves one..
Anyways, Here are some tips to not make you look silly/mean on scratch.
Select my signature and hold shift and down to scroll down (I think)
1: Don’t bully people! It can get you banned.
2: PLEASE don’t make unrelated topics.
3: Don’t necropost. Seriously don’t. It’s not cool.
4: Give constructive criticism. You don’t know who’s behind the screen, they might quit scratch!
5: Don’t publicly report. It may cause drama. We don’t like drama on scratch!
6: Read stickies before making a topic!
7: Don’t make horror games that are too scary! When your game isn’t popular, it might not get reported. But if it starts getting popular, remove jumpscares immediately!
8: Respect scratch team members.
And those are some tips on how to not look silly/mean on scratch!
rdococ
Scratcher
1000+ posts

Gamemaking Suggestions (sprite tags, hide other sprites & more)

Zack_39450 wrote:

Lists of suggestions aren’t allowed
(not responding for a while cuz I’m going to bed)
Lists of related suggestions are OK.
gem1001
Scratcher
100+ posts

Gamemaking Suggestions (sprite tags, hide other sprites & more)

rdococ wrote:

Zack_39450 wrote:

Lists of suggestions aren’t allowed
(not responding for a while cuz I’m going to bed)
Lists of related suggestions are OK.
Only if they can't function fully without each other.




Fun facts:
• Scratch 2 only existed because HTML5 didn't come out soon enough
• Topic 403 is about volunteering to be banned to test the new ban system
• There were camera reporters in Scratch 1.0 but they were all broken
• You could make custom languages in the Scratch 2.0 Offline Editor
• Gobo is older than Scratch Cat
rdococ
Scratcher
1000+ posts

Gamemaking Suggestions (sprite tags, hide other sprites & more)

gem1001 wrote:

rdococ wrote:

Zack_39450 wrote:

Lists of suggestions aren’t allowed
(not responding for a while cuz I’m going to bed)
Lists of related suggestions are OK.
Only if they can't function fully without each other.

That's true for the second and third suggestions, I guess I could split the first one into its own thread.
Paddle2See
Scratch Team
1000+ posts

Gamemaking Suggestions (sprite tags, hide other sprites & more)

Please create a separate topic for each suggestion you have, rather than creating a list of suggestions. That way, the conversation stays focused and each idea can get the attention it needs.

Before making a new topic, please check out the following:
Thank you!

Scratch Team Member, kayak and pickleball enthusiast, cat caregiver.

This is my forum signature! On a forum post, it is okay for Scratchers to advertise in their forum signature. The signature is the stuff that shows up below the horizontal line on the post. It will show up on every post I make.
(credit to Za-Chary)



;

Powered by DjangoBB