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. How do you code strikes?

How do you code strikes?

Scheduled Pinned Locked Moved Help and Support
3 Posts 2 Posters 660 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.
  • SplitMindGamingS Offline
    SplitMindGamingS Offline
    SplitMindGaming
    wrote on last edited by
    #1

    This is not my image by the way. Just a reference. How would you code this in hyperpad. Basically a strike coming from an animation. Do you redraw the collisions so it expands? I understand how this would work with rigging but I cant wrap my brain on how this would work with hyperpad.

    Title_Image.png

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

      Don't worry about redrawing collisions. Focus on the animation of the character for now.

      Started Touching -> Play Animation
      You can also make it play a sound and add other effects for the animation.

      You can have another object act as a hit box for the sword. It'll be invisible, but at least it'll make things a lot easier.
      You want to move this object to the player when the player strikes. It would teleport instantly, so use 0s duration.

      So now we have:
      Started Touching -> Move to Object + Play Animation
      You can change the anchors in the Move to Object behavior so that the hitbox can move to where the sword is swinging in front of the player!

      You can code the hit box object to damage enemies on collision.
      And of course, you want to take the hit box away so that the enemies don't get damaged when the animation is over. You can move the object to a point, say (-99999,-99999) for example, where it is very far from the enemies.

      And now we have:
      Started Touching -> Move to Object + Play Animation -> Move to Point

      SplitMindGamingS 1 Reply Last reply
      1
      • RobinsonXR RobinsonX

        Don't worry about redrawing collisions. Focus on the animation of the character for now.

        Started Touching -> Play Animation
        You can also make it play a sound and add other effects for the animation.

        You can have another object act as a hit box for the sword. It'll be invisible, but at least it'll make things a lot easier.
        You want to move this object to the player when the player strikes. It would teleport instantly, so use 0s duration.

        So now we have:
        Started Touching -> Move to Object + Play Animation
        You can change the anchors in the Move to Object behavior so that the hitbox can move to where the sword is swinging in front of the player!

        You can code the hit box object to damage enemies on collision.
        And of course, you want to take the hit box away so that the enemies don't get damaged when the animation is over. You can move the object to a point, say (-99999,-99999) for example, where it is very far from the enemies.

        And now we have:
        Started Touching -> Move to Object + Play Animation -> Move to Point

        SplitMindGamingS Offline
        SplitMindGamingS Offline
        SplitMindGaming
        wrote on last edited by
        #3

        @RobinsonX Nice. I was thinking it had to do with some type of weld attach. Never thought to make an invisible hit box. Thanks

        1 Reply Last reply
        1

        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