Enabling topdown results in whole lot of errors :)

6 replies [Last post]
Posts: 11

Hello to all Laughing out loud

I've tried enabling top-down mode in the engine, but it seems im missing something, or its broken Laughing out loud
The following errors (among many other) occur:

'DemoGame.ClientPacketID' does not contain a definition for 'MoveDown'

'DemoGame.Client.Character' does not contain a definition for 'IsMovingUp' and no extension method 'IsMovingUp' accepting a first argument of type 'DemoGame.Client.Character' could be found (are you missing a using directive or an assembly reference?)

Another guess i have is that the demo game does not implement the top-down view or something is broken?

Thanks in advance for the assistance Smile

EDIT:
Oookay, my bad Smile It seems that the TOPDOWN should be declared in more namespaces than i originally though Smile
After some brief examination of the code i found them Wink
Sorry for the useless thread, but if someone have the same problem as me, the current namespaces that needs to define TOPDOWN are DemoGame.Server, DemoGame.Client, DemoGame and NetGore

Posts: 1691

Top-down is supported, and should work. Are you using the v0.2.3, or the latest revision from the SVN? In any case, this should be fixed in the next release, which will be sometime today.

Posts: 11

I am using v0.2.3.

And yeah i noticed that the next release is coming soon, but i wanted to get familiar with the code anyway Smile

Posts: 164

You need to define TOPDOWN as a compiler parameter...

Posts: 1691

You should be able to just select the TopDownDebug build mode, which defines TOPDOWN in all the projects for you.

Posts: 11

Yeah i just mentioned the ones that actually use it, more of a informative point i guess, just saying Laughing out loud

Posts: 164

I thought you were defining it in every file in that namespace or something lol. (when you said it like that)