Cannot get player to move

united51

New member
Issues with player 1 moving on the screen.
I updated scripts and when I go up, down, left, right I get the animations of him in the idle stance, but will not actually walk on screen.
I do have separate idle and walking animations
I think the walking animation setup in action is not setup right. I have included screen shots.

I am not sure what to do with the input scripts doMovemmentSuff.ASM and ChangeToIdleAnimation.asm
Do I assighn them to a input button for each direction?

Thanks for all help. So far pretty awesome




MTscreen1_1.png

MTscreen2_1.png
 

dale_coop

Moderator
Staff member
Did you assigned the input scripts to your buttons in the Input Editor ?
Did you get the fixed movements scripts from here: http://nesmakers.com/viewtopic.php?f=19&t=390
And lastly, you need to fix the ChangeToIdleAnimations script as written here: http://nesmakers.com/viewtopic.php?p=2507#p2507

Then it should work better
 

united51

New member
I have done these, I am not sure if the changetoidleanimation should be a release

so I am testing just the right button function in input.


So what I got going on in the input is


MTscreen3.png



Each set of codes:

StartMoving player1_object, MOVE_RIGHT
LDX player1_object
LDA Object_movement,x
AND #%11111000
ORA #%00000010
STA Object_movement,x
RTS



StopMoving player1_object, STOP_RIGHT
RTS



LDX player1_object
ChangeObjectState #$00, #$02

RTS
 

dale_coop

Moderator
Staff member
I don’t know if that changes anything, because I didn’t tested it myself, but according ton Joe, the inputs should have « NULL » as target (not « player »).

You made a mistake:
The changeToIdleAnimations script must be assigned to the Release Right button
The changeToMovingAnimations needs to be assigned to the Press Right button.
 

united51

New member
I have a changeToMovingWalingAnimation but not a changeToMovingAnimations

The changeToMovingWalingAnimation is:

LDX player1_object
ChangeObjectState #$01, #$10

RTS
 

dale_coop

Moderator
Staff member
Yeah it's that one (sorry, I didn't have my pc with me... I was writing with my smartphone)
- the "changeToMovingWalkingAnimation" script on PRESS right button
- the "changeToIdleAnimations" script on RELEASE right button
(and same script for other directions)
 

Kitsune

New member
I come back on this topic as I was trying the 4.0.6 version and was unable to move my player. In fact, it moves when I press a button and stop when I release the same button and the animation is correct, but the player never go anywhere, it's stuck in place. In the previous build it was moving.
Is it a problem with the adventure module and its scripts or (IMPOSSIBLE :mrgreen: ) the problem is...hum...me ?
 

dale_coop

Moderator
Staff member
For the 4.0.6, in the "Scripts > Input Scripts", you add all the scripts that are in "UserScripts\AdventureGame_Base\MovementScripts".
Then in the "Input Editor", you need to assign Game State "MainGame", Target "NULL" and :
- "startMovingPlayerXxx.asm" to "HOLD" for each direction
- "stopMovingPlayerXxx.asm" to "RELEASE" for each direction
and
- "ChangeToIdleAnimations.asm" à "RELEASE" for each direction
(do not assign "ChangeToWalkingAnimations.asm", no need this one in fact!)

Your player should be able to move (and animated).
 

Kitsune

New member
thanks dale but everything is done and my player is stuck in place.

1535175706-nesmaker-4-0-6.png


I tried to put my player anywhere on the overworld, to make in alone on a screen, to change data in game object, to suppress animation frames in game object etc but it's always stuck.
 
Top Bottom