Discuss Scratch

RageGameZain
New Scratcher
2 posts

Enemy respawn script

I would like to make enemies that keep spawning and following till I die in my game. What script should I use?
P444
Scratcher
500+ posts

Enemy respawn script

you shcould use
create clone of [myself v]
but if you have too much clones, you'd lag
MMHMMH
Scratcher
100+ posts

Enemy respawn script

This should work. This script won't make the clones re-spawn, but it will continuously make clones and once the clones are hit, they will die:
when green flag clicked
forever

wait (1) secs
create clone of [myself v]
end

when I start as a clone
go to x: [wherever you want] y: [wherever you want]
forever

point towards [player v]
move [however fast you want] steps
if <touching [player bullet v] ?> then
delete this clone

end

end
There is a limit of 301 clones (if there are 301 clones and it attempts to create another, it won't).

Last edited by MMHMMH (Feb. 15, 2015 02:17:53)

Ben02045
Scratcher
40 posts

Enemy respawn script

MMHMMH wrote:

This should work. This script won't make the clones re-spawn, but it will continuously make clones and once the clones are hit, they will die:
when green flag clicked
forever

wait (1) secs
create clone of [myself v]
end

when I start as a clone
go to x: [wherever you want] y: [wherever you want]
forever

point towards [player v]
move [however fast you want] steps
if <touching [player bullet v] ?> then
delete this clone

end

end
There is a limit of 301 clones (if there are 301 clones and it attempts to create another, it won't).
Is the 301 limit for all clones in the project or for just one sprite?
RageGameZain
New Scratcher
2 posts

Enemy respawn script

MMHMMH wrote:

This should work. This script won't make the clones re-spawn, but it will continuously make clones and once the clones are hit, they will die:
when green flag clicked
forever

wait (1) secs
create clone of [myself v]
end

when I start as a clone
go to x: [wherever you want] y: [wherever you want]
forever

point towards [player v]
move [however fast you want] steps
if <touching [player bullet v] ?> then
delete this clone

end

end
There is a limit of 301 clones (if there are 301 clones and it attempts to create another, it won't).
Thank you!!!!
MMHMMH
Scratcher
100+ posts

Enemy respawn script

Ben02045 wrote:

MMHMMH wrote:

This should work. This script won't make the clones re-spawn, but it will continuously make clones and once the clones are hit, they will die:
when green flag clicked
forever

wait (1) secs
create clone of [myself v]
end

when I start as a clone
go to x: [wherever you want] y: [wherever you want]
forever

point towards [player v]
move [however fast you want] steps
if <touching [player bullet v] ?> then
delete this clone

end

end
There is a limit of 301 clones (if there are 301 clones and it attempts to create another, it won't).
Is the 301 limit for all clones in the project or for just one sprite?
All the clones in the project.
AJPrama
New Scratcher
1 post

Enemy respawn script

BazookaTurtle
Scratcher
1 post

Enemy respawn script

potato chicken burgers
deck26
Scratcher
1000+ posts

Enemy respawn script

AJPrama wrote:

BazookaTurtle wrote:

potato chicken burgers
What you're both doing is considered spamming and is reportable. Please respect the forum.
-ShadowOfTheFuture-
Scratcher
1000+ posts

Enemy respawn script

AJPrama wrote:

BazookaTurtle wrote:

potato chicken burgers

Also, please don't necropost or post offtopic. This thread is from 2015.

Powered by DjangoBB