Discuss Scratch

mario91100
Scratcher
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
drmcw
Scratcher
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
mario91100
Scratcher
500+ posts

How to make something appear anywhere on the edge of the project player?

drmcw wrote:

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
Scratch Team
1000+ posts

How to make something appear anywhere on the edge of the project player?

Closed by request.

Powered by DjangoBB