The left-hand side of an assignment must be a variable, property or indexer

so this is for an topdown 2d rpg character movement and im getting this error on this line

if(count == 0)
{
rb.MovePosition(rb.position * movementInput * moveSpeed = Time.fixedDeltaTime);
}

if(count == 0) { rb.MovePosition(rb.position movementInput moveSpeed = Time.fixedDeltaTime); }
^ highlight the code with your mouse, then click the 101,010 icon to show it as code :wink:
But I’m not too good at code myself, still learning. But I would use:

float directionX = 0.0f;
float directionY = 0.0f;
float directionZ = moveSpeed * Time.fixedDeltaTime; // or just deltaTime, not sure
if (count == 0) { rb.transform.Translate(directionX, directionY, directionZ); }

I don’t think I’ve ever used MovePosition, or is that a constructor you made? So I’m not too sure on what variables it needs to work right. I personally use transform.Translate
Edit: I just noticed you said 2D, not 3D… sorry, but still just declare it without using the Z functions*