Could you please explain how to use the “Execution State on Appearance” in the image below?
I thought it would be used when I want to execute a state other than the initial state when an object appears, but no matter which state I select, it always starts from the initial state.
This feature allows you to set the state that will be executed when generating an object directly placed within a scene.
When “Initial Execution State” is selected, the initial execution state chosen in the .vs file will be executed.
(You can set the initial execution state by right-clicking on a state within the .vs file.)
If any other state is selected, the selected state will be executed.
Objects generated via execution actions in the .vs file, such as “Create Object,” will have the state selected in that action as their initial state upon creation.
This is an overview of the feature. However, when I created a project and checked the “Execution State at Appearance,” the state executed as expected, and I was unable to reproduce the issue you reported.
If there is no change in the state of objects directly placed within the scene, could you please share the relevant project with us?
Thank you very much for your kind assistance.
I truly appreciate you sharing the details of the case and the project.
I will confirm the information.
Thank you in advance for your continued support.
After reviewing the project you shared, I have confirmed that the “Execute State on Appearance” does not function properly after scene transitions. This appears to be a bug, and we will check with the development team.
As a temporary workaround, could you please consider the following solutions?
Add SceneIndex to the VariableSettings of the GameObject where you want to specify the state.
Add a Node2D as a child to the GameObject where you want to specify the state, and attach the following script:
Thank you for your confirmation and suggestions for alternatives.
Currently, we are creating objects for each required execution state, so we will proceed with this approach for now.
However, we expect this functionality to be needed in the future, so we kindly ask for your support in addressing this.
Additionally, there are several other issues regarding behavior after scene transitions that seem suspicious, and we would appreciate it if you could also check these.
(Note: We have not yet verified the exact conditions for these issues, but there are likely more.)
The wait action that stops game progress does not work.
The firing position when shooting changes depending on the scene (specified via connector).
After scene transitions, the player sometimes appears and sometimes does not appear on DynamicWater.
Regarding the issue mentioned above, I have discovered that the behavior differs depending on whether a scene transition is involved or not. Could you please confirm the following steps?
Additionally, I am currently attempting to display the HP value using ImageGauge in conjunction with the above steps, but if there is a simpler method, I would appreciate your guidance.
■ Procedure
Place object A on the CanvasLayer (UI) in the game scene.
Set the action for object A to “Display Text”
→ Configure it to display the “HP” variable from the Player object.
■ Results
With scene transition: HP is not displayed
Without scene transition: HP is displayed
I have confirmed version 1.1.6 and verified that the “Initial Execution State” can be changed.
However, I’m not sure if it’s related, but the “Respawn Condition After Disappearance: Scene Changed” in BaseSettings does not seem to be working correctly. Could you please check this?
■ Issue:
① Place the following objects in Scene 1
※ Set BaseSettings “Respawn Condition After Disappearance: Scene Changed”
・Enemy1 Initial Execution State: action1
・Enemy2 Initial Execution State: action2
② After destroying the above objects in Scene 1, switch to Scene 2
③ Switch back from Scene 2 to Scene 1
④ The states of each object placed in Scene 1 are as follows:
・Enemy1 AnimationPlayer’s Reset plays (does not switch to state: action1)
・Enemy2 AnimationPlayer’s Reset plays (does not switch to state: action2)
※ If Reset does not exist in AnimationPlayer, both Enemy1 and Enemy2 will execute action1.
I apologize, but I am currently unable to reproduce the issue in my local project. Could you kindly share the relevant project with me so I can investigate further?
I greatly appreciate your assistance and thank you in advance for your cooperation.