Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make something appear anywhere on the edge of the project player?
- mario91100
-
500+ posts
How to make something appear anywhere on the edge of the project player?
I'm just curious.
I am working on a game and I have baddies that need to appear on an edge. Some use the pen block, some repeatedly clone, but I don't think that matters. What I am asking is this; how do I make it so enemies appear on any part of the edge of the screen and preform actions?
mario91100
I am working on a game and I have baddies that need to appear on an edge. Some use the pen block, some repeatedly clone, but I don't think that matters. What I am asking is this; how do I make it so enemies appear on any part of the edge of the screen and preform actions?
mario91100
- drmcw
-
1000+ posts
How to make something appear anywhere on the edge of the project player?
Possibly misunderstanding the question but;
for the left edge;
go to -240, random -180 to 180
for the right edge;
go to 240, random -180 to 180
for the top edge;
go to random -240 to 240, 180
for the bottom edge;
go to random -240 to 240, -180
for the left edge;
go to -240, random -180 to 180
for the right edge;
go to 240, random -180 to 180
for the top edge;
go to random -240 to 240, 180
for the bottom edge;
go to random -240 to 240, -180
- mario91100
-
500+ posts
How to make something appear anywhere on the edge of the project player?
Possibly misunderstanding the question but;
for the left edge;
go to -240, random -180 to 180
for the right edge;
go to 240, random -180 to 180
for the top edge;
go to random -240 to 240, 180
for the bottom edge;
go to random -240 to 240, -180
YES! Thank you! I will give you credit in my project when it is finished. Thanks again!

- cheddargirl
-
1000+ posts
How to make something appear anywhere on the edge of the project player?
Closed by request.
- Discussion Forums
- » Help with Scripts
-
» How to make something appear anywhere on the edge of the project player?