Character Stops Shooting After Portal

Discussion in 'Technical Discussion' started by thatguyminib, Mar 17, 2018.

  1. thatguyminib

    thatguyminib Serious Boxer

    Joined:
    Jul 1, 2017
    Messages:
    552
    Likes Received:
    309
    Just wondering if anyone else has this problem, but after my character goes through a portal it stops shooting.
     
  2. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    How have you set up your shooting?
     
  3. Lamora

    Lamora Avid Boxer

    Joined:
    Dec 8, 2016
    Messages:
    282
    Likes Received:
    140
    I have to rework my game a little because of this

    Everything that is connected to character will lost conection after teleporting

    So you propabaly have bullet conetcted to character with spawner

    You can workout it around if your game is designed this way, put action on teleport exit with the same object and spawner with timeout for 999 or until next teleport :)
     
    AaroArts likes this.
  4. AppNasty

    AppNasty Miniboss Boxer

    Joined:
    Apr 14, 2016
    Messages:
    1,485
    Likes Received:
    890
    Generally people drop the bullet into the scene and connect it to player. This will cause the player to teleport but not the object. To solve this...open your players default animation and drop the bullet in there instead. Set it to be character bullet etc. Now when you go through...it goes with you as its now literally apart of the character.
     
    ZackGriset, AaroArts and thatguyminib like this.
  5. thatguyminib

    thatguyminib Serious Boxer

    Joined:
    Jul 1, 2017
    Messages:
    552
    Likes Received:
    309
    When I have the bullet in the animation though how do I play sound everytime it spawns?
     
  6. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Put a sound effect in the Shooting Button on the UI.
     
    ZackGriset likes this.
  7. thatguyminib

    thatguyminib Serious Boxer

    Joined:
    Jul 1, 2017
    Messages:
    552
    Likes Received:
    309
    It is continually shooting with no button pushing.
     
  8. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    You could just ad the Shooting Sound to the Background music for that World.
    Or you could even attach it to Actions inside the Shooting Animation, so when it Shoots, your Hero collects the Action and plays the Shooting Sound.
     
    ZackGriset likes this.
  9. thatguyminib

    thatguyminib Serious Boxer

    Joined:
    Jul 1, 2017
    Messages:
    552
    Likes Received:
    309
    Works perfectly. For anyone in the future that has this problem put the action within the bullet idle animation, not the character.
     
  10. SpoonCrysis

    SpoonCrysis Avid Boxer

    Joined:
    Aug 10, 2018
    Messages:
    175
    Likes Received:
    26
    HI

    you can't put an action on a portal so how do you do this?
     
  11. Lamora

    Lamora Avid Boxer

    Joined:
    Dec 8, 2016
    Messages:
    282
    Likes Received:
    140
    Hi

    But you can put action next to a portal where character exit its
    It all depends if your game is designed so it will work
     
  12. SpoonCrysis

    SpoonCrysis Avid Boxer

    Joined:
    Aug 10, 2018
    Messages:
    175
    Likes Received:
    26
    Ok how do you design your game to make it work?
     

Share This Page