Hey you beautiful scripters:)
I'm working on a little game that should include an upgradesystem like for example Vampire Survivors. So you get to a defined score, game pauses, the upgrade layer appears and you can choose one of three upgrades.
So I've got three Sprites (UpgradeOne, UpgradeTwo and UpgradeThree) with one-framed animations called "Multishot", "BiggerShots" and "Frequency". All three Upgrade-sprites shall appear on the pause-screen with random animations but never show the same animation as one of the others.
Now I try to tell the system that if UpgradeOne appears, it shall set the animation to choose("Multishot","BiggerShots","Frequency"). The same for UpgradeTwo if it appears, but if the UpgradeTwo.AnimationName=UpgradeOne.AnimationName or UpgradeTwo.AnimationName=UpgradeThree.AnimationName, it shall choose again. Same for UpgradeThree and in the end there should be three different animations.
I've thought that would be an easy task to solve (and I'm still sure it is and I'm just having a big brainknot) but somehow I get various kinds of results but not what it should be.
Any idea to solve this would be great, maybe even a screenshot of an exaplescript, that would help a lot:)