Discuss Scratch

3ncrypt0s
Scratcher
6 posts

Check how many clones of a sprite are touching another sprite

Hi, I'm currently making a tower defence game, and I'm working on some of the later levels. One of my towers is a laser tower and is essential in late-game survival. I want the damage from lasers to stack, but here's what I have right now in my main enemy loop:
if <touching [laser] ?> then
change [ health] by (-1)
end
(yes, I know there isn't a wait block, that was intentional)
If it touches one or no lasers, it works fine, but for more lasers, it still deals the same amount of damage.
How can I check how many clones of a sprite are touching my enemy at any given time?

Last edited by 3ncrypt0s (May 19, 2021 22:04:02)

3ncrypt0s
Scratcher
6 posts

Check how many clones of a sprite are touching another sprite

wait whoops wrong forum sorry

Last edited by 3ncrypt0s (May 19, 2021 22:03:55)

PkmnQ
Scratcher
1000+ posts

Check how many clones of a sprite are touching another sprite

3ncrypt0s wrote:

wait whoops wrong forum sorry
Don't worry I'll just ask the scratch team to move it

This is an account that exists.

Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary

Powered by DjangoBB