#enemy doesnt move smooth

1 messages · Page 1 of 1 (latest)

amber lynx
copper nexus
#

[]cb

normal nebulaBOT
#

Use codeblocks to send code in a message!

To make a codeblock, surround your code with ```
To use C# syntax highlighting add cs after the three back ticks.

For example:
```cs
Console.WriteLine("Hello World");
```

Produces:

Console.WriteLine("Hello World");

To send lengthy code, paste it into https://paste.myst.rs/ and send the link of the paste into chat.

amber lynx
#

CS void runLeft()
    {
        float left = -1f;
        Vector3 movementLeft = new Vector3(left, 0f, 0f) * moveSpeed * Time.deltaTime;
        transform.position += movementLeft;

    }

    void jump() 
    {
        float y = 1f;
        Vector3 _jump = new Vector3(0f, y, 0f) * jumpForce * Time.deltaTime;
        transform.position += _jump;
        isGrounded = false;
    }

    void randActions() 
    {
        if (storeRandNum == 1) 
        {
            runRight();
        }
        else if(storeRandNum == 19) 
        {
            runLeft();
        }
        else if (storeRandNum == 10 && isGrounded) 
        {
            jump();
        }
      
    } ```
copper nexus
#

Show more code

amber lynx
#

OKay

#

goood sir?

copper nexus
#

[]cb

normal nebulaBOT
#

Use codeblocks to send code in a message!

To make a codeblock, surround your code with ```
To use C# syntax highlighting add cs after the three back ticks.

For example:
```cs
Console.WriteLine("Hello World");
```

Produces:

Console.WriteLine("Hello World");

To send lengthy code, paste it into https://paste.myst.rs/ and send the link of the paste into chat.

amber lynx
#

theree

amber lynx
#

fixed the problemmm