Two Questions: Can 2 Player games be made; Help with awful movement bug where player is locked into moving left?

cornphillips

New member
I don't know how to embed vids, so here is the vid in question:
https://www.youtube.com/watch?v=IDOJ9FzizP4&feature=youtu.be

I have several movement bugs. For one, moving in some directions and changing direction will instantly stop the player, where other directions, the player will have slow-down via acceleration movement, ala on ice.

My big problem though is if I move left, at a good speed, and then let go and quickly press Right, my player will be put in a state that locks its movement. When it does this, it gets stuck in the wall!

It keeps clipping in the wall changing rooms or whatever until I press Left, and it escapes the wall

Then, It still locks, but if I move the pixel up, I can break the loop somehow, and slow it down.
See Video above.
This happens whether I use press event, or hold event.
I am suspect of the order in which I place the scripts.

__
Here is the second question: Is it possible to hack together 2player games yet?
I know NESMaker can do anything a NES can, but the tool is obviously geared to 1P games.

Cheers!
That's all for now.
b92925f26126449082ead692cc0a66f7.gif

0869875493ffe7ff5290f334b21b6279.gif
 

dale_coop

Moderator
Staff member
Did you get the fixed movements scripts from here: http://nesmakers.com/viewtopic.php?f=19&t=390
And also, you should modify the « ChangeToIdleAnimations » script to be like like: http://nesmakers.com/viewtopic.php?p=2507#p2507
 

cornphillips

New member
dale_coop said:
Did you get the fixed movements scripts from here: http://nesmakers.com/viewtopic.php?f=19&t=390
And also, you should modify the « ChangeToIdleAnimations » script to be like like: http://nesmakers.com/viewtopic.php?p=2507#p2507

OK I updated the movements scripts and it didn't seem to have a different effect for me

I didn't update the change to idle anim, but my game is not using any animations, and i havent been triggering change to anim, so thoughts there? Is it relavent to the problem at hand? Do I need to trigger something beside start and stop movement?
 

dale_coop

Moderator
Staff member
If fact, in order to work you need to:
- assign all the startMovingPayerXxx to the HOLD buttons
- assign all the StopMovingPlayerXxx to the RELEASE buttons
- assign the changeToWalkingAnimation to the PRESS buttons
- assign the changeToIdleAnimation to all the RELEASE buttons

It should work better

Ah, and don’t forget to use the fixed movement scripts and make a small modification as written here http://nesmakers.com/viewtopic.php?p=2507#p2507
 

cornphillips

New member
Hey Dale, I started a new project from scratch and followed the steps diligently and it appears to have solved the problem. Not sure which thing I did wrong, but time to move past it.
And the second question I had would be better stated "How can 2 player games be made" since I know they can.
Cheers!
 

cornphillips

New member
That said the input is still buggy as hell, as in the way it controls the game is inconsistent from how a real game should behave.
I've been coding games for years and have not yet created a functional input system for any game hahaha. it's all like "oh when you hold left and then hold up, it behaves totally different than if you hold up and hold left
haha. one carries momentum and the other completely cancels it out full tilt..
 
Top Bottom