Frustrated with Random Bugs
I feel like every time I run my project I get different results. I'm using v0.10.4.1 beta.
I have rules on ALL my actors (there's only 4) to check for collision against a player. If a collision happens (is true), then change an attribute X to true. Unsure of how code is firing, I even put collision on my player to check against those four other actors, and if a collision occurs, then change an attribute X to true. I see everything fire in Log statements (double as expected but I don't care for now)
On my "floor" actor I have a rule that says "if attribute X is true, and if the player actor hits me, show a replay button". I'd think it'd be straightforward. Sometimes I run the game, and it works just fine. Other times I run the game, and the replay button doesn't show at all. Other times I run the game I get the replay button will show up a few times, then just stop showing up (then I have to restart completely). I'm at a loss considering my debug statements are telling me things are changing as they should and my rules work?! Argh.
Comments
Missing information in order to help ...
What version of GS is working: MAC - WIN?
Maybe you are not turning off the x attribute to false correctly?
A screen print design also help.
Jef
Thanks for the reply. I first started figuring the bugs are coming from switching around scenes. Which really doesn't make sense to me because when I initially start the game I specifically set all the values and it can randomly fail on first run (I also built an actor and placed it on each scene to redeclare all my attributes just to be sure). My biggest change was in the "floor" code I mention above. I had a collision detection with the actor to trigger the Replay button, but despite "looking" like it was colliding, I theorized maybe it was off a pixel or so. I changed some code to make the actor drop even further and sure enough that seemed to do the trick.