Thank you for using ACTION GAME MAKER!
We have released a new update that includes Portal improvements and new APIs. The main changes are listed below.
New Features
Portal: Added "Leave Before Re-transition" (enabled by default)
Since version 2.0, Portals did not trigger again until the object left the Portal area, to prevent infinite loops. Based on feedback that this was inconvenient, it is now an option you can toggle.
It is enabled by default. To get the behavior from before 2.0, please disable it.
Portal: Added "Direction Hold Time"
Previously, Portals triggered as soon as there was any input, which could cause accidental transitions.
You can now set a Portal so that it only transitions after the input has been held for a set amount of time.
Portal: Added "Spawn Position Offset"
More Actions / Conditions accept values from Variables and more
The following Actions / Conditions can now take values from Variables, Blackboard values, Project Variables, or the Database:
- Distance to Other Object
- Directional Move (angle, distance)
- Knockback Self (launch angle, initial speed, distance, travel time)
- Probability
- Distance from Attack Area
- Generate Score Drop (count, spawn probability)
- Set Object Velocity (X, Y)
- Throw (forward / upward initial speed)
- Push / Pull Object (strength)
Added scene transition APIs
You can now switch scenes from GDScript, including to scenes that were not made with ACTION GAME MAKER.
- change_scene_to_agm(): Switches to a GameScene scene.
- change_scene_to_native(): Switches to a native Godot scene whose root is not a GameScene.
Improvements
- "Contact With Attack Area" now uses the direction from which the contact started for as long as the contact continues. Previously, the direction was based only on the current positions, so an attack passing through from left to right could be detected as "Left" at first and "Right" partway through.
- Modulate / Self Modulate now work with the object filter shaders. To apply a filter, "Use Parent Material" must be enabled on nodes such as Sprite2D and AnimatedSprite2D. Previously, enabling it prevented modulation from working. Modulation now works while it is enabled.
- Reference checks when renaming and scans for batch renaming are now faster.
Bug Fixes
- Fixed a crash when a theme override other than StyleBoxFlat was set on a Gauge.
- Fixed a crash when the "Frame" background of a Text Display used a custom theme whose Panel was not a StyleBoxFlat.
- Fixed an issue where the pause from "Open Menu" did not stop the game after a scene transition.
- Fixed an issue where touching a Portal from outside right after a transition did not trigger a transition.
- Fixed an issue where the bullet "Shot Limit" was not restored after moving through a Portal, so bullets could no longer be fired.
- Fixed an issue where objects with "Keep State After Scene Ends" showed their initial state's animation when returning to the scene.
- Fixed an issue where a player with "Keep State After Scene Ends" could face the wrong direction after loading game data.
- Fixed an error that appeared when an object with an afterimage entered a scene.
- Fixed an issue where the contact direction setting sometimes had no effect in "Contact With Attack Area" and similar conditions.
- Fixed an issue where a child's attack area with "Parent Ignores Attacks" still triggered the parent's "Contact With Attack Area".
- Fixed an issue where the "Collision" detection area for mouse input did not reflect disabled or rotated collision shapes.
- Fixed an issue where pasting an Action that targets "Self" onto another object reset its target to "None".
- Fixed an issue where "Initialize Object Property" with the target "Self" only initialized the first instance when there were several of the same object.
- Fixed an issue where the text on the top tabs and the Godot / Maker mode switch button sometimes did not appear the first time a new project was opened.
- Fixed an issue where scene transitions did not work correctly if a file whose name ended in "core.tscn" existed.
