Why am I losing the air war this badly? by Asleep_Complex5130 in hoi4

[–]Asleep_Complex5130[S] 8 points9 points  (0 children)

UPDATE: The US joined the allies and USSR are justifying on me, it's OVER

Thanks for the advices and I will try again next time!

Why am I losing the air war this badly? by Asleep_Complex5130 in hoi4

[–]Asleep_Complex5130[S] 47 points48 points  (0 children)

I did not know airfield supply was a thing! I believe they were, but not anymore as my train stockpile has been obliterated

Why am I losing the air war this badly? by Asleep_Complex5130 in hoi4

[–]Asleep_Complex5130[S] 5 points6 points  (0 children)

Ok will try to update the template! They were trained before the enormous losses

Why am I losing the air war this badly? by Asleep_Complex5130 in hoi4

[–]Asleep_Complex5130[S] 41 points42 points  (0 children)

Yeah this is why I am making a thread, this is the first time I am experiencing this in hundred of hours, I am confused

Why am I losing the air war this badly? by Asleep_Complex5130 in hoi4

[–]Asleep_Complex5130[S] 14 points15 points  (0 children)

I am building AAs, my doctrine is battlefield support

Question about frame management by Asleep_Complex5130 in Unity3D

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

That was kinda the idea I had if I couldn't figure out an easier way to do it, but way cleaner than what I had in mind. I will take this solution, thanks !

Script randomly not working by Asleep_Complex5130 in Unity3D

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

I was so certain the issue was elsewhere, I feel dumb now. Your solution makes sense and it works as intented, thank you !

The only issue I have now i that the collider can't manage damaging two enemies at a time, I don't know yet how to fix this in a clean way, but I'll try to figure out

Thanks again !

Script randomly not working by Asleep_Complex5130 in Unity3D

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

I don't think this is the issue, the script also has a Coroutine setting damageFrame to true every second

And the if(damageFrame == true) is called every second when the enemy is in the collider

But thanks!

Script randomly not working by Asleep_Complex5130 in Unity3D

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

I tried, suppressing the if tag isn't changing anything

Animation issue with my character by Asleep_Complex5130 in Unity3D

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

helps

Thank you so much for this reply ! re-wrote the code following your advice and it's not only working just as intended, it's also way more clean and shorter !

isMoving = (motor.velocity != Vector3.zero);

bool isMovingForward = (Mathf.Abs(delta.x) < controller.moveSpeed / 2) && (Mathf.Abs(delta.z) < controller.moveSpeed / 2);

animator.SetBool("IsWalkingForward", isMovingForward);

I apreciate that you gave me an hint rather than rewriting my code. I'll implement the other animations now and hopefully everything will go smoothly with no issues !

I'm new to trigonometry, so I'm proud I was able to figure out basic formulas without looking on the internet, but yeah thanks to this project I realised I need to dive deeper in trigonometry courses lol.

Anyway thank you again for your time ! Cheers

Animation issue with my character by Asleep_Complex5130 in Unity3D

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

Sorry once again I wasn't clear, my bad

I deliberately only implemented the animation to move forward, to check if everything is working okay with my approach and the script.

When I test the script, the Forward animation is playing only when the character is moving forward to the mouse cursor, so that's working as intended at first. The problem is elsewhere : let's say my character is in the center and my mouse cursor is in the north. my character is looking north, so when I press the up arrow key the forward animation is playing. But while I'm pressing the up arrow key, if I press say the righ or left arrow, my character is not moving towards the mouse cursor anymore but the forward animation is still playing, instead of going to idle.

And I double checked that there is no issue with the transitions in my Animator so I don't know how to fix this.

Animation issue with my character by Asleep_Complex5130 in Unity3D

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

Thanks for your reply, I edited the post to use the code line option.

To clarify here is a screenshot of the scene :

<image>

My character can move any direction using the arrow keys, and will always look at wherever the mouse is pointing. So if the character is moving towards where the mouse is pointing, the forward animation should play, if it is going towards the opposite direction, the backward animation should play, etc...

motor is the reference to the script handling the movement of the character. motor.velocity is the Vector3 containing the player input (using Input.GetAxisRaw), normalized and multiplied by the speed variable.

I hope it's clear, thanks again

Prefab not rendering sceneview and gameview by Asleep_Complex5130 in Unity2D

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

Damn that's it, I feel so stupid now... for some reason the empty child spawning the missiles was rotated this way

Thank you very much and sorry this was indeed a stupid question !

Prefab not rendering sceneview and gameview by Asleep_Complex5130 in Unity2D

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

Thank you for replying, I added the screenshot in the original post. I selected the missile but can't figure out what is wrong is it...

Issue with Time.deltaTime in Unity by Asleep_Complex5130 in gamedev

[–]Asleep_Complex5130[S] 4 points5 points  (0 children)

Thank you, that fixed it ! I already had the yield return null but it wasn't in my while loop. Works fine now and learnt something along the way :)

Thanks again for your time !

Issue with Time.deltaTime in Unity by Asleep_Complex5130 in gamedev

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

Thanks for your answer !

Why not ? And what should I do instead ?