![]() |
|
|||||
Topic, Game "Xanward Urthadar" | ||||||
| ||||||
You must register or log in to post a message.[edit]stil not understanding me , that means a big ferm No... ![]() ![]() ![]() ![]() In the newly commented levels it says that Xwyzow posted a comment on the level called "Draw" but it was birjolaxew who did! Last I knew THeNiNJa was busy with real life things. I could be wrong though... ![]() =B ![]() Just get the mouse's x/y position from the last frame, then compare that to the current frame, lump those two distances into one using the Pythagorean theorem, then add that to a running total. Basically: lx = last x mouse ly = last y mouse x = x mouse y = ymouse ((lx-x)*(lx-x)+(ly-y)*(ly-y))^(1/2) = distance traveled Hope that helps, and good luck with school. ![]() I'm having my mock examination (my dictionary says) next week, so we're having tons and tons of tests and homework, so i don't really have time to make a game right now. I hope i'll get time soon. ![]() There are a few problems with the collision detection with the tiles I think. The game engine is quite good already, now it needs awesome graphics and animations. ![]() ![]() ![]() ![]() | Games forum
|