Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Coming from the edges
- -Guy-
- Scratcher
38 posts
Coming from the edges
I was making a Core Defence game but I don't know how to make the bad thing come from the edge can anybody help me, Thank You if considered
- meowmoo
- Scratcher
500+ posts
Coming from the edges
when green flag clicked
delete (all v) of [xPositions v]
add [230] to [xPosition v]
add [-230] to [xPosition v]
delete (all v) of [yPositions v]
add [180] to [yPosition v]
add [-180] to [yPosition v]
when I start as a clone
go to x: (item (random v) of [xPositions v]) y: (item (random v) of [xPositions v])
...
Last edited by meowmoo (April 27, 2014 10:42:20)
- -Guy-
- Scratcher
38 posts
Coming from the edges
Hey thanks meowmoo it really helped
when green flag clicked
delete (all v) of [xPositions v]
add [230] to [xPosition v]
add [-230] to [xPosition v]
delete (all v) of [yPositions v]
add [180] to [yPosition v]
add [-180] to [yPosition v]
when I start as a clone
go to x: (item (random v) of [xPositions v]) y: (item (random v) of [xPositions v])
...
- Discussion Forums
- » Help with Scripts
- » Coming from the edges