Hi, I'm making a side scroller beat em up game based on the story of "One Piece" anime/manga.
So far, I have added the player's movements, basic attacks (3 hit combo by pressing X button 3 times consecutively)
Now, I know some people will tell me to search tutorials or post them here. I would like to tell that I have searched them all (or most of them) already. They're too advanced for me at this point. My brain can't digest those info all at once. I need to start from the basic level.
Here is my file so far:
sendspace.com/file/q1u8h0
Situation of my game:
These are sample layouts
youtube.com/watch
youtube.com/watch
Basically, you (player) go through all enemies (goons that are easy to defeat) throughout the whole layout, then go to the end to clear the layout, then go to another layout and start another adventure. I HAVE NOT programmed the changing of layouts yet.
I have goons (pirates that have instance variables called "Life" for their individual lives.
BUG in my file so far:
When I use 3 hit combo (press x 3 times) then run/walk then use combo again and run/walk, sometimes I get stuck in a position and I CAN'T do anything (walk/run/jump/attack).
I want to learn some other things:
1) HIT BOXES / COLLISION BOXES
I have already programmed the hitbox for an attack (using spawn another object) and made the attack actually hit the enemy (using on collision with another object).
My questions are:
1a) Do I use the same hitbox (just a small square sprite) for all of my player's different attacks?
1b) If I want to inflict a damage of 30 for punch1 and 50 for punch2. How do I do that?
1c) Is there a way to resize the HIT BOX if I would use the same hitbox for ALL ATTACKS?
2) I want to push enemies when I use punch1 and I want to pull enemies towards me when I use punch2. How do I do that?