Quote from: Calin Elephantsittingonface on Thu 10/02/2011 08:11:12
i'm confused.
shouldnt this be simplyCode: ags if (player.Moving) oWheetWhoot.Visible = true; else oWheetWhoot.Visible = false;
In all intents and purposes, isn't that basically the same thing I'm trying to do, but written without the "{" and "}":s? How does that function differently than my:
if (cEgo.Moving == true) {
oWheetWhoot.Visible = true;
oWheetWhoot.Y = 169; // cEgo walks on Y 199
oWheetWhoot.X = cEgo.x - 13; // Makes oWheetwhoot float over cEgo sprite
} else {
oWheetWhoot.Visible = false;
}
It's those
oWheetWhoot.Y = 169; // cEgo walks on Y 199
oWheetWhoot.X = cEgo.x - 13; // Makes oWheetwhoot float over cEgo sprite
lines that I'm worrying about now. To me it feels like they are causing the flickering for some reason. I'll just have to get back to testing to see if I can get it to work once I get back home.