#enemy doesnt move smooth
1 messages · Page 1 of 1 (latest)
[]cb
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.
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();
}
} ```
Show more code
[]cb
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.
a powerful website for storing and sharing text and code snippets. completely free and open source.
theree
fixed the problemmm