I am new to MS Makecode arcade and am trying to figure out the following scenario.
I have an array of two sprites which are randomly being created at random positions on X axis. All good so far.
Now, I want to be able to shoot a projectile from one of the sprites. For that I use if then logic, but it just doesn’t work. See screenhots below. Can you help me figure our where do I make a mistake?
If I do not do a comparison, both sprites are correctly shooting projectiles.