Swipe Node

Discussion in 'BBNodes' started by LBPToo, Dec 16, 2018.

  1. LBPToo

    LBPToo Avid Boxer

    Joined:
    Nov 1, 2016
    Messages:
    233
    Likes Received:
    141
    Price(FREE or PAID): FREE
    Node Name: Allow swipe, up/down, left/right
    Type of Node: Control Character
    Description: This node allows you to swipe your finger/mouse up/down or left/right and invoke an action in response to those swipes.
    Special Instructions:
    Author: @LBPToo
    Date Uploaded: 12-16-2018
    Last Update: 12-18-2018


    The only attribute for this node is "Kill Connections". You'll probably want this on in most cases, though it depends on how you're going to use it. All this option does is resets whatever nodes you have attached to the outputs on this node to disabled before each new swipe. If you don't, and depending on what you have connected to the node, update() will still be running in those nodes from the first swipe, which may give you unwanted behavior. This setting should actually be taken care of in the node you're connecting to and not from this node, so if you know what you're doing, turn this option off and test for it in the nodes you're connected to.

    The attached zip has the node as a bbasset and a bbdoc you can open and test it.

    ****UPDATE 12-18-18 - Node works the same, just moved the code around a bit. Sample file works a little differently on swipes.
     

    Attached Files:

    Last edited: Dec 18, 2018
  2. bbarbi

    bbarbi Boxer

    Joined:
    Dec 1, 2018
    Messages:
    1
    Likes Received:
    0
    Thanks!
     
  3. wesam_badr

    wesam_badr Miniboss Boxer

    Joined:
    Oct 10, 2015
    Messages:
    1,065
    Likes Received:
    479
    Great node thank you
     
  4. superfabiuz

    superfabiuz Boxer

    Joined:
    Nov 23, 2018
    Messages:
    19
    Likes Received:
    2
  5. PraneethMadush

    PraneethMadush Boxer

    Joined:
    Jun 10, 2019
    Messages:
    12
    Likes Received:
    2
    Thanks bro
     
  6. PraneethMadush

    PraneethMadush Boxer

    Joined:
    Jun 10, 2019
    Messages:
    12
    Likes Received:
    2
    Hello Sir,
    I have one qustion. The question is When I get to the change the physics settings of my character. but there is not an input named "restitution value" as your video.

    Can you help me how to do that?
     

    Attached Files:

  7. devon

    devon Boxer

    Joined:
    Aug 25, 2020
    Messages:
    1
    Likes Received:
    0
    hey so how do i put this node into my objects because its not working
     
  8. Jackazoid

    Jackazoid Avid Boxer

    Joined:
    Sep 7, 2017
    Messages:
    176
    Likes Received:
    72
    @LBPToo is there also an update possible for "if collide" to detect if an object stopped colliding?
     
    Last edited: Aug 28, 2020

Share This Page