Log In  

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!!!

P#54287 2018-07-19 12:16 ( Edited 2018-07-19 17:18)

Hey, I think maybe you posted this in the wrong place! More people might see it if you post it under "Help" instead of "User blogs".

It's not clear what you need help with. What have you tried so far? Have you started any collision code at all?

There's a lot of collision code floating around on the BBS, like this one from just a couple of days ago: https://www.lexaloffle.com/bbs/?tid=31517

There's also a collision demo that comes with PICO-8. Type "install_demos" and you can find it in splore.

P#54288 2018-07-19 12:35 ( Edited 2018-07-19 16:35)

Thank you,
I am new and haven't a collision because i don't now
what to do.

P#54289 2018-07-19 13:18 ( Edited 2018-07-19 17:18)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 16:25:38 | 0.006s | Q:10