Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Basfreak

Member Since 14 Mar 2012
Offline Last Active Jun 24 2012 03:18 PM

Posts I've Made

In Topic: [C#] Ingame context menu

20 March 2012 - 09:33 AM

Good point. Enums it is :)

In Topic: [C#] Ingame context menu

16 March 2012 - 05:00 PM

Sorry for the late response.

I agree with you on the last part, I like my code to be structured logically. So I think I'll go with my second idea, I'll implement ContextMenu and override contextMenuOnClick() something like this:
public void contextMenuOnClick(ContextMenuItem clickedItem)
{
   if(clickedItem.getText() == "Item 1")
   {
	  // do something
   }
}

In Topic: recommended ways of storing game entities and state game structure

14 March 2012 - 10:33 AM

Regarding your first question: you can also check which entities are in range when moving your player and than set a flag on them to not update, e.g. entity.inRange=false

PARTNERS