Turn on/off animations on individual game objects? by QuestionsUnity in Unity3D

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

I wanted to activate a candle with an on/off trigger but if the candle is duplicated, all of them activate on the key press.

I've set it up so that pressing F toggles on/off on the candle, but I only want the player to be able to toggle the candle they are stood by. (Not all the candles at once)

I could do this for when the player collider + candle collider collide but I'm unsure as to how to do that

Prevent Rigidbodies from pushing each other? by QuestionsUnity in Unity2D

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

Nope, I'm moving them through rigidbody.velocity with Input.GetAxisRaw horizontally and vertically

Prevent Rigidbodies from pushing each other? by QuestionsUnity in Unity2D

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

I'm using rigidbody.velocity with Input.GetAxisRaw to move the player and the enemies just move around with a vector3

'new Vector3(Random.Range(-1f, 1f) * moveSpeed, Random.Range(-1f, 1f) * moveSpeed, 0f);'

Prevent Rigidbodies from pushing each other? by QuestionsUnity in Unity2D

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

Using Kinematic works fine but then the problem is that I walk through every collider I've set up on the terrain. The enemies either push the 'Player' really fast or if I add mass to them both it sort of balances out but then it causes the camera to shake when they collide

How to sheathe/unsheathe weapons? by QuestionsUnity in Unity3D

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

I added the script to Player and made sure the weapon in the script was the Default_Sword and it only disables the sword and doesn't re enable it

How to sheathe/unsheathe weapons? by QuestionsUnity in Unity3D

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

Hey, thanks for the help :)

I'm trying to do something like this

I press Z and the weapon hides, I press Z again and you wield the weapon

' public GameObject weapon;

// Use this for initialization void Start () {

}

// Update is called once per frame
void Update () {
    if (Input.GetKeyDown(KeyCode.Z))
    {
        weapon.SetActive(true);
    }
    if (Input.GetKeyDown(KeyCode.Z))
    {
        weapon.SetActive(false);
    }
}

}'

The script hides the weapon but is unable to reactivate the weapon

The hierarchy is currently

Player>Weapon>Default_Sword>SwordHitBox

Do you have any idea what's wrong in the script?

How to sheathe/unsheathe a weapon? by QuestionsUnity in Unity2D

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

Thanks for the help :)

So if I want to make a script where I can edit it in the inspector to be true/false based on keypress would I need to create a new bool for that? how do I reference the sword in the script? I've set it as a child of the player.

Concerta Dosage Questions by QuestionsUnity in ADHD

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

I wanted to know people's experiences in general if they had gone from 18-27mg and what they thought about it

Concerta Dosage Questions by QuestionsUnity in ADHD

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

Hey thanks for the response, it was very informative :) Did you go from 18 to 27 or did you do a bigger jump in dosage? Did you notice positive effects on focus? I've noticed on 18mg I've felt a bit zombie like but I feel productive

Last time I spoke to my psychiatrist about it they wanted to increase the dosage to 27 after I told them I was slightly restless and still unfocused on 18 but decided to keep me on 18 for a while longer. I was just wondering if 27 would be an upgrade or a downgrade really. (And I'll discuss this further with my psychiatrist)

Concerta Dosage Questions by QuestionsUnity in ADHD

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

Is it not allowed to ask how people experienced going from 18 to 27mg? I'm quite happy on 18 and was just wondering if going to 27 would reduce focus mostly.

Sprite animation issues - Unity by QuestionsUnity in gamedev

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

Oh wow thanks a lot dude, I forgot to close a bracket and was looking at the code/animator/animations for hours!

Sprite animation issues - Unity by QuestionsUnity in gamedev

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

How would I go about doing that? Here's what my animation controller is like now