This site requires JavaScript, please enable it in your browser!
Greenfoot back
Casper
Casper wrote ...

2017/4/25

Colission from the side/top

Casper Casper

2017/4/25

#
I'm doing a mario game. I have classes Mario and Enemy. If Mario touches enemy from the top(jumps on it) the enemy should disappear but if the enemy touches Mario from the side, Mario should disappead. How can I detect if Mario is touching Enemy from the side or top?
You need to login to post a reply.