In response to Superbike32
You did not, at any point, give a correct solution. The fact that you THINK you've given a correct solution is only an indication of how little you understand. Additionally, what you originally posted as a "bug" would never have worked under any version of BYOND that has ever existed, because it makes a very fundamental error that I believe has already been pointed out multiple times.

I'm helping the whole community by telling you to go the hell away and stop providing bad, harmful, WRONG advice.

And I already posted the damn solution.
In response to Pyro_dragons
Pyro_dragons wrote:
Masterdan wrote:
Pyro_dragons wrote:
That's what I was thinking, but I wasn't completely sure if it would work and I don't have the files here to test it.

I didnt test it either, but im sure itd work. Honestly though because Zeta and Nbotls dont use freaking parameters in the Move() proc ive noticed an entire generation of byond users dont have a freaking clue that Move does in fact have 2 very significant freaking parameters!

I knew about the parameters, and infact use them on multiple occasions. I was just not 100% sure on whether or not it would work because I couldn't check to be sure. I hate trying to give out code without testing it first if I'm unsure.

I wasnt insinuating you, i was insinuating moron here trying to tell experienced coders to shut up and that he solved the problem by doing it in client/Move() the sheer ignorance being displayed makes my blood boil.
In response to Superbike32
Superbike32 wrote:
stop posting, i gave the correct solution without the move proc, and now i dont care anymore, and the old thing used to work in an older version of byond whether the syntax was ever correct or not must not have mattered much at that time in the older version.

if u look at the other post, using client instead of Move() i got it working 100%.

please pay attention, and dont post if ur not going to help, and stop posting just to criticize someone, it wastes space on the byond forums.

if u wanna help, post the solution, otherwise no reason to post, cause criticizing someone for getting it wrong is just mean, and u never posted a solution, so the person had never gotten helped from u criticizing me.

I posted a solution, i was even nice enough to keep it in its orginal shitty but easy to read format and made it work. In fact what i managed to do with the nonsense you posted was make it into a completly viable solution to your problem in a way that you should be able to see exactly what you did wrong.

You never referenced the parameter that stores the desired direction, at all. If you ignore the direction the player is trying to go then how can you expect the code to work.. ON ANY VERSION OF BYOND? Your a fool.
In response to Masterdan
i have posted the working code in one of the posts somewhere, instead of criticizing me, u might help instead.

if nobody good helps, someone has to try and help, so bad advice is bound to happen unless there is no advice at all, since nobody good at coding seems to wanna post the solution, and instead they wanna sit back yelling at me, the one who seems to be doing it wrong, but knows still not the answer to the way yall seem to want to do it.

any answers that is not criticism would be really good, but yall have not been posting anything but to tell me im wrong, and not telling tht thread author the code that he needs to use, and i still know not the way that seems to be the almighty code that is the way ur supposed to code it.
In response to Superbike32
Superbike32 wrote:
i have posted the working code in one of the posts somewhere, instead of criticizing me, u might help instead.

if nobody good helps, someone has to try and help, so bad advice is bound to happen unless there is no advice at all, since nobody good at coding seems to wanna post the solution, and instead they wanna sit back yelling at me, the one who seems to be doing it wrong, but knows still not the answer to the way yall seem to want to do it.

any answers that is not criticism would be really good, but yall have not been posting anything but to tell me im wrong, and not telling tht thread author the code that he needs to use, and i still know not the way that seems to be the almighty code that is the way ur supposed to code it.

I gave you a CORRECTION to what you were doing, meaning i didnt even change the style of the code, i simply fixed a GLARING OMMISSION of the most important variable in the equation, the desired direction!! Dont act like the action man who accomplishes things child, in the realm of who actually helps others and accomplishes end results on BYOND, youd be completely in My dust, Garthurs dust, and pretty much everybody who was kind enough to humor you in this post.

In response to Masterdan
if you want to help, then you should post the answer right away to the errors, and in the proper DM tags so it can easily be seen, because way too many people r not helping at all, and they make it worse by putting people down saying not to post, cause they dont know the correct way.

Nobody ever posts the correct way, so nobody ever learns, and many peoples questions are left unanswered.

it would be so much better if this were to change.
In response to Superbike32
Superbike32 wrote:
if you want to help, then you should post the answer right away to the errors, and in the proper DM tags so it can easily be seen, because way too many people r not helping at all, and they make it worse by putting people down saying not to post, cause they dont know the correct way.

Nobody ever posts the correct way, so nobody ever learns, and many peoples questions are left unanswered.

it would be so much better if this were to change.

http://www.byond.com/developer/forum/?id=617497

genius, i posted that originally.
In response to Masterdan
Once again, the four if() statements can be shortened to the single expression if(ndir&(ndir-1)). More importantly, however, you aren't returning any value from Move(), which it needs to do.
In response to Garthor
Garthor wrote:
Once again, the four if() statements can be shortened to the single expression if(ndir&(ndir-1)). More importantly, however, you aren't returning any value from Move(), which it needs to do.
I know how the '&' operator works, but how did you find out it would work so quickly?
Do you use the '&' operator a lot?
In response to Naokohiro
This was something Lummox JR figured out at some point which I forgot. It's a simple conditional for finding whether a direction is diagonal or not.
In response to Garthor
Yes, they must have designed it, keeping in mind that the cardinal numbers wouldn't have any bits in common with the number below them and that the diagonal ones would. Quite interesting.
Page: 1 2