Shoot From Button Positions

Discussion in 'How Can I...?' started by kodagames, Oct 9, 2016.

  1. kodagames

    kodagames Avid Boxer

    Joined:
    Oct 11, 2015
    Messages:
    294
    Likes Received:
    115
    Does anyone know of any tricks to shoot from button positions?

    For example I have 3 buttons on the screen located at different positions, what I would like to do is shoot a bullet from the button that is pressed.

    Im hoping theres a hidden trick Im unaware of to achieve this?
     
  2. kodagames

    kodagames Avid Boxer

    Joined:
    Oct 11, 2015
    Messages:
    294
    Likes Received:
    115
    Ok this post kind of solves this:
    https://www.buildbox.com/forum/index.php?threads/advanced-move-an-object.7176/#post-38034

    Many extra components need to be added but its a way forward. The how to for others and for me later ;)

    1- Add a character button to the UI screen, rename it, set the function to Component Action.
    2- Drag an Object in the game scene that looks like the button object, set its properties to be Physics Object (Preset), Physics (Object Type),
    3- Click on the object in the left panel (the one from step 2), add an advanced move.
    4- Check activate on release, Mathematical operation set to replace, Linear Velocity (to something), Event look for its name from step 1.
    Done.
     
    Last edited: Oct 9, 2016
  3. kodagames

    kodagames Avid Boxer

    Joined:
    Oct 11, 2015
    Messages:
    294
    Likes Received:
    115
    This brings up another question would it be possible to destroy or disable a button after its been clicked?
     
    Last edited: Oct 10, 2016

Share This Page