Hello Everyone!
I have a simple question. I want to make a game were you pick up objects and grow in size. I have a problem, however. How can I increase the player’s (who is a cube)size using code. I am happy with either JS or C#
Thanks,
Calvin
Hello Everyone!
I have a simple question. I want to make a game were you pick up objects and grow in size. I have a problem, however. How can I increase the player’s (who is a cube)size using code. I am happy with either JS or C#
Thanks,
Calvin
Reading the docs is a good way to learn, right?
I’m guessing that the “pick up” occurs as a collision. Try this code :
function OnCollisionEnter(collision : Collision) {
transform.localScale += Vector3(0.1,0,0);
}
Thanks for the help guys! I figured out that I took the example code, but didn’t give parameters for when to execute the code. Guess this is what happens when I take a break from coding to study for finals