Hufeisen [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=29493 Monster Game <p>Hallo ,<br /> I am making a game with a monster and need your help.<br /> I want that when the monster touches the figure the figu death.<br /> This is the code:<br /> monster = {}<br /> monster.x = 30<br /> monster.y = 30<br /> monster.sprite = 10</p> <p>and</p> <p>player = {}<br /> player.x = 8<br /> player.y = 8<br /> player.sprite = 0</p> <p>and</p> <p>monster.sprite = monster.sprite + 1<br /> if monster.sprite &gt; 015 then<br /> monster.sprite = 010 </p> <p>Thanks for your help!!!</p> https://www.lexaloffle.com/bbs/?tid=31529 https://www.lexaloffle.com/bbs/?tid=31529 Thu, 19 Jul 2018 12:16:18 UTC