Hello , I am trying to make a top down combat system similar to games like moba legends and diablo. Where you have a selection of your abilities on the right side of the screen which can be selected and aimed using a joystick and I wanna know how I can implement it into the game.
This is what it looks like
I’ve broke it down into three parts to make it easier
1.) I need a way such that when the player is interacting with the joystick , it shows the damage cone which can be controlled using the joystick.
2.) I need to move the player or the projectile on the selected path of the damage cone.
3.) check if the projectile or player hit the enemy and apply damage
3rd part should be the easiest but the first and second one is what I’m confused about pls help
The range , width and actual shapes would be variable depending on what character I’m playing with and what move is selected but I’ll probably use an array for each move. The player would be moving at all times , so it would be smth like the center of the cone is always fixed and attached to the player and the outer arc would move so as to aim , same would be for the straight line type shape. I’m guessing we can use a shape painter object somehow ?
i had ‘draw relative’ ticked (important) and ‘clear every frame’
the actions are the fill path actions - scroll down to find them. You need to make sure you begin and end the path to fill it.
ive used XfromAngleAndDistance() to get the xy for the point to draw the arc from and To.