61
Help, Errors, FAQ / Re: Supported Video Card List
« on: 2013-03-15, 02:45:15 PM »
Never seen this thread! Well I'm having screen flickering issues myself when I run my game, but I'm using some intel tablet with integrated graphics.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
1. How do I implement C# code into sgdk (I know how to import it, but how do I USE it?)
3. How do I display text based counters?3. If you want to display a text based counter you need a modified version of DrawCounterWithLabel, which I'll make for you now:
[Description("Display a string in the current plan's rectangle")]
public virtual void DrawString(string Label, System.Drawing.KnownColor color)
{
System.Diagnostics.Debug.Assert(!PlanRectangle.IsEmpty, "DrawCounterAsTile was called on a plan that does not have a rectangle defined");
if (PlanRectangle.IsEmpty)
return;
Display disp = ParentLayer.ParentMap.Display;
disp.ScissorOff();
disp.SetColor(Color.FromKnownColor(color));
disp.DrawText(Label.ToString(), PlanRectangle.Left, PlanRectangle.Top, -540);
disp.Flush();
}
2. Once the timer is running, I don't want to display the timer, I want to display the score based on time elapsed.