oh i'm sorry. Im making a microgame for wariowar DIY. Sorry for my nubness, as i'm kinda new to programming and have no school on the subject. what i have tried is to have two extra 'fail' objects per 'slot' that activate when the wrong key is pressed, and an additional 'wrong' switch to turn on when one of the 6 'fail' switches are activated. the reason i have 2 per 'slot' is that i need to not have the additional switch to activate if i hit the correct key. the only way i can set up an object to do an action as a result of another object's state would be it the object relied upon has it's switch on/off. each object you get to prg up to 5 AI, which are pretty much what I have read to be IF/THEN statements. for each of the 3 'slots' one AI is used to determine randomly to be one of 2 sprites,as well as turning on the switch if sprite 'a' is chosen randomly. i use 2 of those AI to change to a 3rd 'correct' sprite, based on a correct key hit and 1 of 2 sprite states. each individual AI within an object can have up to 6 'triggers' and 6 'actions' what i have tried to do is set each of the 2 'fail' objects to turn on and then turn off after a brief moment when a wrong key is pressed, but i have each of the 2 set for a different sprite, as hitting the correct key for sprite 'A' would be the wrong key for sprite 'a'. the game allows up to 15 objects in all and where it starts to show this method may not work is when i move over to the second 'slot'. for the 'correct' condition on each slot, i need 2 AI (1 per sprite) and within each AI, I need to set a trigger that wont activate when the previous 'slot' is not 'correct' my other approach was to then instead have the 'slot' switch turn on when it is 'correct', but then the 'fail' objects cannot tell if the 'slot' is 'A' or 'a'. I'm not sure if you would be familiar with this game. I actually tried to post in that part of the site, but for some reason it posted in general discussion. You guys seem to know more than I do about programming, and I thank you for any suggestions. 8)
edit- oh I almost forgot to mention the 15th object. I want to have the 'wrong' switch turn on and then off to tell the object 'remain' to change to the next sprite until the game is lost with the 4th sprite -giving players 3 chances-
Log in to comment