Computer Science Canada

My Mega Man X project

Author:  Tyr_God_Of_War [ Sun Nov 23, 2008 9:40 pm ]
Post subject:  My Mega Man X project

Here is my mega man program. I will be adding maps for text files soon, The targets are for testing the buster. Could someone please give me advice on turning the MegaMan type and associated procedures into a class, if its is worth it that is. Also, any advice on how to make sure the shots come from X's gun? I seem to have the bullets coming out of his knee when he is jumping.
Oh the controls are shift to jump and ctrl to shoot, as the keyboard at school couldn't handle 3 buttons pushed a the same time any other way.

Author:  WaluiJ [ Mon Nov 24, 2008 7:43 am ]
Post subject:  Re: My Mega Man X project

RARARARSADSDASIYTEWYETIU THIS ONE IS SO BAD RRRRRRRRRRRRRRRGH ASDFJ:ASDKLJFSAKL:JDFL:KSADFJ:


Actually pretty good.

Author:  ecookman [ Mon Nov 24, 2008 8:18 am ]
Post subject:  RE:My Mega Man X project

please post with substance Waluij



and ill try to help out as much as possible i am still a big fan of the megaman series...lol ....motivation ^^



for the problem wiht the shots comming out of the knees just locate it +a certain amount like

locate(X,Y+5) i think... or make set a varaiable for the y and make it the shot location + something


shot location:= [playerlocation] + [whatever more]


lol hope i am right

Author:  S_Grimm [ Mon Nov 24, 2008 11:49 am ]
Post subject:  RE:My Mega Man X project

Right now, your shot is always drwan at the same y location. you need toi include code to make it change based on Megaman's location.
code:

if megamany == groundy then
bullety = megamany - 5
end if
if megamany != groundy then
bullety = megamany - 5
end if

Author:  Tyr_God_Of_War [ Mon Nov 24, 2008 5:52 pm ]
Post subject:  RE:My Mega Man X project

I guess I should make an array for each pose where he is shooting and note the bottom of the gun. I was just wondering if here was a quick fix.
How should i do the transparent images behind X when he dashes? I cannot find a way to do that.

Now onto charge shots!

PS: Should I try and add more comments to it?
Edit: Now I have one level of charge shots! they pass through target to hit the targets behind them!

Oops. I have an extra 0 in the delay. I tried to fix it but didn't work. Just delete the zero in the delay yourself please.

Author:  Tyr_God_Of_War [ Tue Nov 25, 2008 6:20 pm ]
Post subject:  Re: My Mega Man X project

I am double posting because I can't get the forum to change the download.
Also X seems to shoot a bullet backward sometimes but I can't reproduce it reliably.
It might be when He has momentum in one direction but is facing another.

Author:  Tyr_God_Of_War [ Thu Dec 04, 2008 4:30 pm ]
Post subject:  Re: My Mega Man X project

No comments? Sad
I now have basic maps added in. Very Happy
They still are slightly buggy. err.. very buggy.

I would like some feedback. Please.

Edit: some minor fixes. Now the space bar fires, but it is customizable.

Author:  SNIPERDUDE [ Fri Dec 05, 2008 9:41 am ]
Post subject:  RE:My Mega Man X project

I really don't have much to say, cool game though.

Author:  dc116 [ Fri Dec 12, 2008 10:57 pm ]
Post subject:  Re: My Mega Man X project

At first glance, the game is pretty good. I'll take a look at the code and get back to you later.

Author:  Tyr_God_Of_War [ Tue Dec 16, 2008 9:58 pm ]
Post subject:  Re: My Mega Man X project

Now with scrolling!
And backgrounds!
And (once I rip the wav files) sound effects!

Author:  dc116 [ Wed Dec 17, 2008 6:00 pm ]
Post subject:  RE:My Mega Man X project

How come the program doesn't work for me? When I open it, it's all written in illegal characters.

Author:  ecookman [ Wed Dec 17, 2008 6:11 pm ]
Post subject:  RE:My Mega Man X project

nice job

Author:  S_Grimm [ Wed Dec 17, 2008 8:06 pm ]
Post subject:  RE:My Mega Man X project

hmmm. I may be missing something here, but the jump no longer works for me...

otherwise good job!

hmmm... Did you try different levels yet? Like, oh say when X's score is at 5000, draw a new background or something?

Also, did you think of making it a two player game? where I can shoot at my friends and they can shoot back?

Author:  WaluiJ [ Fri Dec 19, 2008 4:51 pm ]
Post subject:  Re: My Mega Man X project

I noticed you took out the classes. Thanks for making me understand this program a little more! (Soon I WILL fully know the difference between a procedure oriented and object oriented language!)

inb4longexplanationaboutprocedure/objectorientedprogramming.

Author:  Tyr_God_Of_War [ Fri Dec 19, 2008 8:59 pm ]
Post subject:  Re: My Mega Man X project

Due to insomnia, my program is now Object oriented. I also was forced to rewrite the backgrounds because they ran far to slow on the school computers. Multi-player would not be too hard to add, once I set up an environment class. I also wrote some code to help create the background pics, as well as some useful functions to get data from a file. The actual code is mostly the same, just with different variable names and location inside the program. I plan on condensing the multitude of pics into a single pic and a text file, advice is welcome.

Oh, I keep playing with different controls to find out what my keyboard can handle. The defaults are in the create proc of the MMX class.

Author:  Tyr_God_Of_War [ Wed Jan 21, 2009 12:26 am ]
Post subject:  Re: My Mega Man X project

Now all I need to do is add some sound, and voila.
Each class is in its own file, too.
Not that well commented either.


: