I’m trying to make an enemy randomly choose a direction (left or right) when spawned. I’m not sure how to do it but it should be a pretty simple game mechanic. I think it has to do something with the variables.
Here is a picture to visualize what I mean.