thank you for your reply. i fully understand what you are saying and with time and experience you know where and when to add things for your code to function properly and as intended. what am i saying though is something different.let me try to be more clear.
Enemy health<=0
For each enemy
--- destroy enemy
--- add 1 to score
it works
lets say i add (just for the example.it might not make sense )
Enemy health<=0 and
gamepad button a is down
or
Enemy health<=0 and
gamepad button a is up
For each enemy
--- destroy enemy
--- add 1 to score
i try it,for some reason i dont like it,i go delete everything that i added ,i run the code and now for example enemy wont die if it meets the condition.
i delete everything i write it down again and now it works.
that kind of problem i am referring to .
is there a possibility when you add complicated stuff like else,or etc start moving them around and when you delete them and revert to there previous state, the code in the background freaks out? i noticed that the bigger my project gets.is there a possibility my computer is slow and fails to read fast enough in some situations the code and hence the now it works now it doesn't situation? or maybe i change something and i cant see it.