dmcb / spectrum-slider

1 stars 0 forks source link

Tweak the Movement code #1

Open savethejets opened 12 years ago

savethejets commented 12 years ago

The movement code is still not perfect.

savethejets commented 12 years ago

I've updated the movement code,

I capped the max velocity to player.maximumXVelocity, and I added a tiny boost to the player when they collide with the ground.

Give it a try and let me know what you think.

dmcb commented 12 years ago

I suppose I better get the developer's license to try it out...

savethejets commented 12 years ago

We should look into a company one instead of a personal one. Thoughts?

dmcb commented 12 years ago

I think you have to have an actual business number. So we'd need to go and do some paperwork first. It appears you can contact Apple to shift your individual license to a company one, so for now let's be individual and if we actually crank out a real game worth selling we will do the paperwork.

savethejets commented 12 years ago

Ok cool, I wasn't sure if you could shift the individual one to a company one.

dmcb commented 12 years ago

Yeah it says so near the bottom of this page. you need to be a founder/co-founder of the organization, which we of course would be. http://developer.apple.com/support/ios/account-management.html

savethejets commented 12 years ago

I tweaked the movement a bit more with 71520bf0774

dmcb commented 12 years ago

The movement feels pretty good actually. Especially with commit d2968344216ba94744864702942980ff399385d9 for fixing the jumping issues. However, the control doesn't feel tight. Often I can't jump for a while when I hit the ground. I think it might be that I'm jumping too soon, that I'm in the air just a bit when i hit jump that it won't work. But then it seems like I can tap away at the jump button again a couple of times before I jump. It's frustrating. Seems a little glitchy but perhaps it can be tweaked by recording the jump button was pressed and if you land on the ground within a small fraction of time after, the jump will happen.

dmcb commented 12 years ago

Sometimes I noticed, especially when in the right corner, that moves, especially in-air moves, go in the opposite direction being pressed. What gives?

savethejets commented 12 years ago

I fixed this in c184d92a8 There was a wonky touch coming in when we hit the jump and the move at the same time.

locationOfAnyTouch gave us the touch of the jump button, I think. So I ignore the touch on the dpad if it thinks the location is greater than the screen center.

This is a semi okay fix, in that it fixes the issue, but I think whatever we end up doing for #12 will ultimately fix this issue.

savethejets commented 12 years ago

I think we're getting pretty good for the movement code.

That jumping issue you were running into is the only thing left, and at that, I don't even really notice it all that much.

dmcb commented 12 years ago

I still see that jumping issue where you get pushed in the opposite direction. This kind of stuff can never happen if we want the game to not be frustrating. I also still experience the odd can't press two buttons at once issue where I don't jump when I'm running.

dmcb commented 12 years ago

With cb7e60643c5d43641fa5f2b413948a85145bff6e I see more of why when you're moving your player on the ground sometimes you don't jump when you press the button. It appears sometimes the jump button stays 'pressed in'. Not sure why. I think with KKInput we need to loop through inputs and track each one by an ID, I think right now it gets confused and thinks sometimes if you're holding down the dpad you might be continuing to hold jump, even if you aren't.

dmcb commented 12 years ago

Yes, I'm positive now we need to loop through touches and identify which is on each button. Check out this page http://www.kobold2d.com/display/KKDOC/KKInput+Touches in the 'Accessing all Touches' section.

savethejets commented 12 years ago

Double Jump is no more!

f012d711cae49d5541ff25cd63b5503d3727419f

savethejets commented 12 years ago

lies ^ |

Double is now no more

dmcb commented 12 years ago

lol

dmcb commented 12 years ago

I can still double jump. That red bumper at the bottom that you've added. If I jump into it with momentum I can then jump off that.

savethejets commented 12 years ago

That's fine, that thing should be spinning anyway.

You can't double jump off static body platforms which is the important thing.

dmcb commented 12 years ago

Oh okay. Well I still found a couple points where I can .. we should work on this in person again.

savethejets commented 12 years ago

sure sounds good