Kill an Enemy by Tapping (clicking on) it

Discussion in 'How Can I...?' started by ngiri1998, Feb 21, 2016.

Tags:
  1. ngiri1998

    ngiri1998 Boxer

    Joined:
    Jan 17, 2016
    Messages:
    8
    Likes Received:
    0
    Hello all,

    The entire idea of my game is based on enemies being killed by simply touching them, how would I go about doing this in buildbox?

    Thanks.
     
  2. ngiri1998

    ngiri1998 Boxer

    Joined:
    Jan 17, 2016
    Messages:
    8
    Likes Received:
    0
    Oh, just to clarify, by touching it I mean physically touching it on a phone screen (clicking on it on a traditional PC).
     
  3. declanemery99

    declanemery99 Boxer

    Joined:
    Sep 25, 2015
    Messages:
    36
    Likes Received:
    22
    I would like to know this too ?
     
  4. wesam_badr

    wesam_badr Miniboss Boxer

    Joined:
    Oct 10, 2015
    Messages:
    1,063
    Likes Received:
    479
    you can't only if you find a trick to achieve the gameplay
     
    declanemery99 likes this.
  5. declanemery99

    declanemery99 Boxer

    Joined:
    Sep 25, 2015
    Messages:
    36
    Likes Received:
    22
    Ok thanks for the information great help :)
     
  6. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    69
    Likes Received:
    12
    any idea how to do that with BB2?
    it is 2019 by the way =)))
     
  7. Miko Buildbox

    Miko Buildbox Moderator Staff Member

    Joined:
    Mar 27, 2018
    Messages:
    25
    Likes Received:
    15
    This is not possible with BB2, sorry. With BB3 it can be achieved.
     
  8. HG-2018

    HG-2018 Avid Boxer

    Joined:
    Jun 18, 2018
    Messages:
    165
    Likes Received:
    91
    Ist possible ;), but unfortunately with a lot of effort.

     
    Sean Buildbox likes this.
  9. Killjoy1432

    Killjoy1432 Boxer

    Joined:
    Feb 2, 2019
    Messages:
    33
    Likes Received:
    6
    So I took a shot at this myself and came up with this its simple to do but not sure if it will work with your game you are more than welcome to give it a shot though. First off to explain what i did my first step was to take a the ball asset from the bounce template then remove the bounce and move nodes then i also removed the mesh to make it invisible. I added a 1 to the y and z in the touch move node of the assets node map then i just added a if collide and a defeat node to the asset i wanted to defeat. The out come is everytime i touch somewhere on the screen the bounce asset will move to where my finger is if i am touching an enemy the asset will move there and collide with the enemy thus defeating it. The picture show the assets node maps so you can see how i did it and the video shows it working. Its not a perfect way of doing it but i hope it helps some what.

     

    Attached Files:

  10. shahar.m192

    shahar.m192 Avid Boxer

    Joined:
    Oct 7, 2018
    Messages:
    198
    Likes Received:
    39
    you have a node now is touch attach if collide to it and then defeat and explosion it would do the trick.
     

Share This Page