Hello everyone. I am very new to Unity. I am doing a tutorial where I was given a few lines of code to move the object and to change its gravity from the code, but when I press play the object goes down. I checked several times that the code was well written. Can someone help me to solve this?
I hate to be pedantic but watch your spelling and grammar when typing code in, it’s VERY case-sensitive and the spelling has to be perfect otherwise it won’t work.
Share the script here, along with maybe a video or GIF that shows what’s happening. Be sure to include a description of what you expect to happen as well.
Yes, you were right. Despite checking the code several times, it was poorly written. Now it works. My apologies.
No problem, glad I could help.
I like how visual scripting mostly eliminates the typing part.
Similar problem mate, about 18 years ago I did a MS Visual Basic 4 course up at Sheffield Hallam Uni, if you don’t type in the code exactly as it was in the books, it didn’t work.
1 Like