Tutorial: "ACTION GAME MAKER from Scratch" Chapter 2

Let’s Move the Character with “VisualScript”

Now that all preparations are complete, let’s try moving the character using VisualScript. First, attach (assign) VisualScript to the player.

Attach “VisualScript”

  1. In the Scene window, select the Player node (GameObject).

  2. Click the “:scroll:+” (Attach Script) button.

  1. A new window will appear. This is the screen where you choose whether to attach VisualScript or GDScript (a standard programming language). However, if you have selected the Player node (GameObject), VisualScript will be automatically selected, so simply click the “Create” button.

  1. The editor screen will automatically switch to “Script,” and you will see a screen with two types of boxes: “State001” and “AnyState.” This is the VisualScript interface.

If you want to return to the original screen…

You can switch back by changing the top tab to “2D.” As explained in the section on scene transitions, the top tabs are buttons that switch the display of the editor screen.

Image 90