/// <summary> /// Automatically goes through and calls update on everything you added to the game loop, /// override this function to handle custom input and perform collisions/ /// </summary> virtual public void update() { // Update all time-related stuff. defaultGroup.update(); scrollingSpritesGroup.update(); elapsedInState += FlxG.elapsed; }
/// <summary> /// Left over from FlxConsole /// </summary> public void update() { _elapsedSinceLastButtonNeeded += FlxG.elapsed; if (_elapsedSinceLastButtonNeeded > timeToShowButton) { xboxButton.visible = false; keyboardButton.visible = false; ouyaButton.visible = false; xboxDirection.visible = false; keyboardDirection.visible = false; ouyaDirection.visible = false; } if (visible) { hudGroup.update(); } }
/** * Automatically goes through and calls update on everything you added to the game loop, * override this function to handle custom input and perform collisions/ */ virtual public void update() { // Update all time-related stuff. defaultGroup.update(); }