Can you stop a character midway through a path animation?

Discussion in 'How Can I...?' started by Fractal, May 25, 2016.

  1. Fractal

    Fractal Boxer

    Joined:
    Oct 6, 2015
    Messages:
    9
    Likes Received:
    4
    Hey guys,

    I want to make a game where the character only moves forward when I press a button. I wanted the character to follow a path.

    Is it possible to hold the button and enter the path and say midway through I let go of the button and it can stop at any time (eg to dodge a fireball/bullet) and I can then press and hold the button to resume the path?

    Cheers
     
  2. wesam_badr

    wesam_badr Miniboss Boxer

    Joined:
    Oct 10, 2015
    Messages:
    1,065
    Likes Received:
    479
    Of course you can it depend in your orientation use up, down, right and left key it do the job of hold and move in press.
     
  3. EZKad

    EZKad Avid Boxer

    Joined:
    Apr 26, 2016
    Messages:
    157
    Likes Received:
    155
    I don't think it's possible, when the character is moving on a path, it can't leave it, this is why they created a ghost jump component which "mimics" a jump while the character stay attached to the path.
     
  4. Fractal

    Fractal Boxer

    Joined:
    Oct 6, 2015
    Messages:
    9
    Likes Received:
    4
    I'll look more into the "ghost jump" component. I'm not wanting it to leave the path, just wanting to know if I can say hold a button and the character pauses midway through, when I release it continues along the path. Seems like once you enter a path it follows it automatically like an animation and there's nothing you can do until it reaches the end.
     
  5. reegannaidoo

    reegannaidoo Boxer

    Joined:
    Dec 11, 2015
    Messages:
    87
    Likes Received:
    27
    Hey, the game SKY does this well and was built in BB
     
  6. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    This is incorrect. test the bb2 bbdoc below. A path is a magnet force

    clicky clicky clicky... use the left and right arrows to move side to side, and eventually, when you reach the next scene, you will be completely free of the path...

    https://www.dropbox.com/s/hc65swh6i36i9w3/jump_away_from_path.bbdoc?dl=0
     
  7. VectologyGames

    VectologyGames Serious Boxer

    Joined:
    Oct 5, 2015
    Messages:
    529
    Likes Received:
    473
    You will have to make multiple paths
     
  8. Taimoor Javaid

    Taimoor Javaid Avid Boxer

    Joined:
    Oct 5, 2015
    Messages:
    274
    Likes Received:
    211
    No to build a game like sky is not possible in BB yet (orientation based jump animation)
     
  9. reegannaidoo

    reegannaidoo Boxer

    Joined:
    Dec 11, 2015
    Messages:
    87
    Likes Received:
    27
    Hey, Im pretty sure it is possible in BB2.
    Its really just paths attached to paths, with a portal to duplicate the character and then they use ghost jump to jump.
     
  10. reegannaidoo

    reegannaidoo Boxer

    Joined:
    Dec 11, 2015
    Messages:
    87
    Likes Received:
    27
    Hey, maybe add a button to decrease the velocity, i did a video previously for something similar.
    Here's the thread: https://www.buildbox.com/forum/inde...ter-only-with-action-buttons.2311/#post-14516
     
  11. reegannaidoo

    reegannaidoo Boxer

    Joined:
    Dec 11, 2015
    Messages:
    87
    Likes Received:
    27
    Just thinking out loud hear, if you don't want any button function to stop the character, you can solely use paths....
    Have two paths,1 with a higher speed and then immediately insert a path with lower speed, this will surely slow the speed down and may just make the character stop, just make sure that the activation radius is big enough.
    Sort of like brakes on a car. o_O;)
     
  12. Taimoor Javaid

    Taimoor Javaid Avid Boxer

    Joined:
    Oct 5, 2015
    Messages:
    274
    Likes Received:
    211
    just read my comment again i'm talking about orientation base animation of ghost jump.
     
  13. reegannaidoo

    reegannaidoo Boxer

    Joined:
    Dec 11, 2015
    Messages:
    87
    Likes Received:
    27
    Y
    You mean change the direction of character based on ghost jump?
     
  14. Taimoor Javaid

    Taimoor Javaid Avid Boxer

    Joined:
    Oct 5, 2015
    Messages:
    274
    Likes Received:
    211
    I'm talking about Animation of jump (left, right ,straight) all these have different animation.
     
  15. shabeerahmedshah

    shabeerahmedshah Boxer

    Joined:
    Mar 29, 2016
    Messages:
    3
    Likes Received:
    0
    Can I any one help me. I am about to show the Game Over Screen once the player collides with the enemy object.
     
  16. Taimoor Javaid

    Taimoor Javaid Avid Boxer

    Joined:
    Oct 5, 2015
    Messages:
    274
    Likes Received:
    211
    s
    Set the object type to enemy.
     
  17. Xoctrebla

    Xoctrebla Avid Boxer

    Joined:
    Mar 19, 2017
    Messages:
    170
    Likes Received:
    98
    if path 1 and path 2 are on the same path, what's the best way to get a character to follow one path when a button is pressed and then follow another with the button is not pressed. I'm looking for this type of functionality but not sure how to set it up.
    Thanks!
     
  18. zyrah.G

    zyrah.G Boxer

    Joined:
    Feb 16, 2018
    Messages:
    9
    Likes Received:
    0
    change the direction of the animation of ghost jump ?
    is this option in buildbox 2.2.9 or 3 ?
     

Share This Page