#help dumb do stuff?

1 messages · Page 1 of 1 (latest)

glacial sand
#

uh

#

i dont wanna spam or flood the main chat with my stupid stuff

#

it says

#
using System.Collections.Generic;
using UnityEngine;

public class dancescript : MonoBehaviour
{
    
    public Animator opening door loop;
    
    // Update is called once per frame
    void Update()
    {
      if(Input.GetKeyDown(KeyCode.W));
      anim.Play("openingdooranim");
    }
}```
#

Assets\dumb scripts lol\dancescript.cs(8,26): error CS1002: ; expected

cobalt notch
#

the beginner-code channel is the perfect place for you
Your error is a syntax error.
Variable names cannot contain spaces.

public Animator opening Door Loop; // error
public Animator openingDoorLoop; // fixed
#

we use PascalCase for class names
and camelCasingForVariableNames

#

_underscore works too