Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Need help with Mario program (Final project for grade 11)
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
kyokeun




PostPosted: Wed Jan 15, 2014 8:09 pm   Post subject: 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.



Mario.zip
 Description:

Download
 Filename:  Mario.zip
 Filesize:  6.62 MB
 Downloaded:  170 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Raknarg




PostPosted: Wed Jan 15, 2014 8:42 pm   Post subject: 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




PostPosted: Wed Jan 15, 2014 11:54 pm   Post subject: Re: RE:Need help with Mario program (Final project for grade 11)

Raknarg @ Wed Jan 15, 2014 8:42 pm wrote:
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




PostPosted: Wed Jan 15, 2014 11:57 pm   Post subject: 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




PostPosted: Thu Jan 16, 2014 12:37 am   Post subject: Re: RE:Need help with Mario program (Final project for grade 11)

Insectoid @ Wed Jan 15, 2014 11:57 pm wrote:
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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: