help with range

gabo-hanzo

Well-known member
Hello friends. I hope you are well. I am finishing a project called "Double Dragon Again" something basic but entertaining and not very extensive. I need help to perfect the enemies' attack so that they don't hit in the air before I am within range to receive the attack.
I have been changing the range and the rangez, and when I adjust it to the length of the enemy's arm or a little more, what happens is that the enemy in question gets almost close enough to kiss the player before starting to hit. In summary, they get too close, and the idea is that they shouldn't be idiots in combat. I am using openstats for this.
Can you please advise me?

In the image, you can see Abobo attacking higher up without hitting, and the basic enemy hitting the air near me.

abobo txt
anim attack1
loop 0
delay 12
offset 60 103
bbox 49 51 22 51
range 0 47
rangez -8 8
frame data/chars/abobo/a101.gif
delay 18
attack 65 61 31 17 10 0 0 0 0 8
frame data/chars/abobo/a102.gif
delay 12
attack 0 0 0 0


lopar.txt
anim attack1
loop 0
delay 10
offset 55 111
range 0 37
rangez -7 7
bbox 50 74 13 35
frame data/chars/lopar/a100.gif
delay 18
attack 59 81 18 8 9 0 0 0 0 7
frame data/chars/lopar/a101.gif
attack 0 0 0 0
delay 10
frame data/chars/lopar/a102.gif

thank you in advance

1752979309599.png1752979355167.png
 
Hello friends. I hope you are well. I am finishing a project called "Double Dragon Again" something basic but entertaining and not very extensive. I need help to perfect the enemies' attack so that they don't hit in the air before I am within range to receive the attack.
I have been changing the range and the rangez, and when I adjust it to the length of the enemy's arm or a little more, what happens is that the enemy in question gets almost close enough to kiss the player before starting to hit. In summary, they get too close, and the idea is that they shouldn't be idiots in combat. I am using openstats for this.
Can you please advise me?

In the image, you can see Abobo attacking higher up without hitting, and the basic enemy hitting the air near me.

abobo txt
anim attack1
loop 0
delay 12
offset 60 103
bbox 49 51 22 51
range 0 47
rangez -8 8
frame data/chars/abobo/a101.gif
delay 18
attack 65 61 31 17 10 0 0 0 0 8
frame data/chars/abobo/a102.gif
delay 12
attack 0 0 0 0


lopar.txt
anim attack1
loop 0
delay 10
offset 55 111
range 0 37
rangez -7 7
bbox 50 74 13 35
frame data/chars/lopar/a100.gif
delay 18
attack 59 81 18 8 9 0 0 0 0 7
frame data/chars/lopar/a101.gif
attack 0 0 0 0
delay 10
frame data/chars/lopar/a102.gif

thank you in advance

View attachment 11059View attachment 11060

Uhm... We already had this exact discussion in your thread about aggression... did you just decide to ignore me?


As I said already, don't make your ranges pinpoint precise. It will not work as you expect in real world gaming. Also, use the engine's built in range and collision box dug tools. They will go a long way to helping you confirm range and hitboxes.

DC
 
Back
Top Bottom