Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Fireboy and Watergirl
- LilacStars
-
Scratcher
20 posts
Fireboy and Watergirl
Hello everyone. I am working on a 'Fireboy and Watergirl' game, but need help with something. How can I code f-boy and w-girl to stop moving once the reach the edge or the thing they walk across.
Thank you in advance,
LilacStars
Thank you in advance,
LilacStars
- ApocTheLegend
-
Scratcher
6 posts
Fireboy and Watergirl
For the edge of the scene you can use this:
if <touching [edge v] ?> then
set x to (240)
end
Last edited by ApocTheLegend (Jan. 31, 2017 20:18:11)
- ApocTheLegend
-
Scratcher
6 posts
Fireboy and Watergirl
If you want it for a specific thing use the
and set x respectively
<touching [ spritename v] ?>
and set x respectively
- becauseimbatman300
-
Scratcher
25 posts
Fireboy and Watergirl
write:
when right arrow clicked, if not touching edge move 10 steps
if else move -10 steps
when left arrow clicked, if not touching edge move -10 steps
if else move 10 steps
do the same with the A and D
when right arrow clicked, if not touching edge move 10 steps
if else move -10 steps
when left arrow clicked, if not touching edge move -10 steps
if else move 10 steps
do the same with the A and D
- Discussion Forums
- » Help with Scripts
-
» Fireboy and Watergirl


