common shoot !
PowerKalisto
Member Posts: 34
Hi guys I got an actor who moves right and left and he shoot ... I maked a rule about the shooting but i got a problem ... when the guy shoot on the right the fireball works perfectly but when he shoot on the left the fireball spaw on his back and goes on the oposite direction so...right !
Comments
When your actor receives the GO LEFT RULE set the `[Direction]` attribute to 0
When your actor receives the GO RIGHT RULE set the `[Direction]` attribute to 1
Now, in your FIREBALL ACTOR create a RULE (condition) to check what the value of the game attribute `[Direction]` is set to.
RULE
`When Direction = 0`
`Move Fireball Right to Left`
`else`
`Move Fireball Left to Right`
Hope this helps.
Wayne
http://img85.imageshack.us/img85/7601/image1amb.png
http://img535.imageshack.us/img535/5236/image2vs.png
http://img687.imageshack.us/img687/1690/image3tx.png
http://img59.imageshack.us/img59/8941/image5zu.png