Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Timer_setTimeToWait(&monsterCpy.timer, 2))
- {
- if (monsterCpy.position.x > map->monsterPath[monsterCpy.actNode].x)
- monsterCpy.position.x -= monsterCpy.speed;
- else
- monsterCpy.position.x += monsterCpy.speed;
- if (monsterCpy.position.y > map->monsterPath[monsterCpy.actNode].y)
- monsterCpy.position.y -= monsterCpy.speed;
- else
- monsterCpy.position.y += monsterCpy.speed;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement