(09) Moving Game Object Player - nroflmao/NesMakerHelp GitHub Wiki

1: Select "Scripts...Input Scripts" on the left pane. Navigate in the path to find the input scripts included in the Adventure Module.

image

2: Double click all of the Movement Scripts to add them to the project as shown:

image

3: Click on Input Editor in the left pane. Select "MainGame" and "NULL" and click on the right D-Pad button. Select the script "StartMovingPlayerRight" and "Add Script" to assign this script to the input of D-Pad Right. Continue for other directions.

image

4: Continue for D-Pad release inputs. In this case, need to "StopMovingPlayerRight". Continue for other directions.

image

5: In addition to Stop Moving script when D-Pad release, also need to specify to change back to idle animation, as shown below:

image

6: Select "Export & Test" to check player movement. Player should move around the screen.

image

7: Adjust the animation speed in the Object Details...Actions...Action Step 2 to adjust the speed of animation while walking:

image