Shooting

Discussion in 'How Can I...?' started by vrandan, Oct 6, 2015.

  1. vrandan

    vrandan Boxer

    Joined:
    Oct 6, 2015
    Messages:
    19
    Likes Received:
    4
    How to make shooting button and not let the user spam it. Because when the user spams it doesn't have a limit and usually crashes due to spamming. I tried everything could someone help me please. Thank :)
     
  2. thomasburgess2000

    thomasburgess2000 Boxer

    Joined:
    Nov 10, 2015
    Messages:
    23
    Likes Received:
    6
    I have the same question!
     
  3. Sean Buildbox

    Sean Buildbox Serious Boxer

    Joined:
    Sep 24, 2015
    Messages:
    902
    Likes Received:
    1,076
    @vrandan @thomasburgess2000 Use the connections mode method of shooting. Drag in the "bullet" as an object in the Start Scene then connect it to the character. Then set it to spawner and spawn type Single Shooting to limit it or Shooting and you can limit it via the spawn rate.

    Honestly this is the best method to do this as you have a lot more control over the trajectory of the bullet and more. The only downside to this is you cannot have different bullet animations per character using this method.
     
    Jamie likes this.
  4. thomasburgess2000

    thomasburgess2000 Boxer

    Joined:
    Nov 10, 2015
    Messages:
    23
    Likes Received:
    6
    Perfect, thank you! I hadn't realized that is what single shooting did. @seanjonathanconnor
     
    Sean Buildbox likes this.
  5. Sean Buildbox

    Sean Buildbox Serious Boxer

    Joined:
    Sep 24, 2015
    Messages:
    902
    Likes Received:
    1,076
    No problem at all :)
     

Share This Page