Spawn Actor Problems
jasmine12345
Member Posts: 39
3 actors bullet,aircraft,fire button( 1x boolean attribute,(shoot)
bullet (change velocity)
aircraft(attribute game.shoot true)( spawn actor bullet)
fire button(actor receives event(touch) is pressed)(change attribute,game.shoot true)
thats my setup but every time i press the button it will not spawn a new actor(bullet), only works the first time i press it
thanks for any help
bullet (change velocity)
aircraft(attribute game.shoot true)( spawn actor bullet)
fire button(actor receives event(touch) is pressed)(change attribute,game.shoot true)
thats my setup but every time i press the button it will not spawn a new actor(bullet), only works the first time i press it
thanks for any help
Comments
creat a rule when touch is pressed ,dont understand (and inside and game.shoot false
If game.shoot is true
spawn bullet
timer after 0.01 run to completion
change game.shoot to false
when you use the( if )does that mean change attribute
the problem im having is that it wont spawn more bullets when i hit the button i only get one bullet no matter how many times i hit the button
by no means is this a project im firstly working out my controls thats what this is
i see you added an attribute to the bullet,god thats been testing me for hours
once again thank you