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

    Shoot Behavior acting weird?

    Scheduled Pinned Locked Moved
    Help and Support
    3
    4
    262
    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.
    • Ultra RobotU
      Ultra Robot
      last edited by

      I think the Shoot behavior is acting a bit weird for me. I'm testing my game at the moment, and I'm finding that when my character shoots lasers, the lasers shoot from BEHIND the character, and will get destroyed before even firing with Destroy on Impact on. With Destroy on Impact turned off, the bullets will just glide along the ground, as shown in the following images:

      1_1493906543054_image.png 0_1493906543051_image.png

      My goal here is to make the lasers shoot out of the "eyes" of the character, rather than seeing the lasers just float along the ground. Some suggestions for how to accomplish something like this would be appreciated! Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • S
        Stephenn
        last edited by

        Try changing the emitter position to x 20% y 80%

        1 Reply Last reply Reply Quote 0
        • S
          Stephenn
          last edited by

          • y 20% x 80%
          1 Reply Last reply Reply Quote 0
          • MurtazaM
            Murtaza Admin
            last edited by

            As Stephen says,
            it looks like your emitter position is the problem. The emitter position is where on the object the bullet will shoot from.
            Since in your case, it looks like the bullet is very close to the ground, when you have destroy on impact on, it destroys immediately because it's hitting the ground right away.

            You can enter values manually from the shoot behaviour properties, or you can tap the object graphic from the behaviour properties and move the blue target to the location you want the bullet to shoot from.

            https://hyperpad.zendesk.com/hc/en-us/articles/115000898946-Shoot-with-Button

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