
-----------------------------------
kyokeun
Wed Jan 15, 2014 8:09 pm

Need help with Mario program (Final project for grade 11)
-----------------------------------
Hey guys, I am making original Mario Bros World 1-1 replica for my grade 11 final project, and I am having a difficult time with it

The problem is the hit detection. I can't get it to work properly. For both blocks and pipes.

For blocks, Mario just jumps through the blocks and does not detect it at all. I tried to find the cord for each blocks and use if statement to see if Mario's cord equals the blocks. This did not work out so well.

For pipes, Mario detects it, but can't jump over it. The collision boolean (boolean that detects whether or not Mario hits something or not) either stays true or false until Mario lands from his jump.

If anyone has time to help me, I'll be really thankful..

I am using Turing 4.1.1 BTW.

-----------------------------------
Raknarg
Wed Jan 15, 2014 8:42 pm

RE:Need help with Mario program (Final project for grade 11)
-----------------------------------
Checking to see if marios coordinates are the same as the blocks' is not going to work. You have to check to see if he's in the area the block is.

-----------------------------------
kyokeun
Wed Jan 15, 2014 11:54 pm

Re: RE:Need help with Mario program (Final project for grade 11)
-----------------------------------
Checking to see if marios coordinates are the same as the blocks' is not going to work. You have to check to see if he's in the area the block is.

OK, but what about the pipes?

-----------------------------------
Insectoid
Wed Jan 15, 2014 11:57 pm

RE:Need help with Mario program (Final project for grade 11)
-----------------------------------
Pipes and blocks can be handled by almost the exact same code. When you have working blocks, then your pipes are already 90% complete.

-----------------------------------
kyokeun
Thu Jan 16, 2014 12:37 am

Re: RE:Need help with Mario program (Final project for grade 11)
-----------------------------------
Pipes and blocks can be handled by almost the exact same code. When you have working blocks, then your pipes are already 90% complete.

ok I'll look more into it tomorrow and give an update.
