Forum rules - please read before posting.

Version 1.79 - A-star, sub-Objectives, and Templates

A sizeable update hopefully with something for everyone. Headline features:

A-star pathfinding

This has been available on the Downloads page for a while now, but I'm incorporating this into the official release in an effort to have it be more widely available. A-star 2D is an alternative pathfinding method to the default Polygon Collider, and ought to be a lot faster at handling more complex NavMeshes. If you've previously used the downloadable package, it'd be worth switching over to this as the algorithm has been tweaked further to be a little more natural and faster still.

Sub-Objectives

Objectives can now be linked to one another to create dependencies, where a given Objective can be updated automatically when others are completed or failed. The workflow's a bit involved, though, so a new series of tutorials on this topic can be found here.

Templates

The Downloads page mentioned above is getting quite packed now with a lot of handy examples and add-ons, but they can be a bit cumbersome to incorporate into an existing project. To that end, Templates - where such add-ons can be installed with a single click - will begin to be rolled out. By way of example: the "Shop system" package previously required manually adding Inventory properties, categories, and Menus, but the updated package now provides a handy "Apply" button that will automate these changes for you. Templates can also provide example scenes, and custom prefabs for the Scene Manager.

Eventually, the Template system will be incorporated into AC proper, but for now it's in use by the following Download packages:

  • First Person player
  • 2D First Person
  • Click FX
  • Isometric Camera
  • Nine verbs interface
  • Mobile joystick
  • Save-game screenshots
  • Save-game retro
  • Conversation camera
  • Speech bubbble
  • Cinemachine integration
  • Shop system

As ever, big thanks to the bug reports and feature suggestions. Full changelog:

Comments

  • Upgrade notes

    • The OnPointAndClick custom event now uses the "ref" keyword for its pointArray parameter
    • The behaviour of GameCamera and GameCamera 2D "Follow speed" fields have been adjusted, and are now represented by a slider

    Objectives

    • Added: Ability to assign Objectives as sub-Objectives for an Objective state's category
    • Added: Ability to automatically begin all designated sub-Objectives once an Objective enters a specific state
    • Added: Ability to automatically switch Objective states upon one or all sub-Objectives completing or failing
    • Added: Ability to assign an ActionList asset that runs when an Objective is enters a specific state
    • Added: Ability to manually set an Objective state as active from within the Inventory Manager at runtime
    • Added: Ability to list the selected Objective's sub-Objectives within InventoryBox elements, with the option to override through script
    • Added: Ability to sort Objective lists by ID, by start time, or by update time
    • Added: Ability to distinguish between new, completed and failed objectives when using the Events Editor's Objective: Update event

    Inventory

    • Added: Ability to set the maximum number of slots the Player's Inventory can have
    • Fixed: InvCollection's MaxSlots property not included in save-game data
    • Fixed: Recipes not properly filtering by item category

    Menus

    • Added: "Pre-process tokens?" option to the "Menu: Update content" Action
    • Fixed: Subtitle display issue when using Text Mesh Pro and the "TMPro Typewriter effect?" option is checked
    • Fixed: OnMouseOverMenu custom event sometimes being called when de-selecting an element
    • Fixed: UI hover sounds sometimes playing when de-selecting an element

    Editor

    • Added: Ability for custom Actions to add custom entries to their own context menu in the ActionList Editor
    • Added: Template class - used by Download packages to quickly apply changes to Managers
    • Added: Readability improvements to AC's Editors and Inspectors
    • Added: Ability to hide save icons in the Hierarchy, while retaining ActionList icons
    • Changed: "Character: Animate" and "Object: Animate" Actions that use Mecanim now use FloatFields for "Transition time", as opposed to Sliders
    • Fixed: "Minimum display time" and "Display time factor" being incorrectly hidden in the Speech Manager
    • Fixed: Nested scrollbars in the AC Game Editor preventing the window from scrolling

    Hotspots

    • Added: Option to interact with single-Interaction Hotspots with the release of a click/button, as opposed to a press
    • Fixed: Flash effects not running for selected Hotspots that have "Enable when associated Hotspot is selected?" unchecked
    • Fixed: Hotspot highlight effects occasionally flickering when "Highlight Hotspots based on cursor proximity?" is checked
    • Fixed: Console warning if Hotspot icons are set to display a fixed texture, but no texture is assigned

    Movement

    • Added: A-star pathfinding option for 2D games
    • Added: Ability to modify a character's "up" direction via the Char script's UpDirection property
    • Added: Option for the NavMesh Agent Integration component to only take effect during cutscenes
    • Added: Improvements to the movement behaviour of characters that use the NavMesh Agent Integration component
    • Added: Option to show the Click marker prefab each time the Player moves due to pathfinding when using Straight To Cursor movement
    • Added: Random Marker / Random Maker 2D navigation prefabs - use to move characters to a random point within a given area
    • Changed: The OnPointAndClick custom event now uses the "ref" keyword for its pointArray parameter
    • Changed: AC's legacy Ultimate FPS integration has been deprecated
    • Fixed: NavMesh Agent Integration component's "auto-stick to NavMesh" feature during Direct control not working if the game begin with another Movement method active

    Actions

    • Added: Ability for the "Object: Check tag" Action to pass the checked GameObject's tag to a String parameter
    • Added: Option to assign a destination Transform to the "Physics: Raycast" Action
    • Fixed: Parameter tokens sometimes not being processed correctly in Action-based Text fields
    • Fixed: Objects spawned using the "Object: Add or remove" Action sometimes being inadvertently removed after skipping a cutscene

    Speech

    • Added: Ability to set custom keys for speech lines when using Addressables
    • Fixed: Custom audio filenames defined in the Speech Manager not being used at runtime
    • Fixed: Text export wizard's "No lines with translations?" option having the opposite effect

    Cameras

    • Added: "Camera: Check active" Action - use to check the currently-active GameCamera
    • Added: Option for GameCameras and GameCamera 2Ds to update while the game is paused
    • Changed: The behaviour of GameCamera and GameCamera 2D "Follow speed" fields have been adjusted, and are now represented by a slider

    Conversations

    • Added: The automatic running of a Conversation's dialogue options when clicked in a Menu is now optional
    • Fixed: OnStartConversation and OnEndConversation custom events not always firing at the correct time
    • Changed: If a Conversation's options are overridden, the OnEndConversation custom event is now fired the moment an option is chosen

    Events

    • Added: "Draggable: Snap" event to the Events Editor
    • Added: Ability to generate Events in the editor by script
    • Added: OnActiveInputFire custom event - called whenever an Active Input is triggered
    • Changed: The "Scene: Change: After" event's "Due to loading save file?" Toggle field has been changed to a PopUp

    Variables

    • Added: Ability for individual variables to ignore preset values
    • Fixed: Error when attempting to use the "Variable: Check" Action to compare an empty GameObject value

    Save games

    • Added: Option to avoid loading Menu data with the "Save: Save or load" Action's "Selective load?" option
    • Changed: Save-game screenshots are now compressed when loaded into memory
    • Fixed: Memory leak when overwriting save-game screenshots

    Misc

    • Added: "Survive scene changes" component - when attached to a GameObject, the GameObject will be moved to the Hierarchy's "DontDestroyOnLoad" scene
    • Fixed: Sound objects that survive scene changes sometimes being deleted incorrectly upon re-opening its original scene
    • Fixed: Simulated input ignored if input is overridden through delegates
    • Fixed: Triggers set to detect via Transform Position not accounting for their own rotation
  • Big update...looks great...thanks for all that you do.

  • Man, what an update. Not only the much needed feature for having custom names for addressables is in it, but I recently thought about asking for an Action that let's you check which camera is currently active and it's in there, too.
    And you have no idea how much the "Ignore presets" checkbox just saved my life. It's almost like you read my mind. Thank you very much for this one. Basically every AC update is a gift, but this one especially.

  • A few issues slipped through the cracks, a hotfix to address them:

    Version 1.79.1:

    • Fixed: "Object: Animate" Actions in ActionList asset files breaking the ActionList Editor window
    • Fixed: Error viewing save data in the Save-File Manager when "Compress save files?" is checked
    • Fixed: Incorrect character placement when the "Character: Move along path" Action is skipped
    • Fixed: NavMesh Agent Integration component causing a rotation issue
    • Fixed: "Sprites 2D Toolkit" remaining as an "Animation engine" option despite being deprecated
  • Thank you so much for the update! There are so many amazing new features, and I'm especially excited about the New Sub Objective feature.

  • Excellent work, Chris!

    The subobjectives look very interesting indeed, they seem simple enough on the surface but open up some quite interesting and complex behaviours.

    First things first, how do I make some free time between fighting to keep the lights on and sleep.
  • Version 1.79.2:

    • Added: Scene Items held by the Player are now saved and loaded automatically if they have a Remember Scene Item component
    • Added: Ability to use any 2D Collider component with A* 2D pathfinding
    • Added: OnBeginGame custom event - called when the first scene is run for the first time
    • Added: "Position offset" field to the "Character: Move to point" Action
    • Added: "Set Direction" and "Set Position" options to the "Character: Face direction" Action
    • Added: Ability for the "Container: Add or remove" Action to remove items from a set index
    • Added: Ability for the "Character: Hold object" Action's "Drop Object" method to assign the dropped object as a GameObject parameter
    • Added: Option for the "Inventory: Change interaction" Action to reference an Interaction by its Cursor Icon, rather than its own ID
    • Added: Ability to use GameObject parameters in the "Inventory: Change Interaction" Action's "Inventory item" field to reference SceneItems
    • Added: Ability to choose between referencing the original prefab and its scene instance when assigning GameObject parameter values in scene-based "ActionList: Run" Actions
    • Changed: Input simulation is now able to simulate multiple inputs at once
    • Changed: The Settings Manager's "Jump speed" field has been moved to the Player Inspector
    • Changed: Reverted v1.79.0 changes to OnMouseOverMenu custom event
    • Changed: Removed Ultimate FPS v1 integration
    • Fixed: "Horizontal offset" field in the Project Settings not displaying correctly in v1.79.0
    • Fixed: "Player: Lock to Path" Action still allowing the Player character to move beyond a Path's ends
    • Fixed: Issues when using a non-unit "Screenshot size factor" value
    • Fixed: Variables not being correctly referenced when ActionList assets are searched
    • Fixed: Triggers set to react "During Gameplay" not responding during Conversations when "Allow regular gameplay during Conversations?" is checked
    • Fixed: Inventory items not always having their Interaction states correctly restored after loading
    • Fixed: ActionLists sometimes losing data when opening one list from another in the ActionList Editor
    • Fixed: Issues with A* 2D pathfinding
  • Version 1.79.3:

    Upgrade note

    • If an InvInstance's data is overridden through script, its TreatOverridesAsSeparate must now be set to True to have it be considered a separate Item

    • Added: If a "Character: Move to point" Action's target Marker has a Paths component attached, the node to move to can be specified

    • Added: "Open in set element?" option to the "Document: Open" Action
    • Added: Option for DialogList elements that map to "Fixed Option ID" to ignore the linked option's enabled state
    • Added: Ability to have the "Inventory: Property to Variable" Action reference items in a Container
    • Added: Option for the cursor's influence over cameras to take effect during Conversations
    • Changed: The "Inventory: Property to Variable" Action's "Use live values?" option has been replaced with a dropdown
    • Changed: The GameCamera 2D's "Background constraint" field now accepts any type of Renderer
    • Changed: If an InvInstance's data is overridden through script, its TreatOverridesAsSeparate must now be set to True to have it be considered a separate Item
    • Fixed: Rare issue with the Follow Tintmap component when switching scene
    • Fixed: Remember Container component not restoring empty slots in Containers when loading save-files
    • Fixed: Sub-scenes not having their Remember data correctly loaded
    • Fixed: Sub-scenes ignoring the "Load scenes asyncronously?" option
    • Fixed: "Variable: Copy" Action not copying translatable String variables correctly if the variable being updated cannot be translated
    • Fixed: Removed warning messages in Unity 2023.1 on OSX
    • Fixed: Sprites Unity-based Player characters not reverting to custom animations when loading even if a Remember Animator component is attached
    • Fixed: First-person Players sometimes not facing a Hotspot after reaching it before an Interaction
    • Fixed: "Menu: Change state" Action not completing if "Wait until finish?" is checked but the affected Menu has no transition
  • Thank you so much for the update, Chris! And especially kudos to you for adding cursor's influence during the Conversations! You are the best :)

  • Big thanks for this amazing product and all the fantastic updates!

  • I noticed that you sometimes post scripts on the forum. Do you also upload them?

    • Wrong thread. Delete, please.-
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.