Discuss Scratch
- Discussion Forums
- » Things I'm Making and Creating
- » portal 2
- Shopno3009
-
Scratcher
33 posts
portal 2
ok i put portal but i am creating turrets can anyone tell how to do it easier
link: https://scratch.mit.edu/projects/607983946/
and 10% progress
link: https://scratch.mit.edu/projects/586940539/
link: https://scratch.mit.edu/projects/607983946/
and 10% progress
link: https://scratch.mit.edu/projects/586940539/
- Shopno3009
-
Scratcher
33 posts
portal 2
turret code
main code:
wall detection for playing hiding
detection
main code:
when green flag clicked
forever
set range
if <not <touching [map] ?>> then
if <touching [tirget] ?> then
broadcast [shoot] and wait
wait (0.5) secs
end
end
end
wall detection for playing hiding
define set range
go to [turret]
set [ghost] effect to (100)
size
repeat until <not <>><touching [map] ?>
set size to (-1) %
end
detection
define sizeexample link: https://scratch.mit.edu/projects/611507816/editor/
set size to (100) %
repeat until <touching [map] ?>
change size by (40)
end
Last edited by Shopno3009 (Dec. 4, 2021 15:45:10)
- Discussion Forums
- » Things I'm Making and Creating
-
» portal 2
