Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. Projectile not showing up on layer

Projectile not showing up on layer

Scheduled Pinned Locked Moved Help and Support
22 Posts 3 Posters 464 Views 1 Watching
  • 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.
  • MrAeon1111M Offline
    MrAeon1111M Offline
    MrAeon1111
    wrote last edited by
    #1

    Hi,
    With shoot with button when I change layer everything goes fine, except that I cannot see the projectile?
    My character is on global UI. Then I have to move it through scene then I have to move it through layers.
    When it moves through layers, the projectile cannot be seen anymore. Because the projectile it’s not an object that I can move.
    It’s inside shoot with button node.
    Any idea how to fix this?

    1 Reply Last reply
    0
    • MurtazaM Offline
      MurtazaM Offline
      Murtaza
      Admin
      wrote last edited by
      #2

      Does the projectile show up if you place the shooter on a regular layer, and don't move it between layers?

      1 Reply Last reply
      0
      • MrAeon1111M Offline
        MrAeon1111M Offline
        MrAeon1111
        wrote last edited by
        #3

        Yes, exactly…

        1 Reply Last reply
        0
        • MrAeon1111M Offline
          MrAeon1111M Offline
          MrAeon1111
          wrote last edited by
          #4

          I create a new layer and now it works…

          1 Reply Last reply
          0
          • MrAeon1111M Offline
            MrAeon1111M Offline
            MrAeon1111
            wrote last edited by MrAeon1111
            #5

            But the shoot doesn’t work it doesn’t respect the layers.
            Is it possible to change the Z axis of the bullet somehow?

            1 Reply Last reply
            0
            • MurtazaM Offline
              MurtazaM Offline
              Murtaza
              Admin
              wrote last edited by
              #6

              Interesting, the bullet should be moving across layers with the parent object. I've added it to our list of known bugs to address for the next update.

              1 Reply Last reply
              0
              • MrAeon1111M Offline
                MrAeon1111M Offline
                MrAeon1111
                wrote last edited by
                #7

                I retested it again.. it would be nice thanks… No shoot for a bullet hell.. it’s problematic…

                1 Reply Last reply
                0
                • MrAeon1111M Offline
                  MrAeon1111M Offline
                  MrAeon1111
                  wrote last edited by
                  #8

                  Do you have any idea how to re-create that shoot button?
                  To shoot at a specific angle? To shoot at 360° for example to shooting in different pattern is there any up-to-date tutorial somewhere?

                  1 Reply Last reply
                  0
                  • MrAeon1111M Offline
                    MrAeon1111M Offline
                    MrAeon1111
                    wrote last edited by
                    #9

                    This doesn’t really help me a lot. I don’t understand it. I can’t find any nodes with that name. Would it be possible to have a concrete explanation on how that works? Thank you.

                    IMG_3118.jpeg

                    1 Reply Last reply
                    0
                    • RobinsonXR Offline
                      RobinsonXR Offline
                      RobinsonX
                      wrote last edited by
                      #10

                      I'm assuming the screenshot you provided is from a tutorial.

                      What this is doing is getting the rotation of an object, calculating the x and y values to use based on the rotation, and then applying a force using those values. Effectively, this applies a force on a spawned object (presumably a bullet, a physics object) in the direction of the object.

                      Normalized x direction is a Math Function behavior that is using Cosine.
                      Normalized y direction is a Math Function behavior that is using Sine.

                      However, I see that the names are mixed up in the screenshot. So Sine is used for the x and Cosine is used for the y.

                      The multiplier is self-explanatory - you can adjust the power that is applied on the force. Larger multiplier means stronger force. It looks like it's using a health bar to adjust the power.

                      1 Reply Last reply
                      0
                      • RobinsonXR Offline
                        RobinsonXR Offline
                        RobinsonX
                        wrote last edited by
                        #11

                        Also, good news! This bug has been fixed. An object shooting a bullet will still be able to shoot bullets when switching layers. We've also added the ability to adjust the Z order of the bullets.

                        1 Reply Last reply
                        0
                        • MrAeon1111M Offline
                          MrAeon1111M Offline
                          MrAeon1111
                          wrote last edited by MrAeon1111
                          #12

                          Did you publish a new version of the app?
                          How did you fix it? Is it something in the behaviour that is visible so we can change the Z axis? Or we have to use a behaviour on that behaviour?

                          1 Reply Last reply
                          0
                          • MrAeon1111M Offline
                            MrAeon1111M Offline
                            MrAeon1111
                            wrote last edited by
                            #13

                            It would be nice that the bullets could have a tag just like an object.
                            It’s very useful when you have a hit box inside a collision box.
                            So you have a collision box for general collision and in the centre you have the real hit box

                            1 Reply Last reply
                            0
                            • MrAeon1111M Offline
                              MrAeon1111M Offline
                              MrAeon1111
                              wrote last edited by
                              #14

                              Or, do you have any work around?

                              1 Reply Last reply
                              0
                              • RobinsonXR Offline
                                RobinsonXR Offline
                                RobinsonX
                                wrote last edited by
                                #15
                                1. App hasn't been updated yet.
                                2. The Z order property is editable in the shoot behavior itself.
                                3. I'm guessing you mean to have bullets ignore collisions of some objects - not possible at the moment. Treating bullets like objects would bring a lot of performance overhead. It would be a lot better to use actual objects instead since you can define custom behavior logic for each bullet.
                                1 Reply Last reply
                                0
                                • MrAeon1111M Offline
                                  MrAeon1111M Offline
                                  MrAeon1111
                                  wrote last edited by
                                  #16

                                  I cannot find the Z option in shoot…

                                  1 Reply Last reply
                                  0
                                  • MrAeon1111M Offline
                                    MrAeon1111M Offline
                                    MrAeon1111
                                    wrote last edited by
                                    #17

                                    And yes, it’s exactly what I meant about the bullet object… it would be nice to have a both system. even if it has performance issue… the performance issue we can judge by ourselves when we do something..
                                    Otherwise, it’s much too limited

                                    1 Reply Last reply
                                    0
                                    • MrAeon1111M Offline
                                      MrAeon1111M Offline
                                      MrAeon1111
                                      wrote last edited by MrAeon1111
                                      #18

                                      As I’m not an engineer in IT or mathematician.
                                      I would need a tutorial on how to shoot with a precise angle.
                                      Trying to become an engineer now, it will be too late for me.
                                      I would need a tutorial for that.

                                      When you just have to have a node that say shoot by an angle. making this by yourself with math formula, it’s mind blowing weird.
                                      Do you know somebody or something that can show me a complete and clean explanation how to do this?
                                      Thank you very much

                                      1 Reply Last reply
                                      0
                                      • RobinsonXR Offline
                                        RobinsonXR Offline
                                        RobinsonX
                                        wrote last edited by
                                        #19

                                        The update has not released yet, so you won't see this z order setting yet.

                                        I'll quickly whip up a demo project where you can shoot objects (instead of bullets) at whatever angle you please. You can customize the behavior of the objects if you like.

                                        1 Reply Last reply
                                        0
                                        • RobinsonXR Offline
                                          RobinsonXR Offline
                                          RobinsonX
                                          wrote last edited by
                                          #20

                                          Here is the project!
                                          https://bit.ly/4x0FdQP

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Search