Pages: 1
Topic closed
How would I make an instance of a bullet appear from a tank and move in the direction that the tank is facing? any help is appriciated
Offline
point in direction (Tank's direction)
move X steps
blocks Used:
<point in direction( direction of [Tank] ) direction of is found under sencing
<move( )steps>
Offline
More fully:
When I receive [shoot] {
Go to [tank]
Change x by (amount)
Change y by (amount)
Point in direction (direction of tank)
Show
Repeat until <touching edge> {
Move (10) steps
}
Hide
}
The change x/y part is to make sure the bullet appears to come out of the tank's barrel; tweak as necessary. The Repeat could be a set number, instead of until touching the edge; that would control the shot's distance. The 10 in the Move (10) steps will be the speed of the bullet.
Offline
Topic closed
Pages: 1