Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Check how many clones of a sprite are touching another sprite
- 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 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?
if <touching [laser] ?> then(yes, I know there isn't a wait block, that was intentional)
change [ health] by (-1)
end
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
Don't worry I'll just ask the scratch team to move it wait whoops wrong forum sorry
This is an account that exists.
Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary
- Discussion Forums
- » Help with Scripts
- » Check how many clones of a sprite are touching another sprite