Interaction method and related device
By providing a suspension and continuing interaction method during the execution of the computer instruction, combined with the use of instructions to identify information, the problem that users cannot freely control the execution and analysis of the instructions are solved, and the degree of freedom and user experience are improved.
Patent Information
- Application Number
- CN202410008732.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-03
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2044-01-03
AI Technical Summary
In the prior art, users cannot freely control the execution process of computer instructions, resulting in the inability to analyze abnormal situations in a timely manner, and the degree of freedom of control is poor, which affects the user's instruction understanding and program usage experience.
Provide an interactive method. By displaying the operating interface and control, users can suspend or continue the behavior of the target object, and understand the current execution of the control instructions through the instruction logo information to achieve rapid positioning and debugging of abnormal abnormalities.
The user's control of the target object is improved, allowing users to observe the object status in detail when needed, and quickly locate and debug the abnormal control instructions, and improve the user experience.
Smart Images

Figure CN118012549B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of human-computer interaction for controlling the direction of a virtual object, and in particular to an interaction method and related devices. Background Art
[0002] As computer technology continues to develop, more and more people have become interested in the construction of computer instructions, and with it come a variety of programs for understanding computer instructions.
[0003] In related technologies, users can enter multiple computer instructions in a program, which can control a specified object to perform corresponding behaviors in the scene displayed by the program, thereby enabling users to understand how computer instructions control the behavior of the object, as well as the specific uses of computer instructions, etc.
[0004] However, in the related art, after obtaining computer instructions, the program will directly execute all the obtained computer instructions. The user can only see the specified object executing various behaviors in a coherent manner, and cannot freely control the process of executing the behaviors. Therefore, when the specified object has an abnormality, the abnormal situation cannot be analyzed in time, and the freedom of object control is poor. Therefore, the programs in the related art are difficult to provide users with good instruction understanding functions and program usage experience. Summary of the invention
[0005] In order to solve the above technical problems, the present application provides an interactive method, which allows the interface operator to arbitrarily pause the execution of object actions and clearly know the control instructions that are currently in execution, so that the interface operator can know which control instruction has an abnormal execution, which helps the interface operator to debug the control instructions more efficiently.
[0006] The embodiments of the present application disclose the following technical solutions:
[0007] In a first aspect, an embodiment of the present application discloses an interaction method, the method comprising:
[0008] Displaying a first operation interface, where the first operation interface is used to display an object behavior executed by a target object, where the target object is used to execute an object behavior corresponding to a control instruction, where the object behavior is used to change an object state of the target object in the first operation interface;
[0009] Displaying the first control and instruction identification information through the first operation interface, the instruction identification information is used to identify the control instruction in the executed state, and when the instruction identification information is used to identify the target control instruction, the target object executes the object behavior corresponding to the target control instruction in the first operation interface;
[0010] Based on the first trigger operation on the first control, the object state of the target object in the first running interface is kept unchanged, and the instruction identification information displayed in the first running interface is kept unchanged.
[0011] In a second aspect, an embodiment of the present application discloses an interaction method, the method comprising:
[0012] Obtaining object control information, the object control information being used to control a target object in a first operation interface, the object control information including first control information and control information corresponding to a target control instruction, the control information corresponding to the target control instruction including display control information corresponding to the target control instruction and instruction execution information corresponding to the target control instruction, the target object being used to execute a target object behavior corresponding to the target control instruction, the instruction execution information being used to characterize an execution mode of the target object behavior, and the object behavior being used to change an object state of the target object in the first operation interface;
[0013] Execute the control information corresponding to the target control instruction;
[0014] The control information corresponding to executing the target control instruction includes:
[0015] According to the display control information, display instruction identification information for identifying the target control instruction in the first operation interface, where the instruction identification information is used to identify the control instruction in an executed state;
[0016] Based on the first information content corresponding to the first control information, updating the object state information corresponding to the target object according to the instruction execution information, wherein the object state information is used to control the object state of the target object in the first operation interface;
[0017] Based on the second information content corresponding to the first control information, the updating of the object status information is stopped, and the first trigger operation is used to change the information content corresponding to the first control information to the second information content. The first trigger operation is a trigger operation for the first control displayed on the first running interface.
[0018] In a third aspect, an embodiment of the present application discloses an interactive device, the device comprising a first display unit, a second display unit and a first control unit:
[0019] The first display unit is used to display a first operation interface, the first operation interface is used to display an object behavior executed by a target object, the target object is used to execute an object behavior corresponding to a control instruction, and the object behavior is used to change an object state of the target object in the first operation interface;
[0020] The second display unit is used to display the first control and instruction identification information through the first operation interface, the instruction identification information is used to identify the control instruction in the executed state, and when the instruction identification information is used to identify the target control instruction, the target object executes the object behavior corresponding to the target control instruction in the first operation interface;
[0021] The first control unit is used to keep the object state of the target object in the first running interface unchanged based on the first trigger operation on the first control, and to keep the instruction identification information displayed on the first running interface unchanged.
[0022] In a possible implementation, the device further includes a third display unit and a second control unit:
[0023] The third display unit is used to display the second control through the first operation interface based on the first trigger operation;
[0024] The second control unit is used to control the target object in the first running interface to use the first object state as the starting object state based on the trigger operation on the second control, and continue to execute the object behavior corresponding to the control instruction in the executed state from the first instruction execution progress, wherein the first object state is the object state maintained in the first running interface based on the first trigger operation, and the first instruction execution progress is the instruction execution progress corresponding to the first object state.
[0025] In a possible implementation, the device further includes a third control unit, a fourth display unit, and a fourth control unit:
[0026] The third control unit is used to keep the object state of the target object in the first operation interface unchanged based on the target object completing the first object behavior, where the first object behavior is the object behavior corresponding to the first control instruction;
[0027] The fourth display unit is used to display a third control through the first operation interface;
[0028] The fourth control unit is used to control the target object to execute a second object behavior in the first operation interface based on a trigger operation on the third control, the second object behavior is an object behavior corresponding to a second control instruction, the second control instruction is the next control instruction corresponding to the first control instruction in the instruction execution sequence, and the target object is used to execute object behaviors corresponding to multiple control instructions respectively according to the instruction execution sequence.
[0029] In a possible implementation, the device further includes a fifth display unit and a fifth control unit:
[0030] The fifth display unit is used to display a fourth control through the first operation interface;
[0031] The fifth control unit is used to control the target object in the first operation interface based on the trigger operation of the fourth control, and execute the object behavior corresponding to all control instructions located after the first control instruction among the multiple control instructions according to the instruction execution order.
[0032] In a possible implementation, the device further includes a sixth display unit:
[0033] The sixth display unit is used to display an instruction display interface, and the instruction display interface is used to display multiple control instructions corresponding to the target object. The target object is specifically used to sequentially execute object behaviors corresponding to the multiple control instructions. The control instructions in the executed state correspond to the first instruction display mode, and the control instructions not in the executed state correspond to the second instruction display mode. The first instruction display mode and the second instruction display mode are different instruction display modes.
[0034] In a possible implementation, the instruction display interface further includes a fifth control, and the first display unit is specifically used to:
[0035] Based on the trigger operation on the fifth control, hiding the instruction display interface and displaying the first operation interface;
[0036] Controlling the target object to execute an object behavior corresponding to a control instruction in an executed state in the first operation interface;
[0037] The device also includes a seventh display unit:
[0038] The seventh display unit is used to display the instruction display interface based on the first trigger operation.
[0039] In a possible implementation, the multiple control instructions have a corresponding instruction execution order, the target object is specifically used to sequentially execute the object behaviors corresponding to the multiple control instructions according to the instruction execution order, the third control instruction is any one of the multiple control instructions that is not in an executed state, and the device further includes a sixth control unit and a seventh control unit:
[0040] the sixth control unit is configured to change, based on a second trigger operation on the third control instruction, a display mode corresponding to the third control instruction from the second display mode to the first display mode, and change a display mode corresponding to a fourth control instruction from the first display mode to the second display mode, wherein the fourth control instruction is a control instruction in an executed state among the plurality of control instructions at an operation moment corresponding to the second trigger operation;
[0041] The seventh control unit is used to control the target object in the first operation interface to execute the object behavior corresponding to the third control instruction with the second object state as the starting object state, the second object state being the object state corresponding to the target object after the target object completes the third object behavior according to the instruction execution sequence, and the third object behavior being the object behavior corresponding to the previous control instruction corresponding to the third control instruction in the execution sequence.
[0042] In a possible implementation, the multiple control instructions have a corresponding instruction execution order, the instruction display interface further includes a sixth control, and the device further includes an eighth display unit:
[0043] The eighth display unit is used to display a second operation interface based on a trigger operation on a sixth control, and the second operation interface is used to display that the target object executes the object behaviors corresponding to the multiple control instructions in sequence according to the instruction execution order.
[0044] In a possible implementation, the device further includes a ninth display unit:
[0045] The ninth display unit is used to display object status information through the first operation interface, where the object status information is used to represent the object status corresponding to the target object.
[0046] In a possible implementation, the target control instruction has a corresponding target object state, and the target object state is an object state determined based on a control instruction corresponding to an object behavior executed by the target object when the object behavior corresponding to the target control instruction is executed. The device further includes a tenth display unit and an eleventh display unit:
[0047] The tenth display unit is configured to display first prompt information based on the fact that the target object is in the target object state when the target object completes executing the object behavior corresponding to the target control instruction, wherein the first prompt information is used to indicate that there is no abnormality in the object behavior executed by the target object;
[0048] The eleventh display unit is used to display second prompt information based on the fact that when the target object completes the object behavior corresponding to the target control instruction, the target object is not in the target object state, and the first prompt information is used to indicate that an abnormality has occurred in the object behavior executed by the target object.
[0049] In a fourth aspect, an embodiment of the present application discloses an interaction device, the device comprising an acquisition unit and a first execution unit:
[0050] The acquisition unit is used to acquire object control information, the object control information is used to control the target object in the first operation interface, the object control information includes the first control information and the control information corresponding to the target control instruction, the control information corresponding to the target control instruction includes the display control information corresponding to the target control instruction, and the instruction execution information corresponding to the target control instruction, the target object is used to execute the target object behavior corresponding to the target control instruction, the instruction execution information is used to characterize the execution mode of the target object behavior, and the object behavior is used to change the object state of the target object in the first operation interface;
[0051] The first execution unit is used to execute the control information corresponding to the target control instruction;
[0052] The control information corresponding to executing the target control instruction includes:
[0053] According to the display control information, display instruction identification information for identifying the target control instruction in the first operation interface, where the instruction identification information is used to identify the control instruction in an executed state;
[0054] Based on the first information content corresponding to the first control information, updating the object state information corresponding to the target object according to the instruction execution information, wherein the object state information is used to control the object state of the target object in the first operation interface;
[0055] Based on the second information content corresponding to the first control information, the updating of the object status information is stopped, and the first trigger operation is used to change the information content corresponding to the first control information to the second information content. The first trigger operation is a trigger operation for the first control displayed on the first running interface.
[0056] In a possible implementation manner, the device further includes a determining unit:
[0057] The determining unit is used to determine, according to the instruction execution information, information update modes corresponding to a plurality of instruction execution progresses of the target object behavior, wherein the plurality of instruction execution progresses are instruction execution progresses during the process of the target object executing the target object behavior;
[0058] The first execution unit is specifically used for:
[0059] Based on the target object reaching the target instruction execution progress and the first control information corresponding to the first information content, the object state information corresponding to the target object is updated according to the target information update method corresponding to the target instruction execution progress.
[0060] In a possible implementation manner, the device further includes a second execution unit:
[0061] The second execution unit is used to change the information content corresponding to the first control information to the first information content based on a trigger operation on a second control displayed in the first operation interface, and the second control is a control displayed based on the first trigger operation.
[0062] In a possible implementation, the object control information includes control information corresponding to a plurality of control instructions respectively, the target control instruction is any one of the plurality of control instructions, the plurality of control instructions have a corresponding instruction execution order, the object control information also includes second control information, the control information corresponding to the target control instruction also includes content change information and content judgment information, the content change information is used to change the information content corresponding to the first control information to the second information content when the instruction execution information is executed, and the content judgment information is used to change the information content corresponding to the first control information to the first information content based on the third information content corresponding to the second control information after the content change information is executed;
[0063] The device also includes a third execution unit:
[0064] The third execution unit is used to execute the control information corresponding to the fifth control instruction based on the control information corresponding to the target control instruction being completed and the first control information corresponding to the first information content. The fifth control instruction is the next control instruction of the target control instruction in the instruction execution sequence. The trigger operation on the third control is used to change the information content corresponding to the second control information to the fourth information content, and to change the information content corresponding to the first control information to the first information content. The third control is a control displayed in the first operation interface after the control information corresponding to the target control instruction is executed.
[0065] In one possible implementation, the trigger operation for the fourth control is used to change the information content corresponding to the second control information to the third information content, and the fourth control is a control displayed in the first operation interface after the control information corresponding to the target control instruction is executed.
[0066] In a possible implementation, the control information corresponding to the target control instruction also includes state change information, and the state change information includes an instruction identifier corresponding to the target control instruction, and the instruction identifier is used to identify the target control instruction in an instruction display interface. The state change information is used to change the display mode of the target control instruction in the instruction display interface from a second instruction display mode to a first instruction display mode. In the instruction display interface, control instructions in an executed state correspond to the first instruction display mode, and control instructions that are not in an executed state correspond to the second instruction display mode.
[0067] In a fifth aspect, an embodiment of the present application discloses a computer device, wherein the computer device includes a processor and a memory:
[0068] The memory is used to store a computer program and transmit the computer program to the processor;
[0069] The processor is used to execute the interaction method described in any one of the first aspects, or execute the interaction method described in any one of the second aspects according to the instructions in the computer program;
[0070] In a fourth aspect, an embodiment of the present application discloses a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein the computer program is used to execute the interaction method described in any one of the first aspects, or execute the interaction method described in any one of the second aspects;
[0071] In a fifth aspect, an embodiment of the present application discloses a computer program product comprising a computer program, which, when executed on a computer device, enables the computer device to execute the interaction method described in any one of the first aspects, or execute the interaction method described in any one of the second aspects.
[0072] It can be seen from the above technical solution that when running the control instruction corresponding to the target object, the first operation interface can be displayed first. The first operation interface is used to display the object behavior executed by the target object. Therefore, through the first operation interface, the interface operator can observe the execution of the object behavior of the target object. The first control and instruction identification information are displayed through the first operation interface. The instruction identification information is used to identify the control instruction in the executed state, that is, through the instruction identification information, the interface operator can know which control instruction is currently executing the object behavior corresponding to the target object. When the interface operator wants to carefully observe the object state of the target object, the first control can be triggered. Based on the trigger operation, in the first operation interface, the object state of the target object will remain unchanged, and the instruction identification information displayed by the first operation interface will remain unchanged, that is, the target object will suspend the execution of the object behavior. At this time, the interface operator can fully observe the current object state of the target object, and at the same time, the control instruction corresponding to the current object state can also be understood through the instruction identification information that no longer changes. It can be seen that through the interactive method of the present application, on the one hand, the interface operator can freely pause the object behavior of the target object according to its own needs, so that the object state of the target object during the execution process can be fully analyzed; on the other hand, through the instruction identification information, the interface operator can accurately locate the control instruction in the executed state. For example, when an abnormality is observed in the execution of the control instruction, the interface operator can quickly debug the abnormal control instruction, thereby improving the interface operator's control experience of the target object. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0074] Figure 1 A schematic diagram of an interaction method in a practical application scenario provided by an embodiment of the present application;
[0075] Figure 2 A flowchart of an interaction method provided in an embodiment of the present application;
[0076] Figure 3 A schematic diagram of an interaction method provided in an embodiment of the present application;
[0077] Figure 4 A schematic diagram of an interaction method provided in an embodiment of the present application;
[0078] Figure 5A schematic diagram of an interaction method provided in an embodiment of the present application;
[0079] Figure 6 A schematic diagram of an interaction method provided in an embodiment of the present application;
[0080] Figure 7 A schematic diagram of an interaction method provided in an embodiment of the present application;
[0081] Figure 8 A schematic diagram of an interaction method provided in an embodiment of the present application;
[0082] Fig. 9 A schematic diagram of an interaction method provided in an embodiment of the present application;
[0083] Fig.10 A schematic diagram of an interaction method provided in an embodiment of the present application;
[0084] Fig.11 A flowchart of an interaction method provided in an embodiment of the present application;
[0085] Fig.12 A schematic diagram of an interaction method provided in an embodiment of the present application;
[0086] Fig.13 A flowchart of an interaction method in a practical application scenario provided by an embodiment of the present application;
[0087] Fig.14 A structural block diagram of an interactive device provided in an embodiment of the present application;
[0088] Fig.15 A structural block diagram of an interactive device provided in an embodiment of the present application;
[0089] Fig.16 A structural diagram of a terminal provided in an embodiment of the present application;
[0090] Fig.17 A structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0091] The embodiments of the present application are described below in conjunction with the accompanying drawings.
[0092] Object control based on an operation interface for displaying the operation status of an object can be applied in a variety of technical fields. For example, in the field of animation editing, the operation interface can be an animation playback interface, and the object can be an object that can be controlled in the animation; in the field of computer instruction construction, the operation interface can be an operation interface for displaying the behavior of an object, and the object can be an object that acts based on a control instruction. Through this interface, the interface operator can learn the actual operation status of the control instruction that he or she inputs, thereby facilitating the interface operator to understand information such as the operating principle of the control instruction, and helping the interface operator to learn computer instruction knowledge.
[0093] In the related art, since only simple command running functions can be provided, after the interface operator inputs a control command and starts running, the objects in the running interface can only stop executing after executing all the object behaviors corresponding to the control commands. This makes it impossible for the interface operator to fully observe the various states of the object during the execution of the object behavior. For example, if abnormal object behavior occurs, the interface operator can only run all control commands over and over again to analyze which control command has the abnormality, resulting in low abnormality locating efficiency and making it difficult for the interface operator to obtain a good interactive experience.
[0094] In order to solve the above technical problems, the present application provides an interactive method. On the one hand, through the instruction identification information displayed on the first running interface, the interface operator can clearly know the control instruction currently being executed. On the other hand, through the first control displayed on the first running interface, the interface editor can freely pause the object behavior execution of the target object, so that the interface editor can fully observe the object state of the target object at each moment, and combined with the instruction identification information that is also paused and changed, it can achieve rapid positioning of the control instruction corresponding to any object state, which in turn helps the interface operator to quickly understand and efficiently analyze various situations during the execution of the control instruction, thereby improving the interactive experience of the interface operator.
[0095] It is understandable that the method can be applied to a computer device, which is a computer device capable of interface display and interaction, such as a terminal device or a server. For the part of the interactive method of the present application involving the display level, the method can be executed independently by a terminal device, or it can be applied to a network scenario in which a terminal device and a server communicate, and it is executed by the terminal device and the server in cooperation. For the underlying interactive logic processing part involved in the interactive method of the present application, such as the specific object behavior execution method, etc., it can be executed independently by a terminal device or a server, or it can be applied to a network scenario in which a terminal device and a server communicate, and it is executed by the terminal device and the server in cooperation.
[0096] Among them, the terminal device can be a mobile phone, tablet computer, laptop computer, desktop computer and other devices. The terminal device can also include a variety of virtual reality devices, for example, it can include augmented reality (AR) devices, such as AR glasses, AR screens and other devices, and can include virtual reality (VR) technology devices, such as head-mounted VR glasses and other devices. The server can be understood as an application server or a Web server. In actual deployment, the server can be an independent server, a cluster server, or a cloud server.
[0097] In order to facilitate understanding of the technical solution provided by the present application, the interaction method provided by the present application will be introduced below in combination with an actual application scenario.
[0098] See also Figure 1 , Figure 1 A schematic diagram of an interaction method in an actual application scenario provided in an embodiment of the present application, in Figure 1 In the embodiment, the computer device may be a terminal device 101 with an interactive function, such as a computer.
[0099] like Figure 1 As shown, the target object can be a robot in the scene displayed in the first operation interface. The target object corresponds to multiple control instructions, including "move forward at 20% power for 2 seconds", "move forward at 30% power for 3 seconds", etc. Multiple control instructions will be executed in sequence, that is, the target object will execute the object actions corresponding to these control instructions in sequence. The first operation interface displays the first control and instruction identification information, which can identify the control instruction in the executed state. For example, Figure 1 In the example, the control instruction being executed is "move forward at 30% power for 3 seconds". At this time, the target object is also moving forward at 30% power in the first operation interface. At the same time, the control instruction identified by the instruction identification information is this control instruction, so that the interface operator can clearly know the control instruction currently being executed.
[0100] The object behavior executed based on the execution of the control instruction can change the object state of the target object, such as Figure 1In the example, the first operation interface displays status information, which can characterize the object state of the target object, for example, it may include speed, direction and other states. As the target object continuously executes the object behavior, the speed and direction of the target object may continue to change. If the interface operator wants to fully understand the object state of the current target object, a trigger operation can be performed on the first control, for example, the first control can be clicked. Based on the trigger operation, the terminal device 101 will keep the object state of the target object in the first operation interface unchanged, and keep the instruction identification information unchanged, that is, the execution of the object behavior is suspended.
[0101] At this time, through the first operation interface, the interface operator can clearly understand the current object state of the target object, and through the instruction identification information, the interface operator can clearly know the control instructions executed by the current target object, and then through the first control, the interface operator can observe the situation of the target object at each moment in a fine-grained manner, which helps the interface operator to promptly determine whether the execution of each control instruction is abnormal. For example, when the interface operator executes the control instruction "move forward at 30% power for 3 seconds" on the target object, it is found that the direction of the target object has shifted in an unexpected manner, then the interface operator can directly pause the execution of the object action of the target object by triggering the first control to observe the specific situation of the object state of the current target object, and can timely locate the corresponding control instruction for inspection and adjustment through the identification function of the instruction identification information. It can be seen that the interaction method provided by the present application can bring a more detailed object observation method to the interface operator, improve the degree of freedom of object control, and thus improve the interaction experience of the interface operator.
[0102] Next, the interaction method provided in the embodiment of the present application will be described in detail with reference to the accompanying drawings.
[0103] See also Figure 2 , Figure 2 A flowchart of an interactive method provided in an embodiment of the present application. In this embodiment, the computer device may be any of the above-mentioned computer devices capable of interface display and interaction. The method includes:
[0104] S201: Display the first operation interface.
[0105] Among them, the first operation interface is used to display the object behavior executed by the target object. In different application scenarios, the first operation interface can be different interfaces, such as an animation playback interface, a game operation interface, etc. The target object can be any object whose object behavior can be controlled by a control instruction, such as a three-dimensional object in a three-dimensional test scene, an animation object in an animation, a game object in a game, etc. The target object is used to execute the object behavior corresponding to the control instruction, and the object behavior is used to change the object state of the target object in the first operation interface, that is, the object behavior is displayed by changing the object state of the target object, and the object state can include any state, such as the state of multiple dimensions such as the object position, the speed of the object movement, the movement angle, and the object action. Therefore, through the first operation interface, the interface operator can first know the change of the object state of the target object.
[0106] The interface operators of the present application may include multiple types, such as relevant personnel performing the operation, or relevant equipment used for interface interaction testing, etc., which are not limited here.
[0107] S202: Displaying a first control and instruction identification information through a first operation interface.
[0108] In the present application, in order to make the interface operator better understand the execution status of the control instruction, the instruction identification information will be displayed in the first operation interface. The instruction identification information is used to identify the control instruction in the executed state. The control instruction in the executed state refers to the control instruction that is being used to control the object behavior of the target object. For example, when the instruction identification information is used to identify the target control instruction, the target object executes the object behavior corresponding to the target control instruction in the first operation interface. The target control instruction can be any control instruction. The instruction identification information can include multiple information types. For example, the content of the instruction identification information can be consistent with the content of the identified control instruction, or it can be the relevant content of the corresponding control instruction, etc. As long as it can have an identification function, it is not limited here.
[0109] Through the instruction identification information, the interface operator can quickly learn the control instruction currently being executed. Therefore, when the interface operator observes that special situations occur during the operation of the target object, he can quickly locate which control instruction caused the special situation, which helps to deepen the interface operator's understanding of the execution status of the control instructions.
[0110] S203: Based on the first trigger operation on the first control, the object state of the target object in the first running interface is kept unchanged, and the instruction identification information displayed in the first running interface is kept unchanged.
[0111] In the present application, in order to make the interface operator more free to control the target object, the computer device provides a function of pausing the execution of the object behavior. If the interface operator wants to pause the object action of the target object to observe the object state of the target object in more detail, the first trigger operation can be performed on the first control. Based on the first trigger operation, the computer device will keep the object state of the target object in the first operation interface unchanged, so as to achieve the visual effect of pausing the object behavior. At this time, on the one hand, through the object state that has been suspended, the interface operator can fully understand the current corresponding object state of the target object, so that the behavior execution of the target object can be accurately analyzed, so as to timely discover whether an abnormal situation occurs during the execution of the control instruction; on the other hand, through the instruction identification information that has also been suspended, when an abnormality is found in the execution process of the control instruction, the abnormal control instruction can be quickly located, so that the interface operator can debug the control instruction.
[0112] It should be emphasized that the trigger operations involved in this application may include multiple trigger operations, such as clicking, sliding, long pressing, etc., as long as they can fit the control type targeted by the trigger operation, and are not limited here.
[0113] It can be seen that through the interactive method of the present application, on the one hand, the interface operator can freely pause the object behavior of the target object according to its own needs, so that the object state of the target object during the execution process can be fully analyzed; on the other hand, through the instruction identification information, the interface operator can accurately locate the control instructions in the executed state, thereby providing a higher degree of operational freedom while also enhancing the intuitiveness of information expression, thereby improving the interface operator's control experience of the target object.
[0114] While providing the above-mentioned pause execution function, the present application also provides a corresponding interactive function for continuing execution. In one possible implementation, based on the first trigger operation, that is, when the interface operator pauses the execution of the object behavior, the computer device can display a second control through the first operation interface, and the second control is used to exit from the paused execution state, so that the target object continues to execute the object behavior based on the control instruction.
[0115] For example, if the interface operator has fully understood the object state and control instructions in the paused state, and wants to check the execution status of subsequent control instructions and object behaviors, a trigger operation can be performed on the second control. Based on the trigger operation on the second control, the computer device can control the target object to use the first object state as the starting object state in the first operation interface, and continue to execute the object behavior corresponding to the control instruction in the executed state from the first instruction execution progress, wherein the first object state is the object state maintained in the first operation interface based on the first trigger operation, that is, the object state corresponding to the target object when the execution is paused, and the first instruction execution progress is the instruction execution progress corresponding to the first object state. For example, when the execution is paused, the target object has executed the object behavior of "moving forward at 30% power for 3 seconds" for 2 seconds, then when the execution is continued, the target object will continue to execute the object behavior for 1 second, and then execute the object behavior corresponding to the next control instruction.
[0116] By adding the corresponding continue execution control function, the freedom of object control can be further improved. At the same time, since the present application continues to execute the object behavior based on the execution status of the object behavior in the paused state, it can ensure that the interface operator observes every detail of the object behavior execution process, thereby ensuring that the interface operator can fully understand the object behavior execution process.
[0117] like Figure 3 As shown, Figure 3 The target object in can sequentially execute the object behaviors corresponding to the four control instructions of "advance at 20% power for 2 seconds", "advance at 30% power for 3 seconds", "ask for red envelope" and "rotate left 90°". When the target object is executing the object behavior of "advance at 30% power for 3 seconds", a first control including the text "pause execution" is displayed in the first operation interface. After the interface operator performs a first trigger operation on the first control, the target object will pause the execution of the object behavior of "advance at 30% power for 3 seconds". At the same time, the first operation interface will display a second control including the text "continue execution". The interface operator can enable the target object to continue to execute the object behavior by triggering the second control. For example, Figure 3 In the example, after the trigger operation is performed on the second control, the first operation interface will re-display the first control, and after the target object completes the object behavior of "moving forward at 30% power for 3 seconds", it will execute the object behavior of "asking for red envelopes" corresponding to the next control instruction.
[0118] In addition to providing the free pause and resume functions, in order to further improve the interface operator's understanding of the target object's behavior, the present application can also provide a function that enables the target object to execute the object behavior one by one.
[0119] In this implementation, based on the target object completing the first object behavior, the computer device will keep the object state of the target object in the first operation interface unchanged, the first object behavior is the object behavior corresponding to the first control instruction, and the first control instruction can be any control instruction. That is, when the object behavior corresponding to a control instruction is completed, the target object will remain stationary in the first operation interface, so that the interface operator can know that a control instruction has been executed.
[0120] The computer device can display a third control through the first operation interface, and the third control is used to control the target object to execute object behaviors one by one. If the interface operator wants to achieve the effect of one-by-one execution, the third control can be triggered. Based on the trigger operation on the third control, the computer device can control the target object to execute the second object behavior in the first operation interface, and the second object behavior is the object behavior corresponding to the second control instruction, and the second control instruction is the next control instruction corresponding to the first control instruction in the instruction execution sequence. The target object is specifically used to execute the object behaviors corresponding to multiple control instructions according to the instruction execution sequence. That is, in this implementation, on the one hand, the target object will suspend execution when the object behavior corresponding to a control instruction is executed. After obtaining the trigger operation based on the third control, it will only execute the object behavior corresponding to the next control instruction in the instruction execution sequence, and then suspend the execution of the object behavior. Through the technical solution provided by this implementation, the interface operator can realize the control of the target object with the object behavior corresponding to a single control instruction as the execution unit, and execute the object behaviors corresponding to multiple control instructions respectively, so that the interface operator can have a clearer understanding of the execution status of the target object. For example, after all control instructions are executed, if the interface operator finds that the execution is abnormal, the execution status of each object behavior can be checked one by one in this way, without having to execute all control instructions each time for inspection, further improving the freedom of object control.
[0121] like Figure 4 As shown, Figure 4The target object in can execute the object behaviors corresponding to the four control instructions of "advance at 20% power for 2 seconds", "advance at 30% power for 3 seconds", "ask for red envelope" and "rotate left 90°" in sequence. After the control instruction of "advance at 30% power for 3 seconds" is executed, the target object will pause execution, and at the same time, a third control including the text content of "execute next" and a second control for continuing execution will be displayed in the first running interface. If the interface operator wants to control the target object to only execute the next object behavior and not execute multiple object behaviors continuously, a trigger operation can be performed on the third control. At this time, the target object will execute the object behavior corresponding to the control instruction of "ask for red envelope", and at the same time, the first control for suspending execution will be displayed on the first running interface. Then, after the control instruction is executed, the target object will pause execution again, and the first running interface will redisplay the second and third controls, waiting for the next trigger operation to control.
[0122] It is understandable that in some scenarios, the interface operator may also have the situation of executing multiple control instructions at one time. For example, after completing the debugging of the control instructions one by one, the interface operator may want to execute multiple control instructions continuously to observe whether the connection between the object behaviors corresponding to the multiple control instructions is smooth and normal. Based on this, in a possible implementation method, after the first object behavior is executed based on the target object and the object state of the target object in the first operation interface is kept unchanged, the computer device can display a fourth control through the first operation interface, and the fourth control is used to provide the function of continuously executing multiple control instructions. If the interface operator wants to execute multiple control instructions continuously, a trigger operation can be performed on the fourth control.
[0123] Based on the trigger operation for the fourth control, the computer device can control the target object in the first operation interface to execute the object behaviors corresponding to all control instructions located after the first control instruction among multiple control instructions according to the instruction execution order, so that the interface operator can see that the target object continuously executes the object behaviors corresponding to multiple control instructions respectively, and then check whether there are any problems with the connection between multiple object behaviors and whether the target object can continuously execute multiple control instructions.
[0124] like Figure 5 As shown, Figure 5The target object in can sequentially execute the object behaviors corresponding to the four control instructions of "advance at 20% power for 2 seconds", "advance at 30% power for 3 seconds", "ask for red envelopes" and "rotate 90° to the left". After the object behavior of "advance at 30% power for 3 seconds" is executed, the fourth control and the third control are displayed on the first operation interface. The fourth control and the second control can be the same control. If the interface operator wants the target object to complete the remaining two unexecuted object behaviors at one time, the fourth control can be triggered. At this time, the target object will start to execute the object behavior of "ask for red envelopes", and the first operation interface will display the first control for pausing execution. After the object behavior is executed, the next object behavior of "rotate 90° to the left" will be executed directly. If the interface operator does not receive a trigger operation on the first control in the middle, the execution of the object behavior will not be suspended.
[0125] In order to make the interface operator more aware of the execution of the control instructions, in a possible implementation, the computer device can also display an instruction display interface, which is used to display multiple control instructions corresponding to the target object, and the target object is specifically used to sequentially execute the object behaviors corresponding to the multiple control instructions, for example, multiple control instructions can be executed based on the above instruction execution order. In order to make the interface operator know which control instruction is currently being executed, the computer device can distinguish it through different instruction display methods, wherein the control instruction in the executed state corresponds to the first instruction display method, and the control instruction not in the executed state corresponds to the second instruction display method, and the first instruction display method and the second instruction display method are different instruction display methods. Therefore, through the instruction display interface, on the one hand, the interface operator can know which control instructions are used to execute the object behaviors corresponding to the target object, and on the other hand, through the difference in the instruction display method, it can be known which control execution is currently being executed, so that rapid positioning can be achieved when the object behavior is abnormal.
[0126] The command display interface can be as follows Figure 6 As shown, there are four control instructions displayed on the instruction display interface, among which the control instruction "rotate left 90°" is in the execution state, so it is displayed in the first instruction display mode, and the other control instructions are displayed in the second instruction display mode, and the display colors of these two instruction display modes are different.
[0127] Among them, since the display of the interface needs to occupy a certain display area of the computer device, under the premise that the display area is limited, if the instruction display interface occupies the display area excessively, it may cause the first operation interface to not be fully displayed. Based on this, in a possible implementation, when executing step S201, the computer device can execute steps S2011-S2012 (not shown in the figure), and steps S2011-S2012 are a possible implementation of step S201, including:
[0128] S2011: Based on the trigger operation on the fifth control, the instruction display interface is hidden, and the first operation interface is displayed.
[0129] In this implementation, the instruction display interface includes a fifth control, which is used to trigger the target object to execute the object behavior. That is, after determining the control instruction for execution, the interface operator can make the target object execute the object behavior corresponding to these control instructions by triggering the fifth control. At this time, the computer device will hide the instruction display interface and display the first operation interface.
[0130] S2012: Controlling the target object to execute the object behavior corresponding to the control instruction in the executed state in the first operation interface.
[0131] In this way, the computer device can have sufficient display area to display the first operation interface, so that the interface operator can fully understand the object behavior execution status of the target object. In addition, if the interface operator wants to understand the control instructions corresponding to the target object again, the first trigger operation can be performed on the first control displayed on the first operation interface. Based on the first trigger operation on the first control, the computer device can display the instruction display interface, so that the interface operator can understand the multiple control instructions involved in the target object when the target object is suspended, and then can debug the control instructions more conveniently, such as Figure 7 shown.
[0132] Through the command display interface, in addition to providing the display and status identification functions of control commands, the computer device can also provide a convenient command selection and execution function, that is, the interface operator can trigger the execution of a specific control command by triggering an operation on the specific control command.
[0133] In a possible implementation, the multiple control instructions have a corresponding instruction execution order, and the target object is specifically used to sequentially execute the object behaviors corresponding to the multiple control instructions according to the instruction execution order, and the third control instruction can be any one of the multiple control instructions that is not in an executed state. If the interface operator wants to directly view the execution status of the object behavior corresponding to the third control instruction executed by the target object, the second trigger operation can be performed on the third control instruction.
[0134] Based on the second trigger operation for the third control instruction, the computer device can change the display mode corresponding to the third control instruction from the second display mode to the first display mode, so as to identify that the third control instruction is in an executed state, and change the display mode corresponding to the fourth control instruction from the first display mode to the second display mode, so as to identify that the fourth control instruction is not in an executed state at this time. The fourth control instruction is a control instruction in an executed state among multiple control instructions at the operation moment corresponding to the second trigger operation, that is, the control instruction being executed when the second trigger operation is executed.
[0135] At the same time, the computer device can control the target object in the first operation interface, with the second object state as the starting object state, to execute the object behavior corresponding to the third control instruction, the second object state is the object state corresponding to the target object after the third object behavior is completed according to the instruction execution sequence, and the third object behavior is the object behavior corresponding to the previous control instruction corresponding to the third control instruction in the execution sequence. That is, the computer device will record the object state corresponding to the target object when the object behavior corresponding to each control instruction is completed according to the instruction execution sequence. When the interface operator wants to reproduce the object behavior corresponding to the specified control instruction, the computer device will simulate the effect of the target object executing the specified control instruction according to the instruction execution sequence. The advantage of this display method is that it can accurately simulate the execution of the target object when executing multiple object behaviors continuously, so that the reproduced specific object behavior can fit the behavior of the target object in the actual operation process, so that after the interface operator determines that there is no abnormality in the execution of the specific object behavior, the object behavior will not be abnormal when it is continuously executed in multiple object behaviors, which ensures the effectiveness of the interface operator's control over the target object.
[0136] like Figure 8 As shown, when the target object executes the object behavior of "rotating 90° to the left", the interface operator can trigger the control instruction of "performing the "asking for red envelope" action". Before this object behavior, the computer device has only performed forward-type object behaviors, so the direction should be straight ahead. As can be seen from the figure, after the trigger operation, the control instruction of "performing the "asking for red envelope" action" will switch to the first instruction display mode, and at the same time, the target object will execute the object behavior in the direction straight ahead.
[0137] In addition, when the display of the operation interface is triggered by the instruction display interface, the computer device can also provide a trigger display of multiple operation interfaces, and the target object executes the object behavior in different operation interfaces in different ways, thereby meeting different object behavior execution requirements. For example, in a possible implementation, multiple control instructions have corresponding instruction execution sequences, and the instruction display interface also includes a sixth control, which is used to trigger the continuous execution of multiple control instructions.
[0138] Based on the trigger operation on the sixth control, the computer device can display the second operation interface, which is used to display the target object executing the object behaviors corresponding to the multiple control instructions in sequence according to the instruction execution order. That is, if the interface operator wants to perform fine-grained debugging on the control instruction, the first operation interface can be displayed by triggering the fifth control, at which time the object behavior execution process of the target object can be paused, continued, or multiple object behaviors can be executed one by one; if you want to see a coherent object behavior display, you can trigger the sixth control, at which time the target object will continuously execute multiple object behaviors.
[0139] like Fig. 9 As shown, in an actual application scenario, the fifth control and the sixth control may be controls in different modes, and the fifth control is an operation control in debug mode. A trigger operation on the fifth control will trigger the display of a first operation interface. The interface operator can switch the instruction display interface from debug mode to operation mode by a trigger operation on the switch control. At this time, a sixth control is displayed in the position of the fifth control, and a second operation interface can be displayed by a trigger operation on the sixth control. Thus, the interface operator can freely and flexibly select the object behavior execution mode of the target object, thereby further improving the diversity and freedom of interaction.
[0140] In a possible implementation, in order to enable the interface operator to better understand the object state of the target object and thus determine whether the object behavior execution is abnormal, the computer device can display object state information through the first operation interface, and the object state information is used to characterize the object state corresponding to the target object. The object state information may include a variety of information, such as object position information, object speed information, object direction information, etc. For example, Fig.10 As shown, object speed information and object direction information are displayed in the first operation interface, and object position information can be displayed through a map interface in the first operation interface to identify the position of the target object in the scene displayed in the first operation interface.
[0141] The above interaction process mainly introduces a variety of object control methods. In addition, in order to further improve the convenience of interaction, in a possible implementation method, the computer device can also provide an automatic detection function for whether the object behavior execution is abnormal.
[0142] In this implementation, the target control instruction has a corresponding target object state, and the target object state is an object state determined based on the control instruction corresponding to the object behavior executed by the target object when the object behavior corresponding to the target control instruction is executed. That is, the computer device can first analyze the correct object state that the target object should correspond to when the object behavior corresponding to the target control instruction is executed based on the object behavior execution method represented by the control instruction. Among them, if the target control instruction is the first control instruction executed, then when the object behavior corresponding to the target control instruction is executed, the control instruction corresponding to the object behavior executed by the target object only includes the target control instruction; if the target control instruction is the Nth control instruction executed, then when the object behavior corresponding to the target control instruction is executed, the control instruction corresponding to the object behavior executed by the target object is the first N control instructions, and N is a positive integer greater than 1.
[0143] The computer device can determine whether the object state of the target object when the target object completes the object behavior corresponding to the target control instruction matches the target object state. When the target object completes the object behavior corresponding to the target control instruction, the target object is in the target object state, which means that the target object has most likely correctly executed the object behaviors corresponding to the target control instruction and all control instructions before the target control instruction. Therefore, the computer device can display a first prompt information, which is used to indicate that there is no abnormality in the object behavior executed by the target object.
[0144] When the target object has completed the object behavior corresponding to the target control instruction, and the target object is not in the target object state, it means that an abnormality has occurred in the process of the target object executing the target control instruction and the object behaviors corresponding to all control instructions before the target control instruction, so the computer device can display the second prompt information, and the first prompt information is used to characterize that the object behavior executed by the target object is abnormal. In this way, when the computer device displays the second prompt information for the first time, it is highly likely that the control instruction that has just been executed has an abnormality, so the interface operator can quickly locate the abnormal control instruction through this prompt information, so that the interface operator can adjust the control instruction.
[0145] The above content mainly introduces the interaction method provided by this application from the performance side. Next, the implementation of the interaction method of this application on the background side will be introduced.
[0146] See also Fig.11 , Fig.11 A flowchart of an interactive method provided in an embodiment of the present application. In this embodiment, the computer device may be any computer device having an interface display and interactive functions. The method includes:
[0147] S1101: Obtain object control information.
[0148] The object control information is used to control the target object in the first operation interface, and may be, for example, a code for controlling the target object. The object control information includes first control information and control information corresponding to a target control instruction, wherein the first control information is used to provide a function of pausing / resuming the execution of the object behavior, and the control information corresponding to the target control instruction is used to control the target object to execute the target object behavior corresponding to the target control instruction.
[0149] The control information corresponding to the target control instruction may include display control information corresponding to the target control instruction and instruction execution information corresponding to the target control instruction. The target object is used to execute the target object behavior corresponding to the target control instruction. The instruction execution information is used to characterize the execution mode of the target object behavior. The object behavior is used to change the object state of the target object in the first operation interface. Thus, through the instruction execution information, the computer device can know how to change the object state of the target object when executing the target control instruction, so that the target object executes the target object behavior in the first operation interface.
[0150] S1102: Execute the control information corresponding to the target control instruction.
[0151] The computer device can control the target object to execute the target object behavior in the first operation interface by executing the control information corresponding to the target control instruction. Specifically, in order to realize the function of controlling the pause / resume execution of the target object, the computer device needs to refer to the information content of the first control information when executing the control information corresponding to the target control instruction.
[0152] Specifically, when executing the control information corresponding to the target control instruction, the computer device can first display the instruction identification information used to identify the target control instruction in the first operating interface based on the display control information. The instruction identification information is used to identify the control instruction in the executed state, so that the interface operator knows which control instruction is currently being executed.
[0153] The computer device can determine the information content of the first control information. Based on the first information content corresponding to the first control information, it indicates that the current interface operator has not suspended the execution of the object behavior. The computer device can update the object status information corresponding to the target object according to the instruction execution information. The object status information is used to control the object state of the target object in the first operating interface, thereby enabling the target object to execute the target object behavior in the first operating interface.
[0154] Based on the fact that the first control information corresponds to the second information content, it means that the interface operator has suspended the execution of the object behavior. At this time, the computer device can stop updating the object state information to achieve the suspension of the execution of the target object's object behavior. The first trigger operation is used to change the information content corresponding to the first control information to the second information content. The first trigger operation is a trigger operation for the first control displayed on the first operation interface, that is, the interface operator can suspend the execution of the object behavior through the first trigger operation.
[0155] Specifically, in a possible implementation manner, the computer device may update the object state information in the following manner.
[0156] The computer device can determine the information update methods corresponding to the multiple instruction execution progresses of the target object behavior according to the instruction execution information, wherein the multiple instruction execution progresses are the instruction execution progresses during the process of the target object executing the target object behavior, and the instruction execution progress can be identified in multiple ways, for example, by percentage, such as 5%, 10%, 15% and other instruction execution progresses have been executed; or by time, such as 1 second, 2 seconds and other instruction execution progresses have been executed. Since the instruction execution information can characterize the execution method of the target object behavior, the computer device can determine the execution method corresponding to each instruction execution progress in the process of executing the target object behavior according to the instruction execution information, thereby obtaining the information update methods corresponding to each instruction execution progress. For example, the computer device can use the fixed update algorithm (FixedUpdate) to perform a physical simulation every 0.02 seconds during the execution process to determine the change method of the object state information of the target object after every 0.02 seconds.
[0157] When executing step S1102, the computer device may execute step S11021 (not shown in the figure), where step S11021 is a possible implementation of step S1102, including:
[0158] S11021: Based on the target object reaching the target instruction execution progress and the first control information corresponding to the first information content, the object status information corresponding to the target object is updated according to the target information update method corresponding to the target instruction execution progress.
[0159] Among them, the target instruction execution progress can be any instruction execution progress. Through the information update method corresponding to each instruction execution progress, the computer device can ensure that the target object correctly executes the behavior part of the target object behavior at each instruction execution progress, thereby ensuring that the target object successfully executes the target object behavior. For example, when the target object executes to the 1st second, the computer device can update the object state information of the target object according to the information update method corresponding to the 1st second, so that the target object executes the correct behavior at the 1st second. In addition, because the information content of the first control information is judged when the object state information corresponding to each instruction execution progress is updated, the interface operator can change the information content of the first control information to the second information content to achieve the suspension of the execution of the object behavior at any instruction execution progress, thereby improving the timeliness and freedom of object control.
[0160] Next, we will introduce how to implement the function of controlling the target object to continue to execute through the underlying logic. In one possible implementation, based on a trigger operation on the second control displayed in the first operation interface, the computer device can change the information content corresponding to the first control information to the first information content, and the second control is a control displayed based on the first trigger operation. Since when the information content corresponding to the first control information is the first information content, the computer device will keep updating the object state information of the target object based on the instruction execution information, it is possible to control the target object to continue to execute the object behavior, that is, the interface operator can control the target object to continue to execute the object behavior by triggering the second control.
[0161] With respect to the above-mentioned function of controlling the target object to execute the object behavior one by one, the computer device can be implemented through the following underlying logic. In one possible implementation, the object control information may include control information corresponding to multiple control instructions respectively, the target control instruction is any one of the multiple control instructions, the multiple control instructions have a corresponding instruction execution order, and the object control information also includes second control information, and the second control information is used to control the target object to execute the object behavior corresponding to the control instruction one by one. The control information corresponding to the target control instruction also includes content change information and content judgment information, the content change information is used to change the information content corresponding to the first control information to the second information content when the instruction execution information is executed, and the content judgment information is used to change the information content corresponding to the first control information to the first information content based on the third information content corresponding to the second control information after the content change information is executed.
[0162] Combination Fig.12The above information change process is introduced in detail. During the execution of the control information corresponding to the target control instruction, the display control information will be executed first to display the instruction identification information, and then the instruction execution information will be executed to control the target object to execute the target object behavior. During the execution process, if the first control information is the first information content, the object state information will be continuously updated based on the instruction execution information to realize the execution of the object behavior; if the first control information is the second information content, that is, the interface operator performs the first trigger operation, the update of the object state information will be terminated.
[0163] In this implementation, the computer device will execute the control information corresponding to the fifth control instruction only after the control information corresponding to the target control instruction has been executed and the first control information corresponds to the first information content. The fifth control instruction is the next control instruction of the target control instruction in the instruction execution sequence. The trigger operation on the third control is used to change the information content corresponding to the second control information to the fourth information content, and to change the information content corresponding to the first control information to the first information content. The third control is a control displayed in the first operation interface after the control information corresponding to the target control instruction has been executed.
[0164] like Fig.12 As shown, after the execution of the instruction execution information is completed, the first control information will be changed to the second information content through the execution content change information. At this time, the requirements for the control information corresponding to the execution of the next control instruction are not met, so the execution of the object behavior is suspended, that is, the execution will be suspended after the execution of an object behavior is completed. Then, through the execution content judgment information, it can be determined whether the information content of the first control information is updated. If the second control information is the third information content, it means that the current mode is to continuously execute the object behavior. The computer device will change the first control information to the first information content. At this time, the computer device can execute the control information corresponding to the next control instruction, that is, control the target object to perform the next object action. If the second control information corresponds to the fourth information content, it means that the current mode is to execute the object behavior one by one. The computer device cannot change the first control information to the first information content, so it cannot continue to execute the control information corresponding to the next control instruction, thereby achieving a pause after the execution of an object behavior.
[0165] It can be seen that when the target object behavior is executed, the target object will automatically suspend execution (when the second control instruction is the fourth information content). The interface operator can maintain the second control information at the fourth information content through the trigger operation of the third control, and on the other hand, temporarily change the first control information to the first information content, so that the control information corresponding to the fifth control instruction can be executed, that is, the computer device will control the target object to execute the object behavior corresponding to the fifth control instruction. When the content judgment information corresponding to the fifth control instruction is executed, since the first control information is changed to the second information content by the content change information corresponding to the fifth control instruction, and the second control information still corresponds to the fourth information content at this time, it is impossible to change the first control information to the first information content, so that the computer device will not continue to execute the control information corresponding to the next control instruction, thereby realizing the one-by-one execution of the fifth control instruction. If the interface editor wants to continue to execute the next control instruction one by one, the third control can be triggered to repeat the above process.
[0166] It should be noted that the process of updating the first control information based on the second control information in the present application only exists after the instruction execution information corresponding to each control instruction is executed. Therefore, during the execution of the instruction execution information, that is, the process of the object executing the object behavior, the execution of the object behavior can still be paused and continued through the change of the information content of the first control information.
[0167] Similarly, in order to realize the function of continuously executing multiple control instructions, in a possible implementation, the trigger operation for the fourth control can be used to change the information content corresponding to the second control information to the third information content, and the fourth control is the control displayed in the first operation interface after the control information corresponding to the target control instruction is executed. Fig.12 It can be seen that when the second control information is changed to the third information content, since at the end of the execution of each control information, the first control information will be changed to the first information content according to the content change information, the control information of the next control instruction can be executed after the control information corresponding to each control instruction is executed, so that multiple control instructions can be realized through the trigger operation of the fourth control, or the continuous execution of the object behavior.
[0168] In addition, in order to realize the prominent display of the executed control instruction in the instruction display interface, in a possible implementation method, the control information corresponding to the target control instruction also includes state change information, the state change information includes the instruction identifier corresponding to the target control instruction, the instruction identifier is used to identify the target control instruction in the instruction display interface, and the state change information is used to change the display mode of the target control instruction in the instruction display interface from the second instruction display mode to the first instruction display mode. That is, through the instruction identifier, the computer device can locate the target control instruction among the multiple control instructions displayed in the instruction display interface, and the display mode of the target control instruction can be changed to the first instruction display mode through the state change information. In the instruction display interface, the control instruction in the executed state corresponds to the first instruction display mode, and the control instruction not in the executed state corresponds to the second instruction display mode, so that the interface operator can clearly know which control instruction is currently being executed.
[0169] In order to facilitate the understanding of the interaction method provided by the present application, the interaction method provided by the present application will be introduced in detail below in combination with an actual application scenario, comprehensively integrating the front-end performance and the back-end logic.
[0170] See also Fig.13 , Fig.13 A flowchart of an interaction method in an actual application scenario provided by an embodiment of the present application. In the actual application scenario, the computer device is a terminal device for interface display, interface interaction and background logic processing, such as a computer, etc. The target object is a controllable object in a three-dimensional scene, such as Figure 1 The first operation interface is an operation interface in a control instruction learning program. The interface operator can understand and learn the operation principle of the control instruction by continuously editing and debugging the control instruction and observing the execution of the target object in the scene. The method includes:
[0171] S1301: The interface editor inputs multiple control instructions through the instruction display interface.
[0172] Among them, multiple control instructions are used to control the target object. The computer device can determine the instruction execution information (for example, code information, etc.) corresponding to each control instruction according to the mapping relationship between the control instruction and the instruction execution information, and then generate the display control information and state change information corresponding to each control instruction according to the instruction content and instruction identification corresponding to each control instruction, which are used to display the corresponding instruction identification information and change the control instruction to the first display mode in the instruction display interface. Based on the display control information, state change information, instruction execution information corresponding to each control instruction, as well as the general content change information and content judgment information, the control information corresponding to each control instruction is generated, and these control information are arranged in the order of control instruction execution, and the first control information and the second control information are added to obtain the complete object control information.
[0173] S1302: Based on the triggering operation on the fifth control, display the first running interface.
[0174] The computer device may begin to execute the control information corresponding to the first control instruction.
[0175] S1303: Based on the trigger operation on the first control, the object state and instruction identification information of the target object are kept unchanged.
[0176] When the interface operator finds that the object state is abnormal, the interface operator can suspend the execution of the target object by triggering the first control. Based on the triggering operation, the computer device can change the information content corresponding to the first control information to the second information content, so as not to update the object state information.
[0177] S1304: Based on the triggering operation on the second control, the target object continues to execute the object behavior.
[0178] After the interface operator has checked the control instruction, a trigger operation can be performed on the second control to enable the target object to continue to perform the object behavior. Based on the trigger operation, the computer device can change the information content corresponding to the first control information to the first information content, so that the object state information can be continued to be updated based on the instruction execution information.
[0179] S1305: Based on the triggering operation on the third control, the target object remains unchanged after executing an object behavior.
[0180] After the previous object behavior is executed, the third control will be displayed through the first operation interface. If the interface operator wants to control the target object to execute the object behavior with a control instruction as a unit, the third control can be triggered. At this time, the computer device will change the second control information to the fourth information content, and the first control information to the first information content, so that on the one hand, the next control information can be executed, and on the other hand, after the next control information is executed, the first control information will not be automatically changed to the first information content, so that after the next control information is executed, the control information will not continue to be executed, and the execution of a single control information is realized.
[0181] S1306: Based on the trigger operation on the fourth control, the target object is caused to continuously execute a plurality of object behaviors.
[0182] After the previous object behavior is executed, the computer device will also display the fourth control through the first operation interface. If the interface operator wants to control the target object to continuously execute multiple object behaviors, the fourth control can be triggered. Based on the trigger operation, the computer device will change the information content corresponding to the second control information to the third information content, so that the first control information can be automatically changed to the first information content through the content judgment information, thereby automatically executing the subsequent control information.
[0183] S1307: Display multiple control instructions through the instruction display interface, and highlight the control instructions in the executed state.
[0184] The computer device can change the display method of the control instructions in the executed state through the state change information in the control information, so that the control instructions in the executed state can be highlighted in the instruction display interface.
[0185] It can be seen from the above practical application that the interaction method provided by this application can bring the following technical effects:
[0186] (1) The degree of interactive freedom of the interface operator is improved. The interface operator can arbitrarily pause the behavior execution of the target object when necessary and observe the object status more carefully. At the same time, different needs can be met through different execution modes such as executing the object behavior one by one or executing the object behavior continuously.
[0187] (2) Through the instruction identification information and the instruction display interface that distinguishes the control instructions, the interface operator can have a clear understanding of the execution status of the control instructions, so that when an exception occurs, the control instruction that causes the exception can be quickly located, thereby improving the efficiency of exception resolution.
[0188] (3) By combining the effects of the above two aspects, the interactive method provided by the present application can help the interface operator quickly understand the execution mode and principle of the control command, and also provide the interface operator with a better control command editing and debugging experience.
[0189] Based on the interaction method for the front end provided in the above embodiment, the present application also provides an interaction device, see Fig.14 , Fig.14 This is a structural block diagram of an interactive device provided in an embodiment of the present application, the device includes a first display unit 1401, a second display unit 1402 and a first control unit 1403:
[0190] The first display unit 1401 is used to display a first operation interface, where the first operation interface is used to display an object behavior executed by a target object, where the target object is used to execute an object behavior corresponding to a control instruction, where the object behavior is used to change an object state of the target object in the first operation interface;
[0191] The second display unit 1402 is used to display the first control and instruction identification information through the first operation interface, the instruction identification information is used to identify the control instruction in the executed state, when the instruction identification information is used to identify the target control instruction, the target object executes the object behavior corresponding to the target control instruction in the first operation interface;
[0192] The first control unit 1403 is used to keep the object state of the target object in the first running interface unchanged and keep the instruction identification information displayed in the first running interface unchanged based on the first trigger operation on the first control.
[0193] In a possible implementation, the device further includes a third display unit and a second control unit:
[0194] The third display unit is used to display the second control through the first operation interface based on the first trigger operation;
[0195] The second control unit is used to control the target object in the first running interface to use the first object state as the starting object state based on the trigger operation on the second control, and continue to execute the object behavior corresponding to the control instruction in the executed state from the first instruction execution progress, wherein the first object state is the object state maintained in the first running interface based on the first trigger operation, and the first instruction execution progress is the instruction execution progress corresponding to the first object state.
[0196] In a possible implementation, the device further includes a third control unit, a fourth display unit, and a fourth control unit:
[0197] The third control unit is used to keep the object state of the target object in the first operation interface unchanged based on the target object completing the first object behavior, where the first object behavior is the object behavior corresponding to the first control instruction;
[0198] The fourth display unit is used to display a third control through the first operation interface;
[0199] The fourth control unit is used to control the target object to execute a second object behavior in the first operation interface based on a trigger operation on the third control, the second object behavior is an object behavior corresponding to a second control instruction, the second control instruction is the next control instruction corresponding to the first control instruction in the instruction execution sequence, and the target object is used to execute object behaviors corresponding to multiple control instructions respectively according to the instruction execution sequence.
[0200] In a possible implementation, the device further includes a fifth display unit and a fifth control unit:
[0201] The fifth display unit is used to display a fourth control through the first operation interface;
[0202] The fifth control unit is used to control the target object in the first operation interface based on the trigger operation of the fourth control, and execute the object behavior corresponding to all control instructions located after the first control instruction among the multiple control instructions according to the instruction execution order.
[0203] In a possible implementation, the device further includes a sixth display unit:
[0204] The sixth display unit is used to display an instruction display interface, and the instruction display interface is used to display multiple control instructions corresponding to the target object. The target object is specifically used to sequentially execute object behaviors corresponding to the multiple control instructions. The control instructions in the executed state correspond to the first instruction display mode, and the control instructions not in the executed state correspond to the second instruction display mode. The first instruction display mode and the second instruction display mode are different instruction display modes.
[0205] In a possible implementation, the instruction display interface further includes a fifth control, and the first display unit 1401 is specifically used to:
[0206] Based on the trigger operation on the fifth control, hiding the instruction display interface and displaying the first operation interface;
[0207] Controlling the target object to execute an object behavior corresponding to a control instruction in an executed state in the first operation interface;
[0208] The device also includes a seventh display unit:
[0209] The seventh display unit is used to display the instruction display interface based on the first trigger operation.
[0210] In a possible implementation, the multiple control instructions have a corresponding instruction execution order, the target object is specifically used to sequentially execute the object behaviors corresponding to the multiple control instructions according to the instruction execution order, the third control instruction is any one of the multiple control instructions that is not in an executed state, and the device further includes a sixth control unit and a seventh control unit:
[0211] the sixth control unit is configured to change, based on a second trigger operation on the third control instruction, a display mode corresponding to the third control instruction from the second display mode to the first display mode, and change a display mode corresponding to a fourth control instruction from the first display mode to the second display mode, wherein the fourth control instruction is a control instruction in an executed state among the plurality of control instructions at an operation moment corresponding to the second trigger operation;
[0212] The seventh control unit is used to control the target object in the first operation interface to execute the object behavior corresponding to the third control instruction with the second object state as the starting object state, the second object state being the object state corresponding to the target object after the target object completes the third object behavior according to the instruction execution sequence, and the third object behavior being the object behavior corresponding to the previous control instruction corresponding to the third control instruction in the execution sequence.
[0213] In a possible implementation, the multiple control instructions have a corresponding instruction execution order, the instruction display interface further includes a sixth control, and the device further includes an eighth display unit:
[0214] The eighth display unit is used to display a second operation interface based on a trigger operation on a sixth control, and the second operation interface is used to display that the target object executes the object behaviors corresponding to the multiple control instructions in sequence according to the instruction execution order.
[0215] In a possible implementation, the device further includes a ninth display unit:
[0216] The ninth display unit is used to display object status information through the first operation interface, where the object status information is used to represent the object status corresponding to the target object.
[0217] In a possible implementation, the target control instruction has a corresponding target object state, and the target object state is an object state determined based on a control instruction corresponding to an object behavior executed by the target object when the object behavior corresponding to the target control instruction is executed. The device further includes a tenth display unit and an eleventh display unit:
[0218] The tenth display unit is configured to display first prompt information based on the fact that the target object is in the target object state when the target object completes executing the object behavior corresponding to the target control instruction, wherein the first prompt information is used to indicate that there is no abnormality in the object behavior executed by the target object;
[0219] The eleventh display unit is used to display second prompt information based on the fact that when the target object completes the object behavior corresponding to the target control instruction, the target object is not in the target object state, and the first prompt information is used to indicate that an abnormality has occurred in the object behavior executed by the target object.
[0220] Based on the interactive method for background logic provided in the above embodiment, the present application also provides an interactive device, see Fig.15 , Fig.15 This is a structural block diagram of an interactive device provided in an embodiment of the present application, wherein the device includes an acquisition unit 1501 and a first execution unit 1502:
[0221] The acquisition unit 1501 is used to acquire object control information, the object control information is used to control the target object in the first operation interface, the object control information includes the first control information and the control information corresponding to the target control instruction, the control information corresponding to the target control instruction includes the display control information corresponding to the target control instruction, and the instruction execution information corresponding to the target control instruction, the target object is used to execute the target object behavior corresponding to the target control instruction, the instruction execution information is used to characterize the execution mode of the target object behavior, and the object behavior is used to change the object state of the target object in the first operation interface;
[0222] The first execution unit 1502 is used to execute the control information corresponding to the target control instruction;
[0223] The control information corresponding to executing the target control instruction includes:
[0224] According to the display control information, display instruction identification information for identifying the target control instruction in the first operation interface, where the instruction identification information is used to identify the control instruction in an executed state;
[0225] Based on the first information content corresponding to the first control information, updating the object state information corresponding to the target object according to the instruction execution information, wherein the object state information is used to control the object state of the target object in the first operation interface;
[0226] Based on the second information content corresponding to the first control information, the updating of the object status information is stopped, and the first trigger operation is used to change the information content corresponding to the first control information to the second information content. The first trigger operation is a trigger operation for the first control displayed on the first running interface.
[0227] In a possible implementation manner, the device further includes a determining unit:
[0228] The determining unit is used to determine, according to the instruction execution information, information update modes corresponding to a plurality of instruction execution progresses of the target object behavior, wherein the plurality of instruction execution progresses are instruction execution progresses during the process of the target object executing the target object behavior;
[0229] The first execution unit 1502 is specifically used for:
[0230] Based on the target object reaching the target instruction execution progress and the first control information corresponding to the first information content, the object state information corresponding to the target object is updated according to the target information update method corresponding to the target instruction execution progress.
[0231] In a possible implementation manner, the device further includes a second execution unit:
[0232] The second execution unit is used to change the information content corresponding to the first control information to the first information content based on a trigger operation on a second control displayed in the first operation interface, and the second control is a control displayed based on the first trigger operation.
[0233] In a possible implementation, the object control information includes control information corresponding to a plurality of control instructions respectively, the target control instruction is any one of the plurality of control instructions, the plurality of control instructions have a corresponding instruction execution order, the object control information also includes second control information, the control information corresponding to the target control instruction also includes content change information and content judgment information, the content change information is used to change the information content corresponding to the first control information to the second information content when the instruction execution information is executed, and the content judgment information is used to change the information content corresponding to the first control information to the first information content based on the third information content corresponding to the second control information after the content change information is executed;
[0234] The device also includes a third execution unit:
[0235] The third execution unit is used to execute the control information corresponding to the fifth control instruction based on the control information corresponding to the target control instruction being completed and the first control information corresponding to the first information content. The fifth control instruction is the next control instruction of the target control instruction in the instruction execution sequence. The trigger operation on the third control is used to change the information content corresponding to the second control information to the fourth information content, and to change the information content corresponding to the first control information to the first information content. The third control is a control displayed in the first operation interface after the control information corresponding to the target control instruction is executed.
[0236] In one possible implementation, the trigger operation for the fourth control is used to change the information content corresponding to the second control information to the third information content, and the fourth control is a control displayed in the first operation interface after the control information corresponding to the target control instruction is executed.
[0237] In a possible implementation, the control information corresponding to the target control instruction also includes state change information, and the state change information includes an instruction identifier corresponding to the target control instruction, and the instruction identifier is used to identify the target control instruction in an instruction display interface. The state change information is used to change the display mode of the target control instruction in the instruction display interface from a second instruction display mode to a first instruction display mode. In the instruction display interface, control instructions in an executed state correspond to the first instruction display mode, and control instructions that are not in an executed state correspond to the second instruction display mode.
[0238] The present application also provides a computer device, see Fig.16 As shown, the computer device may be a terminal device, and a mobile phone is taken as an example:
[0239] Fig.16 FIG. 1 is a block diagram showing a partial structure of a mobile phone related to a terminal device provided in an embodiment of the present application. Fig.16 The mobile phone includes: a radio frequency (RF) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (WiFi) module 770, a processor 780, and a power supply 790. Those skilled in the art will understand that Fig.16 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0240] Combine the following Fig.16 A detailed introduction to the various components of the mobile phone:
[0241] The RF circuit 710 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 780 for processing; in addition, the designed uplink data is sent to the base station. Usually, the RF circuit 710 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, referred to as LNA), a duplexer, etc. In addition, the RF circuit 710 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0242] The memory 720 can be used to store software programs and modules. The processor 780 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 720. The memory 720 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 720 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0243] The input unit 730 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 731 or near the touch panel 731 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 731 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 731, the input unit 730 may further include other input devices 732. Specifically, the other input devices 732 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0244] The display unit 740 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 740 may include a display panel 741. Optionally, the display panel 741 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), etc. Further, the touch panel 731 may cover the display panel 741. When the touch panel 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of touch event. Subsequently, the processor 780 provides a corresponding visual output on the display panel 741 according to the type of touch event. Although in Fig.16 In the embodiment, the touch panel 731 and the display panel 741 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 731 and the display panel 741 can be integrated to realize the input and output functions of the mobile phone.
[0245] The mobile phone may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 741 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0246] The audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the mobile phone. The audio circuit 760 can transmit the received audio data to the speaker 761 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is received by the audio circuit 760 and converted into audio data, and then the audio data is output to the processor 780 for processing, and then sent to another mobile phone through the RF circuit 710, or the audio data is output to the memory 720 for further processing.
[0247] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 770. It provides users with wireless broadband Internet access. Fig.16 A WiFi module 770 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.
[0248] The processor 780 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 720, and calling data stored in the memory 720, it executes various functions of the mobile phone and processes data, thereby performing overall detection of the mobile phone. Optionally, the processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 780.
[0249] The mobile phone also includes a power supply 790 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 780 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0250] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0251] In this embodiment, the processor 780 included in the terminal device also has the following functions:
[0252] Displaying a first operation interface, where the first operation interface is used to display an object behavior executed by a target object, where the target object is used to execute an object behavior corresponding to a control instruction, where the object behavior is used to change an object state of the target object in the first operation interface;
[0253] Displaying the first control and instruction identification information through the first operation interface, the instruction identification information is used to identify the control instruction in the executed state, and when the instruction identification information is used to identify the target control instruction, the target object executes the object behavior corresponding to the target control instruction in the first operation interface;
[0254] Based on the first trigger operation on the first control, the object state of the target object in the first running interface is kept unchanged, and the instruction identification information displayed in the first running interface is kept unchanged.
[0255] Alternatively, the processor 780 included in the terminal device further has the following functions:
[0256] Obtaining object control information, the object control information being used to control a target object in a first operation interface, the object control information including first control information and control information corresponding to a target control instruction, the control information corresponding to the target control instruction including display control information corresponding to the target control instruction and instruction execution information corresponding to the target control instruction, the target object being used to execute a target object behavior corresponding to the target control instruction, the instruction execution information being used to characterize an execution mode of the target object behavior, and the object behavior being used to change an object state of the target object in the first operation interface;
[0257] Execute the control information corresponding to the target control instruction;
[0258] The control information corresponding to executing the target control instruction includes:
[0259] According to the display control information, display instruction identification information for identifying the target control instruction in the first operation interface, where the instruction identification information is used to identify the control instruction in an executed state;
[0260] Based on the first information content corresponding to the first control information, updating the object state information corresponding to the target object according to the instruction execution information, wherein the object state information is used to control the object state of the target object in the first operation interface;
[0261] Based on the second information content corresponding to the first control information, the updating of the object status information is stopped, and the first trigger operation is used to change the information content corresponding to the first control information to the second information content. The first trigger operation is a trigger operation for the first control displayed on the first running interface.
[0262] The present application also provides a server. Fig.17 As shown, Fig.17 The structural diagram of the server 800 provided in the embodiment of the present application, the server 800 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 822 (for example, one or more processors) and a memory 832, and one or more storage media 830 (for example, one or more mass storage devices) storing application programs 842 or data 844. Among them, the memory 832 and the storage medium 830 can be temporary storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 822 can be configured to communicate with the storage medium 830 and execute a series of instruction operations in the storage medium 830 on the server 800.
[0263] The server 800 may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input and output interfaces 858, and / or one or more operating systems 841, such as Windows Server 2000. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM etc.
[0264] The steps performed by the server in the above embodiment can be based on Fig.17 The server structure shown.
[0265] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program is used to execute any one of the implementation methods of the interaction methods described in the aforementioned embodiments.
[0266] An embodiment of the present application further provides a computer program product including a computer program, which, when executed on a computer device, enables the computer device to execute the interaction method described in any one of the above embodiments.
[0267] It is understandable that in the specific implementation of this application, related data such as user information (such as control instructions, user operation information) is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0268] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the above-mentioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the above-mentioned storage medium can be at least one of the following media: read-only memory (English: read-only memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store program codes.
[0269] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0270] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An interactive method, characterized in that: The method comprises: Displaying a first operation interface, the first operation interface is used to display an object behavior executed by a target object, the target object is used to execute an object behavior corresponding to a control instruction, the object behavior is used to change the object state of the target object in the first operation interface, and the target object in the first operation interface is executing the object behavior; Displaying the first control and instruction identification information through the first operation interface, the instruction identification information is used to identify the control instruction in the executed state, and when the instruction identification information is used to identify the target control instruction, the target object executes the object behavior corresponding to the target control instruction in the first operation interface; Based on the first trigger operation on the first control, the object state of the target object in the first operation interface is kept unchanged, and the instruction identification information displayed in the first operation interface is kept unchanged; Based on the first trigger operation, displaying a second control through the first running interface; Based on the trigger operation on the second control, the target object is controlled to use the first object state as the starting object state in the first running interface, and continue to execute the object behavior corresponding to the control instruction in the executed state from the first instruction execution progress, wherein the first object state is the object state maintained in the first running interface based on the first trigger operation, and the first instruction execution progress is the instruction execution progress corresponding to the first object state.
2. The method according to claim 1, characterized in that The method further comprises: Based on the target object completing the first object behavior, maintaining the object state of the target object in the first operation interface unchanged, wherein the first object behavior is the object behavior corresponding to the first control instruction; Displaying a third control through the first operation interface; Based on the trigger operation on the third control, the target object is controlled to execute a second object behavior in the first operation interface, the second object behavior is the object behavior corresponding to the second control instruction, the second control instruction is the next control instruction corresponding to the first control instruction in the instruction execution sequence, and the target object is used to execute object behaviors corresponding to multiple control instructions respectively according to the instruction execution sequence.
3. The method according to claim 2, characterized in that After the first object behavior is executed based on the target object and the object state of the target object in the first operation interface is kept unchanged, the method further includes: Displaying a fourth control through the first operation interface; Based on the trigger operation on the fourth control, the target object is controlled in the first operation interface to execute object behaviors corresponding to all control instructions that are located after the first control instruction among the multiple control instructions according to the instruction execution order.
4. The method according to claim 1, characterized in that: The method further comprises: A command display interface is displayed, wherein the command display interface is used to display multiple control commands corresponding to the target object, wherein the target object is specifically used to sequentially execute object behaviors corresponding to the multiple control commands respectively, wherein control commands in an executed state correspond to a first command display mode, and control commands not in an executed state correspond to a second command display mode, wherein the first command display mode and the second command display mode are different command display modes.
5. The method according to claim 4, characterized in that The instruction display interface also includes a fifth control, and the first operation interface includes: Based on the trigger operation on the fifth control, hiding the instruction display interface and displaying the first operation interface; Controlling the target object to execute an object behavior corresponding to a control instruction in an executed state in the first operation interface; The method further comprises: Based on the first trigger operation, the instruction display interface is displayed.
6. The method according to claim 4, characterized in that The multiple control instructions have a corresponding instruction execution order, the target object is specifically used to sequentially execute the object behaviors respectively corresponding to the multiple control instructions according to the instruction execution order, the third control instruction is any one of the multiple control instructions that is not in an executed state, and the method further includes: Based on a second trigger operation for a third control instruction, changing the display mode corresponding to the third control instruction from the second instruction display mode to the first instruction display mode, and changing the display mode corresponding to a fourth control instruction from the first instruction display mode to the second instruction display mode, wherein the fourth control instruction is a control instruction in an executed state among the multiple control instructions at the operation moment corresponding to the second trigger operation; Control the target object in the first operation interface, with the second object state as the starting object state, and execute the object behavior corresponding to the third control instruction, the second object state is the object state corresponding to the target object after the third object behavior is completed according to the instruction execution sequence, and the third object behavior is the object behavior corresponding to the previous control instruction corresponding to the third control instruction in the instruction execution sequence.
7. The method according to claim 4, characterized in that The multiple control instructions have a corresponding instruction execution order, the instruction display interface further includes a sixth control, and the method further includes: Based on the trigger operation for the sixth control, a second operation interface is displayed, and the second operation interface is used to display that the target object executes the object behaviors corresponding to the multiple control instructions in sequence according to the instruction execution order.
8. The method according to claim 1, characterized in that The method further comprises: The object status information is displayed through the first operation interface, and the object status information is used to represent the object status corresponding to the target object.
9. The method according to claim 1, characterized in that: The target control instruction has a corresponding target object state, and the target object state is an object state determined based on a control instruction corresponding to an object behavior executed by the target object when the object behavior corresponding to the target control instruction is executed. The method further includes: When the target object completes executing the object behavior corresponding to the target control instruction, the target object is in the target object state and displays first prompt information, where the first prompt information is used to indicate that there is no abnormality in the object behavior executed by the target object; When the target object completes executing the object behavior corresponding to the target control instruction, the target object is not in the target object state, and second prompt information is displayed. The first prompt information is used to indicate that an abnormality has occurred in the object behavior executed by the target object.
10. An interactive method, characterized in that: The method comprises: Obtaining object control information, the object control information is used to control a target object in a first operation interface, the object control information includes first control information and control information corresponding to a target control instruction, the first control information is used to instruct the target object to pause or continue to execute a corresponding object behavior, the control information corresponding to the target control instruction includes display control information corresponding to the target control instruction and instruction execution information corresponding to the target control instruction, the target object is used to execute a target object behavior corresponding to the target control instruction, the instruction execution information is used to characterize an execution mode of the target object behavior, and the object behavior is used to change an object state of the target object in the first operation interface; the control information corresponding to the target control instruction also includes state change information, the state change information includes an instruction identifier corresponding to the target control instruction, the instruction identifier is used to identify the target control instruction in an instruction display interface, the state change information is used to change a display mode of the target control instruction in the instruction display interface from a second instruction display mode to a first instruction display mode, in which a control instruction in an executed state corresponds to the first instruction display mode, and a control instruction not in an executed state corresponds to the second instruction display mode; Execute the control information corresponding to the target control instruction; The control information corresponding to executing the target control instruction includes: According to the display control information, display instruction identification information for identifying the target control instruction in the first operation interface, where the instruction identification information is used to identify the control instruction in an executed state; Based on the first information content corresponding to the first control information, updating the object state information corresponding to the target object according to the instruction execution information, wherein the object state information is used to control the object state of the target object in the first operation interface; Based on the second information content corresponding to the first control information, the updating of the object status information is stopped, and the first trigger operation is used to change the information content corresponding to the first control information to the second information content. The first trigger operation is a trigger operation for the first control displayed on the first running interface.
11. The method according to claim 10, characterized in that The method further comprises: Determine, according to the instruction execution information, information update methods corresponding to a plurality of instruction execution progresses of the target object behavior, respectively, wherein the plurality of instruction execution progresses are instruction execution progresses during the process of the target object executing the target object behavior; The updating of the object state information corresponding to the target object according to the instruction execution information based on the first information content corresponding to the first control information includes: Based on the target object reaching the target instruction execution progress and the first control information corresponding to the first information content, the object state information corresponding to the target object is updated according to the target information update method corresponding to the target instruction execution progress.
12. The method according to claim 10, characterized in that The method further comprises: Based on a trigger operation on a second control displayed in the first operation interface, information content corresponding to the first control information is changed to the first information content, and the second control is a control displayed based on the first trigger operation.
13. The method according to claim 10, characterized in that The object control information includes control information corresponding to a plurality of control instructions respectively, the target control instruction is any one of the plurality of control instructions, the plurality of control instructions have a corresponding instruction execution order, the object control information also includes second control information, the control information corresponding to the target control instruction also includes content change information and content judgment information, the content change information is used to change the information content corresponding to the first control information to the second information content when the instruction execution information is executed, and the content judgment information is used to change the information content corresponding to the first control information to the first information content based on the third information content corresponding to the second control information after the content change information is executed; The method further comprises: Based on the fact that the control information corresponding to the target control instruction has been executed, and the first control information corresponds to the first information content, the control information corresponding to the fifth control instruction is executed, and the fifth control instruction is the next control instruction of the target control instruction in the instruction execution sequence. The trigger operation on the third control is used to change the information content corresponding to the second control information to the fourth information content, and to change the information content corresponding to the first control information to the first information content. The third control is a control displayed in the first operation interface after the control information corresponding to the target control instruction has been executed.
14. The method according to claim 13, characterized in that The trigger operation for the fourth control is used to change the information content corresponding to the second control information to the third information content. The fourth control is a control displayed in the first operation interface after the control information corresponding to the target control instruction is executed.
15. An interactive device, characterized in that: The device comprises a first display unit, a second display unit and a first control unit: The first display unit is used to display a first operation interface, the first operation interface is used to display an object behavior executed by a target object, the target object is used to execute an object behavior corresponding to a control instruction, the object behavior is used to change an object state of the target object in the first operation interface, and the target object in the first operation interface is executing the object behavior; The second display unit is used to display the first control and instruction identification information through the first operation interface, the instruction identification information is used to identify the control instruction in the executed state, and when the instruction identification information is used to identify the target control instruction, the target object executes the object behavior corresponding to the target control instruction in the first operation interface; The first control unit is used to keep the object state of the target object in the first operation interface unchanged, and keep the instruction identification information displayed in the first operation interface unchanged, based on the first trigger operation on the first control; The device also includes a third display unit and a second control unit: The third display unit is used to display the second control through the first operation interface based on the first trigger operation; The second control unit is used to control the target object in the first running interface to use the first object state as the starting object state based on the trigger operation on the second control, and continue to execute the object behavior corresponding to the control instruction in the executed state from the first instruction execution progress, wherein the first object state is the object state maintained in the first running interface based on the first trigger operation, and the first instruction execution progress is the instruction execution progress corresponding to the first object state.
16. The device according to claim 15, characterized in that The device further comprises a third control unit, a fourth display unit and a fourth control unit: The third control unit is used to keep the object state of the target object in the first operation interface unchanged based on the target object completing the first object behavior, where the first object behavior is the object behavior corresponding to the first control instruction; The fourth display unit is used to display a third control through the first operation interface; The fourth control unit is used to control the target object to execute a second object behavior in the first operation interface based on a trigger operation on the third control, the second object behavior is an object behavior corresponding to a second control instruction, the second control instruction is the next control instruction corresponding to the first control instruction in the instruction execution sequence, and the target object is used to execute object behaviors corresponding to multiple control instructions respectively according to the instruction execution sequence.
17. The device according to claim 16, characterized in that The device further comprises a fifth display unit and a fifth control unit: The fifth display unit is used to display a fourth control through the first operation interface; The fifth control unit is used to control the target object in the first operation interface based on the trigger operation of the fourth control, and execute the object behavior corresponding to all control instructions located after the first control instruction among the multiple control instructions according to the instruction execution order.
18. The device according to claim 15, characterized in that The device also includes a sixth display unit: The sixth display unit is used to display an instruction display interface, and the instruction display interface is used to display multiple control instructions corresponding to the target object. The target object is specifically used to sequentially execute object behaviors corresponding to the multiple control instructions. The control instructions in the executed state correspond to the first instruction display mode, and the control instructions not in the executed state correspond to the second instruction display mode. The first instruction display mode and the second instruction display mode are different instruction display modes.
19. The device according to claim 18, characterized in that The instruction display interface further includes a fifth control, wherein the first display unit is specifically used for: Based on the trigger operation on the fifth control, hiding the instruction display interface and displaying the first operation interface; Controlling the target object to execute an object behavior corresponding to a control instruction in an executed state in the first operation interface; The device also includes a seventh display unit: The seventh display unit is used to display the instruction display interface based on the first trigger operation.
20. The device according to claim 18, characterized in that The multiple control instructions have a corresponding instruction execution order, the target object is specifically used to sequentially execute the object behaviors corresponding to the multiple control instructions according to the instruction execution order, the third control instruction is any one of the multiple control instructions that is not in an executed state, and the device further includes a sixth control unit and a seventh control unit: The sixth control unit is configured to change, based on a second trigger operation for the third control instruction, a display mode corresponding to the third control instruction from the second instruction display mode to the first instruction display mode, and change a display mode corresponding to a fourth control instruction from the first instruction display mode to the second instruction display mode, wherein the fourth control instruction is a control instruction in an executed state among the multiple control instructions at an operation moment corresponding to the second trigger operation; The seventh control unit is used to control the target object in the first operation interface to execute the object behavior corresponding to the third control instruction with the second object state as the starting object state, the second object state being the object state corresponding to the target object after completing the third object behavior according to the instruction execution sequence, and the third object behavior being the object behavior corresponding to the previous control instruction corresponding to the third control instruction in the instruction execution sequence.
21. The device according to claim 18, characterized in that The plurality of control instructions have a corresponding instruction execution order, the instruction display interface further includes a sixth control, and the device further includes an eighth display unit: The eighth display unit is used to display a second operation interface based on a trigger operation on a sixth control, and the second operation interface is used to display that the target object executes the object behaviors corresponding to the multiple control instructions in sequence according to the instruction execution order.
22. The device according to claim 15, characterized in that The device also includes a ninth display unit: The ninth display unit is used to display object status information through the first operation interface, where the object status information is used to represent the object status corresponding to the target object.
23. The device according to claim 15, characterized in that The target control instruction has a corresponding target object state, and the target object state is an object state determined based on the control instruction corresponding to the object behavior executed by the target object when the object behavior corresponding to the target control instruction is executed. The device also includes a tenth display unit and an eleventh display unit: The tenth display unit is configured to display first prompt information based on the fact that the target object has completed executing the object behavior corresponding to the target control instruction and the target object is in the target object state, wherein the first prompt information is used to indicate that there is no abnormality in the object behavior executed by the target object; The eleventh display unit is used to display second prompt information based on the fact that when the target object completes the object behavior corresponding to the target control instruction, the target object is not in the target object state, and the first prompt information is used to indicate that an abnormality has occurred in the object behavior executed by the target object.
24. An interactive device, characterized in that: The device comprises an acquisition unit and a first execution unit: The acquisition unit is used to acquire object control information, the object control information is used to control the target object in the first operation interface, the object control information includes first control information and control information corresponding to a target control instruction, the control information corresponding to the target control instruction includes display control information corresponding to the target control instruction, and instruction execution information corresponding to the target control instruction, the target object is used to execute a target object behavior corresponding to the target control instruction, the instruction execution information is used to characterize an execution mode of the target object behavior, and the object behavior is used to change an object state of the target object in the first operation interface; the control information corresponding to the target control instruction also includes state change information, the state change information includes an instruction identifier corresponding to the target control instruction, the instruction identifier is used to identify the target control instruction in an instruction display interface, the state change information is used to change a display mode of the target control instruction in the instruction display interface from a second instruction display mode to a first instruction display mode, and in the instruction display interface, a control instruction in an executed state corresponds to the first instruction display mode, and a control instruction not in an executed state corresponds to the second instruction display mode; The first execution unit is used to execute the control information corresponding to the target control instruction; The control information corresponding to executing the target control instruction includes: According to the display control information, display instruction identification information for identifying the target control instruction in the first operation interface, where the instruction identification information is used to identify the control instruction in an executed state; Based on the first information content corresponding to the first control information, updating the object state information corresponding to the target object according to the instruction execution information, wherein the object state information is used to control the object state of the target object in the first operation interface; Based on the second information content corresponding to the first control information, the updating of the object status information is stopped, and the first trigger operation is used to change the information content corresponding to the first control information to the second information content. The first trigger operation is a trigger operation for the first control displayed on the first running interface.
25. The device according to claim 24, characterized in that The device also includes a determining unit: The determining unit is used to determine, according to the instruction execution information, information update modes corresponding to a plurality of instruction execution progresses of the target object behavior, wherein the plurality of instruction execution progresses are instruction execution progresses during the process of the target object executing the target object behavior; The first execution unit is specifically used for: Based on the target object reaching the target instruction execution progress and the first control information corresponding to the first information content, the object state information corresponding to the target object is updated according to the target information update method corresponding to the target instruction execution progress.
26. The device according to claim 24, characterized in that The device also includes a second execution unit: The second execution unit is used to change the information content corresponding to the first control information to the first information content based on a trigger operation on a second control displayed in the first operation interface, and the second control is a control displayed based on the first trigger operation.
27. The device according to claim 24, characterized in that The object control information includes control information corresponding to a plurality of control instructions respectively, the target control instruction is any one of the plurality of control instructions, the plurality of control instructions have a corresponding instruction execution order, the object control information also includes second control information, the control information corresponding to the target control instruction also includes content change information and content judgment information, the content change information is used to change the information content corresponding to the first control information to the second information content when the instruction execution information is executed, and the content judgment information is used to change the information content corresponding to the first control information to the first information content based on the third information content corresponding to the second control information after the content change information is executed; The device further comprises a third execution unit: The third execution unit is used to execute the control information corresponding to the fifth control instruction based on the control information corresponding to the target control instruction being completed and the first control information corresponding to the first information content. The fifth control instruction is the next control instruction of the target control instruction in the instruction execution sequence. The trigger operation on the third control is used to change the information content corresponding to the second control information to the fourth information content, and to change the information content corresponding to the first control information to the first information content. The third control is a control displayed in the first operation interface after the control information corresponding to the target control instruction is executed.
28. The device according to claim 27, characterized in that The trigger operation for the fourth control is used to change the information content corresponding to the second control information to the third information content. The fourth control is a control displayed in the first operation interface after the control information corresponding to the target control instruction is executed.
29. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store a computer program and transmit the computer program to the processor; The processor is used to execute the interaction method of any one of claims 1-9 according to the instructions in the computer program, or to execute the interaction method of any one of claims 10-14.
30. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the interaction method according to any one of claims 1 to 9, or to execute the interaction method according to any one of claims 10 to 14.
31. A computer program product comprising a computer program, which, when executed on a computer device, enables the computer device to execute the interactive method according to any one of claims 1 to 9, or the interactive method according to any one of claims 10 to 14.
Citation Information
Patent Citations
Application debugging method and device, computer equipment and storage medium
CN116909877A