Advertisement
Le_BuG63

Untitled

Feb 28th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1.         if (Timer_setTimeToWait(&monsterCpy.timer, 2))
  2.         {
  3.             if (monsterCpy.position.x > map->monsterPath[monsterCpy.actNode].x)
  4.                 monsterCpy.position.x -= monsterCpy.speed;
  5.             else
  6.                 monsterCpy.position.x += monsterCpy.speed;
  7.             if (monsterCpy.position.y > map->monsterPath[monsterCpy.actNode].y)
  8.                 monsterCpy.position.y -= monsterCpy.speed;
  9.             else
  10.                 monsterCpy.position.y += monsterCpy.speed;
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement