Setting a Y Range for Brawler

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi folks, probably a really simple question, but it's not so obvious when you're not terribly familiar with maths.

    I'm in the process of developing an engine for a scrolling brawler, and attempting to use a variable to determine the current floor position of an Active. It's working pretty well for jumps so far and I'd like to move onto knockdowns, in order to do this I'd like to use the floor variable to determine whether or not the player is in line to hit them.

    The purple line would be the pixel where the floor position lines up with the enemy, but I'd like to expand the detectable range up and down a few pixels into the orange line area too, so the window where the enemy goes into it's attackable state would be wider, can someone suggest the formula I should be using to determine this?

    Thanks as always


    Please login to see this attachment.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!