Okay, that's a great starting point! Since you have no prior experience, we'll begin with the absolute foundational elements that make Adventure Creator work. We'll get a character moving in a scene and interacting with a single object.
Here’s the step-by-step plan for the very first thing you should do:
Goal: Get a controllable character into a simple scene and have it respond to clicking on an object.
Part 1: Setting Up Your First Scene
-
Create a New Scene:
- In Unity, go to
File > New Scene.
- Choose
Basic (Built-in) or Empty for the template.
- Immediately save this scene:
File > Save Scene As.... Name it something like HallScene and save it in your Assets folder or a subfolder like Scenes.
-
Ensure AC Managers Exist:
- In the Hierarchy window (usually on the left), you should see a GameObject called
Managers. If not, you might need to run the AC setup wizard again: Adventure Creator > Getting started > Create Managers. This Manager object holds all of AC's core settings.
Part 2: Creating Your Player Character
-
Create a Basic Player GameObject:
- In the Hierarchy window, right-click and choose
3D Object > Capsule.
- Rename this Capsule to
Player.
- Important: Move the
Player GameObject so its base is slightly above the origin (0,0,0) if your scene has a floor at y=0.
-
Add the Player Script:
- Select the
Player GameObject in the Hierarchy.
- In the Inspector window (usually on the right), click the
Add Component button at the bottom.
- Type
Player into the search bar and select the Player script from Adventure Creator.
-
Add a Character Controller Component:
- With the
Player GameObject still selected, click Add Component again.
- Type
Character Controller and select the Character Controller component. This is what AC uses for player movement.
- Adjust the
Height and Center properties of the Character Controller in the Inspector so the green wireframe bounds roughly match your Capsule model.
-
Configure the Player Script:
- Still with the
Player GameObject selected, look at the Player script component in the Inspector.
- Movement Method: Click the dropdown and choose
Point And Click. This is the simplest movement for beginners, where you click the ground to move.
- Follow Camera: Make sure
Follow Camera is checked.
- Assign Player to AC:
- Go to the
Managers GameObject in the Hierarchy.
- In the Inspector, find the
Adventure Creator > Managers window.
- Go to the
Scene Manager tab.
- Drag your
Player GameObject from the Hierarchy into the Player field.
Part 3: Creating a Simple Environment
-
Add a Floor:
- In the Hierarchy, right-click and choose
3D Object > Plane.
- Rename it
Floor.
- In the Inspector, scale it up significantly so you have room to move. Try
Scale (X: 50, Y: 1, Z: 50).
- Position it at
Position (X: 0, Y: 0, Z: 0).
-
Add a Wall (Optional but helpful):
- Right-click in the Hierarchy and choose
3D Object > Cube.
- Rename it
Wall.
- Position it somewhere near the
Floor's edge, perhaps Position (X: 0, Y: 1, Z: 25).
- Scale it to look like a wall, e.g.,
Scale (X: 50, Y: 2, Z: 1).
Part 4: Creating Your First Interactive Object (Hotspot)
-
Create a Placeholder Object:
- Right-click in the Hierarchy and choose
3D Object > Cube.
- Rename this Cube to
UmbrellaStand.
- Position it on the
Floor, for example, Position (X: 2, Y: 0.5, Z: 0). Make sure its base is on the floor.
-
Add the Hotspot Component:
- Select the
UmbrellaStand GameObject.
- In the Inspector, click
Add Component.
- Type
Hotspot and select the Hotspot script from Adventure Creator.
-
Define the Interaction:
- In the
Hotspot component, you'll see an Interaction section. Click the Create interaction button.
- Interaction Type: Choose
Use. This is the default action when you click something.
- ActionList On Interaction: This is where the logic goes. We need to create a new ActionList asset.
- Click the circular button next to the
ActionList On Interaction field.
- Choose
Create > ActionList asset.
- Name this new asset
UmbrellaStandInteract and save it in your Assets folder or a subfolder like ActionLists.
- Now, drag this newly created
UmbrellaStandInteract asset from your Project window (where all your files are listed) into the ActionList On Interaction slot in the Hotspot component.
-
Create the ActionList Logic:
- Find your
UmbrellaStandInteract ActionList asset in the Project window and double-click it. This will open the ActionList editor window (usually at the bottom of the screen).
- In the ActionList editor:
- Click the
+ Add Action button.
- Navigate to
Dialogue > Dialogue.
- In the Inspector for this new
Dialogue Action:
- Speech Method: Choose
Narrative. This means it will just display text without any character speaking.
- Text: Type the message you want to see, like: "This looks like an umbrella stand."
Part 5: Linking the Scene to AC and Testing
-
Set the Starting Scene:
- Go back to the
Managers GameObject and its Adventure Creator > Managers window.
- Select the
Scene Manager tab.
- Drag your
HallScene from the Project window into the First Scene slot.
-
Test the Game:
- Click the Play button (the triangle icon) at the top of the Unity editor.
- Observe:
- Your
Player Capsule should appear in the HallScene.
- Your
Camera (which AC usually sets up automatically) should be positioned correctly.
- Movement: Click on the
Floor plane. Your player should move to where you clicked. Click near the Wall to test boundaries.
- Interaction: Move your player close to the
UmbrellaStand cube. Click on the UmbrellaStand cube.
- Result: You should see the text "This looks like an umbrella stand." appear in a dialogue box on the screen.
Congratulations!
You've just created your first playable interaction using Adventure Creator. This is the foundation for everything else. You have:
- A scene.
- A controllable player.
- A simple environment to move in.
- An interactive object (Hotspot).
- A piece of logic (ActionList) that runs when interacting with the object.
What's next?
We can now build upon this. The next logical step would be to:
- Add an item to the inventory: Make it so clicking the Umbrella Stand actually gives you the umbrella.
- Add more Hotspots: Introduce the Desk and the Letter.
How does that first step feel? Did you encounter any issues? Let me know, and we can move on to the next part!