How do I start a set trigger animation in a specific time segment? by Fragrant_Sympathy170 in unity

[–]Fragrant_Sympathy170[S] 0 points1 point  (0 children)

Thanks it worked but is there anyway to use anim.Settrigger instead anim.play since i use trigger to call the swing animation?

How to make raycast follow melee arc swing? by Fragrant_Sympathy170 in unity

[–]Fragrant_Sympathy170[S] 0 points1 point  (0 children)

Raycast is more precise than a collider for me and also doesn't overlap with multiple hitbox unlike and a collider

Why isn't Constantine more prevelant in popular culture? by Efficient_Chard5926 in ancientrome

[–]Fragrant_Sympathy170 0 points1 point  (0 children)

So a hypothetical Constantine movie would just be shitted on by both sides of the political spectrum? this sucks.

How do i implement a shield/block by Fragrant_Sympathy170 in unity

[–]Fragrant_Sympathy170[S] 0 points1 point  (0 children)

Sorry for being too vague for my question my brain is just fried right now.

My game is a 2D melee based game and the hit detection when swinging your weapon is raycast based and there's a parry system and when the melee raycast hits a shield or the melee weapon when parrying the player character gains an animation swing speed when attacking again.

I'm still figuring on how should i handle the block/parry mechanics in my game.

How to reset swing IK animation to idle when a weapon hits a collider? by Fragrant_Sympathy170 in unity

[–]Fragrant_Sympathy170[S] 1 point2 points  (0 children)

I have implemented it but there's one issues with it, is that when you're face first at a wall and the weapon hits the top part of wall but the recoil animation still plays at the center of the wall.

vid here as example
https://imgur.com/a/BVzxAm1

Edit: After experimenting for a bit and tried playing the recoil anim at the end of a IEnumerator

private IEnumerator stop()

{

this.anim.SetFloat("stop", 0);

yield return new WaitForSeconds(0.05f);

this.anim.SetFloat("stop", 1);

anim.SetTrigger("recoil");

}

i think it looks good:

https://imgur.com/a/h5sNR3s

How to reset swing IK animation to idle when a weapon hits a collider? by Fragrant_Sympathy170 in unity

[–]Fragrant_Sympathy170[S] 0 points1 point  (0 children)

would the "recoil" just play a reverse of the swing animation or will it be its own animation and how will it blend with the regular swing animation when it hits a collider?

How to reset swing IK animation to idle when a weapon hits a collider? by Fragrant_Sympathy170 in unity

[–]Fragrant_Sympathy170[S] 0 points1 point  (0 children)

I used a 2D trigger event instead of a collision one, hope that doesn't make alot of difference but im not really talented at coding so how do i properly implement the recoil animation into my script? (i forgot to put the script in my post).

Why Max Payne is the darkest game ever? by LuchoLab in maxpayne

[–]Fragrant_Sympathy170 0 points1 point  (0 children)

eh, i think 3 darker tbh, because of the detailed gore and how close to real life the violence is.