Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Spamming key
- Pokemon-master124
-
3 posts
Spamming key
I would like to know how to make it so you need to spam a key in order to achieve brocasting a message so you can move on. However, while attempting to create this, i can only come up with solutions where you can continue to hold the button and it will function this way. How do i prevent this?
- BrilliantStar114
-
100+ posts
Spamming key
Make something like this: I would like to know how to make it so you need to spam a key in order to achieve brocasting a message so you can move on. However, while attempting to create this, i can only come up with solutions where you can continue to hold the button and it will function this way. How do i prevent this?
Last edited by BrilliantStar114 (April 20, 2024 10:08:57)
- youormeletsbringit
-
69 posts
Spamming key
I would like to know how to make it so you need to spam a key in order to achieve brocasting a message so you can move on. However, while attempting to create this, i can only come up with solutions where you can continue to hold the button and it will function this way. How do i prevent this?
This code works perfectly as intended
Last edited by youormeletsbringit (April 21, 2024 06:39:03)
- -TUB-
-
100+ posts
Spamming key
A lot of these solutions seem like they are either way to repetitive or don't work as intended. Here is my solution:
If spam counter is above a certain number, spamming is detected. Note that the second function can be adjusted, for example, by adding a timer so that the counter resets after a certain amount of time with no button presses.
If spam counter is above a certain number, spamming is detected. Note that the second function can be adjusted, for example, by adding a timer so that the counter resets after a certain amount of time with no button presses.
- just-a-hriday
-
100+ posts
Spamming key
deleted
Last edited by just-a-hriday (April 21, 2024 03:10:41)
- Discussion Forums
- » Help with Scripts
-
» Spamming key