Help with fire system!
DreamWorld
Member Posts: 43
I want my tank to fire in 4 directions up,down,left,right. How can I do it?
Instead of changing the rotation of the image of the tank I change the image.
Instead of changing the rotation of the image of the tank I change the image.
Comments
You need to create one more attribute on the bullet itself. Call that direction too. At the very top of your bullet rules, create a new new that says:
change attribute self.Direction to game.Direction.
and then change all your direction rules to use self.Direction instead of game.Direction.
When the actor get's spawned, it will assign itself a direction (self.Direction). So when you hit a different button, keeps it's original direction.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left