Discuss Scratch
- Discussion Forums
- » Project Ideas
- » A reliable script to simulate ballistic weapons.
- Hawkeye789
- Scratcher
3 posts
A reliable script to simulate ballistic weapons.
I want to make a physics-based game based on guns. The problem is I cannot get the gun to “fire” the bullet. I searched other projects in hope to get some help but did not find my desired script. Has Anyone discovered a way to solve this problem? If so any help would be appreciated.
- tanishqssg3
- Scratcher
6 posts
A reliable script to simulate ballistic weapons.
when green flag clicked
hide
forever
if <mouse down>
create clone of (bullet)
when I start as a clone
goto (player)
point in direction (direction of player)
show
go to front
repeat until (touching edge)
move (5) steps
hide
delete this clone
- Discussion Forums
- » Project Ideas
- » A reliable script to simulate ballistic weapons.