Another way to make the enemy move to the left is by adding
global_position.x -= speeddelta
instead of “global_position.x += -speed*delta”.
Either way it will still make the enemy move to the left.
Another way to make the enemy move to the left is by adding
global_position.x -= speeddelta
instead of “global_position.x += -speed*delta”.
Either way it will still make the enemy move to the left.
I found this while I was going through this portion of the course today, and was wondering why we used the addition operator when we were creating this portion.
I actually coded it identical to this except I still wrote speed*delta rather than writing speeddelta. I was unaware it could be written that way, or is that a typo?
Thanks for the contribution!