Spawn Actor Problems

jasmine12345jasmine12345 Member Posts: 39
edited November -1 in Working with GS (Mac)
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

Comments

  • jasmine12345jasmine12345 Member Posts: 39
    tshirtbooth said:
    in your bullet have it set attribute,game.shoot to false

    cheers

    _________________________________________________________________________________

    FREE Training videos by TshirtBooth HERE
    Menu System #2 Template HERE
    Cover flow Template HERE
    Tiki Totem Template HERE
    Missile Command Template HERE

    same thing only fires 1 bullet
  • jasmine12345jasmine12345 Member Posts: 39
    tshirtbooth said:
    hmmm, ok on the fire button put this

    when touch is pressed and inside and game.shoot is false
    change game.shoot to true

    If game.shoot is true
    spawn bullet
    timer after 0.01 run to completion
    change game.shoot to false

    _________________________________________________________________________________

    FREE Training videos by TshirtBooth HERE
    Menu System #2 Template HERE
    Cover flow Template HERE
    Tiki Totem Template HERE
    Missile Command Template HERE

    sorry couple of things i didnt understand from your 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
  • jasmine12345jasmine12345 Member Posts: 39
    tha
    tshirtbooth said:
    Here see if this helps



    _________________________________________________________________________________

    FREE Training videos by TshirtBooth HERE
    Menu System #2 Template HERE
    Cover flow Template HERE
    Tiki Totem Template HERE
    Missile Command Template HERE

    that works perfectly for me as well ive already been through that tut,what im trying to do is fire bullets from an aeroplane using a button on the screen
    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
  • jasmine12345jasmine12345 Member Posts: 39
    tshirtbooth said:
    hmmm, if you feel like sending me your project i will take a look for you.

    sales@tshirtbooth.com

    yeah no problem thank you for offering to look,would i have to publish and then send you the file or just save and send id also need your email thanks
    by no means is this a project im firstly working out my controls thats what this is
  • jasmine12345jasmine12345 Member Posts: 39
    tshirtbooth said:
    no just zip in and email it to me

    just sent it thank you
  • jasmine12345jasmine12345 Member Posts: 39
    thank you that was quick
    i see you added an attribute to the bullet,god thats been testing me for hours
    once again thank you
Sign In or Register to comment.