Log In  
Follow
Hufeisen

Hallo ,
I am making a game with a monster and need your help.
I want that when the monster touches the figure the figu death.
This is the code:
monster = {}
monster.x = 30
monster.y = 30
monster.sprite = 10

and

player = {}
player.x = 8
player.y = 8
player.sprite = 0

and

monster.sprite = monster.sprite + 1
if monster.sprite > 015 then
monster.sprite = 010

Thanks for your help!!!

2 comments