logo hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    How to achieve this

    Scheduled Pinned Locked Moved
    Help and Support
    3
    6
    133
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SplitMindGamingS
      SplitMindGaming
      last edited by

      Im trying to have my player shot out a flame thrower. I tested a few things which was had the flame thrower object off screen then move to the player when a button is pressed. The only problem with this is that it doesnt move with the player. I tried weld attach but that just messes up with the movement completely. Any ideas on how to achieve this? It would be perfect if i could do this with the shoot behavior but instead of the bullets it shoots out a flame thrower. Is that possible?

      Aidan_FireA 1 Reply Last reply Reply Quote 0
      • RobinsonXR
        RobinsonX
        last edited by

        Yes, you can achieve this using the bullet shoot behavior. Change the bullet sprite to a fire graphic, configure all the Hit by Bullet behaviors and you're set!

        However, the major downside is that you cannot change the size of the bullets directly on the behavior. So if you wanted to resize the bullets, you would need to resize the sprite that it's using.

        Though, the major advantage is performance and reliability because you don't need to manipulate huge amounts of objects to do a small thing.

        (Changing bullet size should definitely be a feature!)

        SplitMindGamingS 1 Reply Last reply Reply Quote 0
        • RobinsonXR
          RobinsonX
          last edited by

          Oh and if you're using weld attach or pivot attach, the objects should have zero mass so they don't freak out.

          1 Reply Last reply Reply Quote 0
          • SplitMindGamingS
            SplitMindGaming @RobinsonX
            last edited by

            @RobinsonX so i actually tried this but i notice you cant add animations to the bullet shooting out. So for example i have this flamethrower fire animation. When it shoots out it only shows this first still image. Unless im doing something wrong which is a good possibility.

            1 Reply Last reply Reply Quote 0
            • Aidan_FireA
              Aidan_Fire @SplitMindGaming
              last edited by

              @SplitMindGaming Not sure if it's the best or what you're looking for, but here's my attempt at making a simple flamethrower: https://go.aws/30ybKkh

              SplitMindGamingS 1 Reply Last reply Reply Quote 0
              • SplitMindGamingS
                SplitMindGaming @Aidan_Fire
                last edited by

                @Aidan-Oxley thanks this a very smart approach.

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post