MRW419
MRW419
Explore posts from servers
VVALORANT
Created by MRW419 on 5/20/2024 in #community-help
Why does my PC freeze whenever I tab back in Val?
So I typically tab out Val after I die to do stuff on my computer but lately whenever I click on Val. My PC as a hole freezes, I can hear audio but nothing moves and I have to compelety restart my PC. It has gotten me a few minutes bans now and it really getting to me.
2 replies
CC#
Created by MRW419 on 1/4/2024 in #help
Help me understand
So lastRaycastHit.normal is the surface of what the raycast hit? So if I look at a block it would take the surface of that block and where it's located in a Vector 3?
23 replies
CC#
Created by MRW419 on 11/17/2023 in #help
Why is my grid on Line 28 not calling back to my other script called Grid?
No description
2 replies
CC#
Created by MRW419 on 11/16/2023 in #help
I'm making a grid for a tower defense game and I keep getting these errors. Does anyone know why?
No description
9 replies
CC#
Created by MRW419 on 10/27/2023 in #help
❔ What is the problem with this code?
No description
8 replies
CC#
Created by MRW419 on 10/26/2023 in #help
Is anyone good with statice modifier?
I need help with my class work about statice modifiers as I'm nearly lost in what I need to do.
// TODO: Define a simple class called MyMath with the following static methods:
// * Add - adds two integers together and returns the result.
// * Subtract - subtracts integer b from integer a and returns the result.
// * Multiply - Multiplies two integers and returns the result.
// * Divide - divides two integers and returns the result.

// TODO: In MyMath, add the following static variable:
// * sumTotal - the sum of every time the Add method is called.


public class StaticPractice : MonoBehaviour
{
void Start()
{
// uncomment the following code to test your class.
/*
print(MyMath.Add(10,15));
print(MyMath.Add(13,22));
print(MyMath.Add(56,83));
print(MyMath.sumTotal);

print(MyMath.Subtract(10,5));

print(MyMath.Multiply(4,8));

print(MyMath.Divide(10,2));
*/
}
}
// TODO: Define a simple class called MyMath with the following static methods:
// * Add - adds two integers together and returns the result.
// * Subtract - subtracts integer b from integer a and returns the result.
// * Multiply - Multiplies two integers and returns the result.
// * Divide - divides two integers and returns the result.

// TODO: In MyMath, add the following static variable:
// * sumTotal - the sum of every time the Add method is called.


public class StaticPractice : MonoBehaviour
{
void Start()
{
// uncomment the following code to test your class.
/*
print(MyMath.Add(10,15));
print(MyMath.Add(13,22));
print(MyMath.Add(56,83));
print(MyMath.sumTotal);

print(MyMath.Subtract(10,5));

print(MyMath.Multiply(4,8));

print(MyMath.Divide(10,2));
*/
}
}
68 replies
CC#
Created by MRW419 on 10/25/2023 in #help
Why is it not calling the OnCollisionEnter method?
"'cs using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(Rigidbody2D))] public class Player : MonoBehaviour {

// TODO: Reference to Rigidbody2D component should have class scope. public Rigidbody2D rigidbody2d; // TODO: A float variable to control how high to jump / how much upwards public float Jump = 10.0f; // force to add. public float force = 5.0f; // Start is called before the first frame update void Start() {
// TODO: Use GetComponent to get a reference to attached Rigidbody2D rigidbody2d = gameObject.GetComponent<Rigidbody2D>(); } // Update is called once per frame void Update() { // TODO: On the frame the player presses down the space bar, add an instant upwards if(Input.GetKeyDown(KeyCode.Space)) { OnCollisionEnter(Collision, other);
} // force to the rigidbody. } void OnCollisionEnter(Collision other) { if(other.gameObject.CompareTag("Ground")) { Vector3 jump = transform.up; GetComponent<Rigidbody2D>().AddForce(jump * force, ForceMode2D.Impulse); } } } "'
11 replies
CC#
Created by MRW419 on 10/23/2023 in #help
❔ Why can't I place my animation onmy score script?
No description
8 replies
CC#
Created by MRW419 on 10/20/2023 in #help
❔ So i'm learning how to transition from one level to another and I got this error.
No description
14 replies
CC#
Created by MRW419 on 9/22/2023 in #help
❔ I need to make sure I understand and doing this correctly
No description
21 replies
CC#
Created by MRW419 on 9/19/2023 in #help
❔ Can someone help explain this is a more basic way.
No description
128 replies
CC#
Created by MRW419 on 9/14/2023 in #help
❔ Can anyone help explain what it's talking about?
39 replies
CC#
Created by MRW419 on 9/6/2023 in #help
❔ I'm having trouble with my assigment and I need help understanding
I'm learning Unity in my game design class and in Unity it tells me i'm missing one semi-colon but where? if (numOne > numTwo) { print("numOne is greater then numTwo"); } else (numOne == numTwo) { print("numOne is equal to numTwo"); }
8 replies