To make things clear, what I meant was something like this:
Code:
void hero(){
   while(my){ wait(1);
      my.skill1 = 10 * (key_w - key_s) * time_step;
      my.skill2 = 10 * (key_a - key_d) * time_step;
      my.skill3 = 0;
      c_move(my, nullvector, my.skill1, GLIDE);
   }
}

I still don't think that this is CORRECT way to write function to move entity. I wanted to aware DLively from teaching newbies to code things like this and etc.
Originally Posted By: 3run
Originally Posted By: DLively
I put my wait at the beginning for organizational purposes. It doesn't make any (real) difference in the way it runs.
Sure it does not, but it's not really a good way to organize your code, and I hope that you don't use such approach in your tutorials.

Cheers!
Cause from my own experience (and I do really have some! even if my knowledge base sucks) I know that this will lead to some troubles. I wouldn't recommend anyone to do so unless they are aware of what are they exactly doing and what are they teaching other to do! Sorry DLively, but you are still just learning (same as I do f.e.), so I don't really think that it is really safe for you or other newbies to play around with 'wait' unless you really want to use it for a purpose (placing it somewhere to get specific results!). But yeah, who am I to tell anything like this grin

Anyway, this discussion is really over for me, I don't want to bring this back. Just wanted to make my point clear!

Best regards


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung