Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Enemies keep spawning inside Player
- xXKaptainXx
-
Scratcher
100+ posts
Enemies keep spawning inside Player
The enemies in my game keep spawning inside the player. Sometimes monkeys spawn right next to the player and instakill Pico (Similar to spawn trapping in some games). Some people don't have the issue, but please try to help.
EDIT: It has to stick into a forever loop (Please).
EDIT: It has to stick into a forever loop (Please).
Last edited by xXKaptainXx (March 20, 2023 21:59:51)
- Bogush4
-
Scratcher
95 posts
Enemies keep spawning inside Player
You could do
when i start as a clone
repeat until <(distance to (player v)) > [a number]>
spawning
end
forever
movement and collision stuff
end
Last edited by Bogush4 (March 20, 2023 22:02:38)
- Thingied
-
Scratcher
1000+ posts
Enemies keep spawning inside Player
Make a new custom block that has “Run without screen refresh” enabled. Then make the sprite keep on rotating if it is touching Pico and plug the block into the spawn part of the original spawn script.
The code should look something like this:

The code should look something like this:

- thewayofthhenether
-
Scratcher
42 posts
Enemies keep spawning inside Player
i'm making a doors game on scratch and in the rooms whenever i get to A-60, A-60 will spawn and kill me even if the value is not the set value for it to spawn, i searched up a fix on google and found this does anybody know how to help me? jsut don't quote if not
- deck26
-
Scratcher
1000+ posts
Enemies keep spawning inside Player
i'm making a doors game on scratch and in the rooms whenever i get to A-60, A-60 will spawn and kill me even if the value is not the set value for it to spawn, i searched up a fix on google and found this does anybody know how to help me? jsut don't quote if notPlease create your own new topic.
Personally I'd change your logo - it is extremely annoying and would actually put me off helping you!
- Discussion Forums
- » Help with Scripts
-
» Enemies keep spawning inside Player
HELP