Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » An elusive script?
- klomaster10
- Scratcher
100+ posts
An elusive script?
This would seem like a simple script but I can't get one to do what I want it to do.
I need the enemy in my game to when a certain level no. Is reached, to “show” and then move to the left until it hits the left edge, then move right until it hits a black wall in the middle of the screen. It needs to repeat this until the next level is reached.
Thanks,
Klomaster10
PS. Sorry about the big text, I can't get it back to normal on my phone
I need the enemy in my game to when a certain level no. Is reached, to “show” and then move to the left until it hits the left edge, then move right until it hits a black wall in the middle of the screen. It needs to repeat this until the next level is reached.
Thanks,
Klomaster10
PS. Sorry about the big text, I can't get it back to normal on my phone
- drmcw
- Scratcher
1000+ posts
An elusive script?
repeat until <(level) > [1]>
wait until <(level) = [1]>
show
repeat until <touching [edge v]?>
change x by (-1)
end
repeat until <touching [wall v]?>
change x by (1)
end
end
Last edited by drmcw (May 19, 2014 13:05:06)
- Discussion Forums
- » Help with Scripts
- » An elusive script?