Virtual object display method, device, equipment, and program
By decomposing attribute influence actions into segmentation sub-actions and meeting time window requirements, the method improves human-computer interaction efficiency and diversity of operations for virtual object control in virtual scenes.
Patent Information
- Application Number
- JP2025516273
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-12-12
- Filing Date
- 2023-10-31
- Publication Date
- 2025-09-19
AI Technical Summary
Existing methods for controlling virtual objects in virtual scenes require multiple virtual control components for different actions, leading to increased interface complexity and reduced efficiency and flexibility in human-computer interaction.
Decompose attribute influence actions into multiple segmentation sub-actions, allowing a single control component to perform multiple actions by meeting time window requirements for action trigger operations, enabling a multi-to-one operation mode.
Enhances the diversity of user operation methods and improves human-computer interaction efficiency by allowing a single control component to perform multiple actions within a time window, enriching the content displayed on the screen.
Smart Images

Figure 2025531312000001_ABST
Abstract
Description
[Technical Field]
[0001] TECHNICAL FIELD The present application relates to the field of computer technology, and more particularly to a method, apparatus, device, medium, and program product for displaying a virtual object.
[0002] This application claims priority to a Chinese patent application filed on December 12, 2022, bearing application number 202211596614.1 and entitled "Method, device, equipment, medium, and program product for displaying virtual objects," the entire contents of which are incorporated herein by reference. [Background technology]
[0003] In the application program based on the virtual scene, the user can control the interaction between the main control virtual object and other virtual objects through the mobile terminal. During the interaction process, the user can input commands on the mobile terminal to operate the main control virtual object to perform multiple attribute-influencing actions, thereby performing various actions or behaviors with the other virtual objects.
[0004] In the related art, by clicking on a virtual control component of a mobile terminal, the master control virtual object can be triggered to perform an attribute affecting action corresponding to the virtual control component, and can interact with other virtual objects.
[0005] However, the above method of triggering a virtual object to perform an action by a virtual control component requires setting and triggering different virtual control components for different actions, which increases the complexity of the interface, resulting in relatively poor flexibility in object control and further reducing the efficiency of human-computer interaction. Summary of the Invention [Means for solving the problem]
[0006] The embodiments of the present application provide a method, device, equipment, medium, and program product for displaying a virtual object, which can improve the diversity of operation methods and the efficiency of human-computer interaction.
[0007] According to one aspect, there is provided a method for displaying a virtual object, the method comprising: Displaying a master control virtual object in a virtual scene, the master control virtual object having a plurality of attribute influence actions in the virtual scene, including a first attribute influence action, the first attribute influence action including a plurality of first segmentation sub-actions arranged in sequence; receiving n action trigger operations, and in response to the n-th action trigger operation being a trigger operation for a first attribute-influencing action, displaying that the main control virtual object performs an i-th first segmentation sub-action in the first attribute-influencing action based on the n-th action trigger operation, where the i-th first segmentation sub-action is related to the n-th number of times the action trigger operation is received, n and i are positive integers, and the operation times of the n action trigger operations comply with a time window requirement, where the time window requirement refers to a time interval between two adjacent action trigger operations being smaller than a preset time threshold; In response to receiving a subsequent action trigger operation for a first attribute-influencing action following the nth action trigger operation, displaying that the main control virtual object will sequentially execute the multiple first segmentation sub-actions following the i-th first segmentation sub-action based on the arrangement order of the multiple first segmentation sub-actions, wherein the operation time between the subsequent action trigger operation and the nth action trigger operation complies with a time window requirement.
[0008] According to another aspect, there is provided a display device for a virtual object, the device comprising: An object display module used to display a master control virtual object in a virtual scene, the master control virtual object having a plurality of attribute influence actions in the virtual scene, including a first attribute influence action, and the first attribute influence action includes a plurality of first segmentation sub-actions arranged in sequence; an action display module that receives n action trigger operations and, in response to the n-th action trigger operation being a trigger operation for a first attribute-influencing action, displays that the main control virtual object performs an i-th first segmentation sub-action in the first attribute-influencing action based on the n-th action trigger operation, where the i-th first segmentation sub-action is related to the nth number of times the action trigger operation is received, n and i are positive integers, and the operation times of the n action trigger operations comply with a time window requirement; In response to receiving a subsequent action trigger operation for a first attribute-influencing action following the nth action trigger operation, the action display module displays, based on the arrangement order of the multiple first segmentation sub-actions, that the main control virtual object will sequentially perform the multiple first segmentation sub-actions following the i-th first segmentation sub-action, wherein the operation time between the subsequent action trigger operation and the nth action trigger operation complies with a time window requirement, which refers to the time interval between two adjacent action trigger operations being smaller than a predetermined time threshold.
[0009] According to another aspect, there is provided a computer device including a processor and a memory, wherein at least one instruction, at least one segment of a program, code set, or instruction set is stored in the memory, and the at least one instruction, at least one segment of a program, code set, or instruction set is loaded and executed by the processor to realize the method for displaying a virtual object described in any of the above embodiments of the present application.
[0010] According to another aspect, there is provided a computer-readable storage medium having stored therein at least one instruction, at least one segment of a program, a code set, or an instruction set, the at least one instruction, at least one segment of a program, a code set, or an instruction set that is loaded and executed by a processor to realize the method for displaying a virtual object described in any of the above embodiments of the present application.
[0011] According to another aspect, there is provided a computer program product or a computer program comprising computer instructions stored on a computer-readable storage medium, wherein a processor of a computing device selects the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computing device to perform the method for displaying a virtual object according to any of the above embodiments.
[0012] The beneficial effects of the technical solutions provided by the embodiments of the present application include at least the following:
[0013] The attribute influence action that can be performed by the main control virtual object is decomposed into multiple segmentation sub-actions, so that the same target control component can correspond to multiple actions, and the types of actions that can be performed by the main control virtual object are increased when the number of control components is limited. Furthermore, for different control components, action trigger operations that meet the time window requirements are performed to switch the numbers of the multiple segmentation sub-actions existing in the target control component, and the virtual object displays that it is performing the segmentation sub-action after switching the number, thereby improving the efficiency of human-computer interaction and enriching the content on the display screen. By triggering multiple control components, the main control virtual object can perform the same attribute influence action, realizing a multi-to-one operation mode and increasing the diversity of user operation modes. [Brief explanation of the drawings]
[0014] [Figure 1] 1 is a schematic diagram of a target control component provided by an exemplary embodiment of the present application controlling a virtual object to perform one action; [Figure 2] FIG. 1 is a schematic diagram of presetting one action that a virtual object can perform by editing a target control component provided by one exemplary embodiment of the present application; [Figure 3] FIG. 1 is a schematic diagram of controlling a virtual object to perform one action via a slide gesture provided by one exemplary embodiment of the present application; [Figure 4] 1 is a schematic diagram of a single target control component controlling a virtual object to perform a multi-segment action provided by an exemplary embodiment of the present application; FIG. [Figure 5] 1 is a structural block diagram of an electronic device provided by one exemplary embodiment of the present application; [Figure 6] 1 is a structural block diagram of a computer system provided by one exemplary embodiment of the present application. [Figure 7] 1 is a flowchart of a method for displaying a virtual object provided by one exemplary embodiment of the present application. [Figure 8] 1 is a schematic diagram of a terminal screen provided by one exemplary embodiment of the present application; [Figure 9] FIG. 10 is a schematic diagram illustrating a virtual object performing a segmentation sub-action based on an action trigger operation provided by one exemplary embodiment of the present application. [Figure 10] 1 is a flowchart of a method for controlling a virtual object to display a segmentation sub-action based on the number of action trigger operations provided by an exemplary embodiment of the present application. [Figure 11] FIG. 10 is a schematic diagram illustrating a virtual object cyclically performing a segmentation sub-action based on a trigger period provided by one exemplary embodiment of the present application. [Figure 12] FIG. 10 is a schematic diagram of determining the number i of a first segmentation sub-act based on a trigger period provided by one exemplary embodiment of the present application; [Figure 13] 1 is a flowchart of a method for counting action trigger operations based on a time window requirement provided by one exemplary embodiment of the present application; [Figure 14] FIG. 1 is a schematic diagram of an operation counter provided by an exemplary embodiment of the present application for accumulating counts of action-triggering operations that meet a time window requirement. [Figure 15] 10 is a flowchart of a method for displaying a virtual object performing an m-th second segmentation sub-act provided by an exemplary embodiment of the present application. [Figure 16] 1 is a structural block diagram of a virtual object interactive device provided by one exemplary embodiment of the present application; [Figure 17] FIG. 10 is a structural block diagram of a virtual object interactive device provided by another exemplary embodiment of the present application. [Figure 18] 1 is a structural block diagram of a computer device provided by one exemplary embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION
[0015] 1 , there is a main control virtual object 101 in a virtual scene 100, and a target control component 102 on the terminal screen controls the main control virtual object 101 to perform skill release, and displays corresponding action actions in different ranges of the virtual scene 100. When clicking the target control component 102, it can be controlled that the main control virtual object 101 can perform an action within a first action range 110, and after long pressing the target control component 102 and reaching a time threshold, it can be controlled that the main control virtual object 101 can perform an action within a second action range 120.
[0016] Illustratively, as shown in FIG. 2 , in the action editing interface 200, there are multiple target control components 201, and the target control components 201 are pre-edited, so that the target control components 201 can control the main control virtual object to perform corresponding attribute influence actions 202, and different attribute influence actions 202 correspond to different target control components 201, and by clicking the target control component 201 on the terminal screen, the main control virtual object can be controlled to perform the corresponding attribute influence action 202.
[0017] For example, as shown in FIG. 3 , in a virtual scene 300, there is a main control virtual object 301 and other virtual objects 302. By inputting different gesture commands into a trigger area 310 on the terminal screen, for example, by inputting a slide gesture into the trigger area 310, the main control virtual object 301 can be controlled to perform various actions, or the main control virtual object 301 can be controlled to interact with the other virtual objects 302.
[0018] However, in the related art, when controlling a main control virtual object to perform various actions, one target control component can usually only support one type of action. When clicking a target control component to control the main control virtual object to perform the corresponding action, the diversity of operation methods cannot be met. Editing a target control component and changing its corresponding action will bring additional burden to the operation. In addition, the number of target control components is limited, so the diversity of the types of actions performed by the main control virtual object cannot be met. Instead, the main control virtual object is triggered to perform an action by long pressing or sliding to input commands. In this case, the time interval between responses of the main control virtual object is relatively long, the immediacy is relatively poor, and the efficiency of human-computer interaction is low.
[0019] In the embodiment of the present application, attribute influence actions decomposed into multiple segments correspond to one target control component, that is, when an action trigger operation is received for the same target control component, the main control virtual object can be controlled to perform multiple attribute influence actions, and when an action trigger operation is received for another control component, the main control virtual object can be controlled to perform a specified action in the target control component. The main control virtual object can be switched at any time when performing attribute influence actions, which can improve the diversity of user operation methods, improve the efficiency of human-computer interaction, and enrich the content on the display screen.
[0020] For example, as shown in FIG. 4, in a virtual scene 400, there is a main control virtual object 401 and other virtual objects 402, and by inputting commands to a target control component 410 and other control components 420, i.e., by trigger operations, the main control virtual object 401 can be controlled to perform various actions and interact with the other virtual objects 402.
[0021] Optionally, in this embodiment, the attribute influence actions corresponding to the target control component 410 include four types, where the four attribute influence actions may be four stages of the same attribute influence action, or four independent, identical, or different attribute influence actions. In this embodiment, the four attribute influence actions are taken as an example to belong to four stages of the same attribute influence action, where the attribute influence actions include a first segmentation sub-action 411, a second segmentation sub-action 412, a third segmentation sub-action 413, and a fourth segmentation sub-action 414, and the attribute influence actions corresponding to each other control component 420 may include a single stage or multiple stages.
[0022] By clicking the target control component 410 or other control components 420 to trigger an action operation, the master control virtual object 401 will perform different attribute-affecting actions accordingly.
[0023] Here, the attributes of the main control virtual object 401 include, but are not limited to, a life value attribute, a magic power value attribute, an attack attribute, a defense attribute, a recovery attribute, and a speed attribute.
[0024] When n consecutive action trigger operations satisfy the time window requirement and the nth action trigger operation is performed on the target control component 410, the main control virtual object 401 can be controlled to perform the attribute-affecting action corresponding to the target control component 410 based on the number of action trigger operations.
[0025] Here, satisfying the time window requirement means that the time interval between each action trigger operation is smaller than the time threshold.
[0026] Here, the n number of action trigger operations includes at least one of the following cases:
[0027] If the n action trigger operations are all trigger operations for the target control component 410, sequentially execute the first segmentation sub-action 411, the second segmentation sub-action 412, the third segmentation sub-action 413, and the fourth segmentation sub-action 414 in response to the trigger operations for the target control component 410; If, among n action trigger operations, the first n-1 action trigger operations are trigger operations for other control components 420, then in the first n-1 action trigger operations, other actions corresponding to the other control components 420 are triggered, and in the nth action trigger operation, based on the value of the number n, the i-th segmentation sub-action corresponding to the target control component 410 is triggered, where the i-th segmentation sub-action is any one of the first segmentation sub-action 411, the second segmentation sub-action 412, the third segmentation sub-action 413, and the fourth segmentation sub-action 414, and is determined by the number n.
[0028] The terminal in this application may be a desktop computer, a laptop portable computer, a mobile phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, etc. An application program supporting a virtual scene, for example, an application program supporting a three-dimensional virtual scene, is installed and executed on the terminal. The application program may be any one of a virtual reality application program, a three-dimensional map program, a simulation game (SLG), and a multiplayer online battle arena game (MOBA). Optionally, the application program may be a standalone application program, for example, a standalone three-dimensional game program, or a network online application program.
[0029] 5 shows a structural block diagram of an electronic device provided by one exemplary embodiment of the present application. The electronic device 500 includes an operating system 520 and an application program 522.
[0030] The operating system 520 is the underlying software that provides application programs 522 with secure access to the computer hardware.
[0031] The application program 522 is an application program supporting a virtual scene. Optionally, the application program 522 is an application program supporting a three-dimensional virtual scene. The application program 522 may be any one of a virtual reality application program, a three-dimensional map program, a TPS game, an FPS game, an MOBA game, and an SLG game. The application program 522 may be a standalone application program, such as a standalone three-dimensional game program, or a network online application program.
[0032] 6 shows a structural block diagram of a computer system 600 provided by one exemplary embodiment of the present application. The computer system 600 includes a first device 620, a server 640, and a second device 660.
[0033] An application program supporting a virtual scene is installed and executed on the first device 620. The application program may be any one of a virtual reality application program, a three-dimensional map program, a TPS game, an FPS game, an MOBA game, and a SLG game. The first device 620 is used by a first user. The first user uses the first device 620 to control the actions of a primary control virtual object located in the virtual scene, including, but not limited to, at least one of body posture adjustment, walking, running, and jump attack. Exemplarily, the primary control virtual object is a primary control virtual person, such as a simulated human character or an animated human character.
[0034] The first device 620 is connected to the server 640 via a wireless network or a wired network.
[0035] The server 640 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. The server 640 is used to provide background services to application programs supporting the 3D virtual scene. Optionally, the server 640 performs main computing tasks, and the first device 620 and the second device 660 perform secondary computing tasks; alternatively, the server 640 performs secondary computing tasks, and the first device 620 and the second device 660 perform main computing tasks; or the server 640, the first device 620, and the second device 660 employ a distributed computing architecture to perform collaborative computing among themselves.
[0036] An application program supporting the virtual scene is installed and executed on the second device 660. The application program may be any one of a virtual reality application program, a three-dimensional map program, an FPS game, a MOBA game, and a SLG game. The second device 660 is used by a second user, and the second user uses the second device 660 to control the actions of other virtual objects located in the virtual scene, including, but not limited to, at least one of adjusting body posture, walking, running, and jumping attacks. Exemplarily, the other virtual objects are other virtual characters, such as simulated human characters or animated human characters.
[0037] Optionally, the main control virtual person and the other virtual people are in the same virtual scene. Optionally, the main control virtual person and the other virtual people may belong to the same team, belong to the same organization, have a friendship relationship, or have temporary communication rights. Optionally, the main control virtual person and the other virtual people may belong to different teams, different organizations, or two opposing parties.
[0038] Optionally, the application program installed on the first device 620 and the second device 660 is the same, or the application programs installed on the two devices are the same type of application program on different control system platforms. The first device 620 can generally refer to one of multiple devices, and the second device 660 can generally refer to one of multiple devices, and this embodiment will only take the first device 620 and the second device 660 as examples. The device types of the first device 620 and the second device 660 may be the same or different. The following embodiment will be described using the device as a desktop computer as an example.
[0039] As can be appreciated by those skilled in the art, the number of devices may be greater or less. For example, there may be only one device, or the number of devices may be tens, hundreds, or even more. The embodiments of the present application are not limited by the number and device types of devices.
[0040] It is worth noting that the server 640 may be realized as a physical server or as a cloud server, where cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or a local area network to realize data calculation, storage, processing, and sharing. Optionally, when the server 640 is realized as a cloud server, the program corresponding to the virtual scene may be a cloud game.
[0041] In some embodiments, the method provided by the embodiments of the present application can be applied to a cloud gaming scenario, whereby the cloud server completes the calculation of data logic during the game process, and the terminal is responsible for displaying the game interface.
[0042] Optionally, the server 640 may also be implemented as a node in a blockchain system.
[0043] It should be noted that all information (including, but not limited to, user device information and user personal information), data (including, but not limited to, data used for analysis, data used for storage, data used for display), and signals related to this application are authorized by the user or fully authorized by each party, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant regions. For example, all game data related to this application is obtained with full authorization.
[0044] Combining the above brief introduction of the noun and the description of the implementation environment, the method for displaying a virtual object provided by an embodiment of the present application will be described. Referring to FIG. 7, it shows a flowchart of the method for displaying a virtual object provided by one exemplary embodiment of the present application, and takes the application of the method in a terminal as an example. As shown in FIG. 7, the method includes the following steps:
[0045] Step 710: Display the master control virtual object in the virtual scene.
[0046] The master control virtual object has a plurality of attribute influencing actions in the virtual scene, including a first attribute influencing action, and the first attribute influencing action includes a plurality of first segmentation sub-actions arranged in order.
[0047] Here, the attribute-influencing action refers to an action that the main control virtual object can perform in the virtual scene, and affects the attributes of other virtual objects based on the action performed by the main control virtual object.
[0048] The types of attributes of virtual objects include, but are not limited to, the following: 1. Life value: i.e., the life state attribute value of a virtual object; 2. Attack ability: the ability to inflict damage on the life value of other virtual objects when performing an attack; 3. Magic power value: an attribute that needs to be consumed in the process of releasing a skill, i.e., a virtual character has magic power value and can release a skill by consuming it; 4. Defense value: an attribute that can weaken the attack power on one's own life value when defending against an attack from another virtual object; 5. Speed attribute: an attribute that represents the movement speed of a virtual character during movement.
[0049] The first attribute influencing act includes a plurality of first segmentation sub-acts, and the first attribute influencing act is segmented based on corresponding motions or durations to obtain a plurality of first segmentation sub-acts, which are arranged in order, and each of the first segmentation sub-acts is a single attribute influencing act, or each of the first segmentation sub-acts is a single stage of the first attribute influencing act. In some embodiments, the plurality of first segmentation sub-acts included in the first attribute influencing act belong to the same action type, or the plurality of first segmentation sub-acts belong to different action types. For example, the first attribute-influencing action may belong to an offensive action and include four first segmentation sub-actions, where the first and third first segmentation sub-actions are expressed as offensive actions, and the second and fourth first segmentation sub-actions are expressed as defensive actions, or the first attribute-influencing action may belong to an offensive action and include four first segmentation sub-actions, where the four first segmentation sub-actions are each expressed as an offensive action with a different action expression.
[0050] The current terminal can control the main control virtual object to move in the virtual scene, perform various actions, change its shape, and perform other operations.
[0051] In addition to the main control virtual object, the virtual scene further includes other virtual objects, including, but not limited to, the following types of other virtual objects: (1) enemy virtual objects of the main control virtual object, (2) teammate virtual objects of the main control virtual object, and (3) non-player characters (NPCs) unrelated to the main control virtual object.
[0052] The main control virtual object has a first attribute influence action and other attribute influence actions, and the current terminal can control the main control virtual object to perform these attribute influence actions in the virtual scene and display them on the terminal screen.
[0053] In some embodiments, the other attribute-influencing action may include multiple other segmentation sub-actions arranged in sequence, or may include only one type of action.
[0054] Step 720: Receiving n action trigger operations, and in response to the nth action trigger operation being a trigger operation for a first attribute affecting action, displaying that the main control virtual object performs the i-th first segmentation sub-action in the first attribute affecting action based on the nth action trigger operation.
[0055] Here, the i-th first segmentation sub-action is associated with the number n of times it receives an action trigger operation, where n and i are positive integers, and the operation times of the n action trigger operations meet a time window requirement, which means that the time interval between two adjacent action trigger operations is smaller than a preset time threshold.
[0056] The action trigger operation is used to control the main control virtual object to perform the corresponding attribute affecting action, and multiple control components such as a target control component and other control components are displayed on the current terminal screen, and clicking on different control components can trigger the main control virtual object to perform actions respectively corresponding to the different control components.
[0057] In some embodiments, when the master control virtual object controls the execution of various attribute-affecting actions, the actions can be further triggered via an external input device, for example, via a shortcut key on the external input device.
[0058] In this embodiment, touching a screen control component to trigger an attribute influence action is taken as an example. For example, as shown in FIG. 8 , a plurality of control components are displayed on a terminal screen 800, and the attribute influence action corresponding to a target control component 810 is a first attribute influence action, i.e., an action trigger operation acting on the target control component 810, which can control a main control virtual object to perform one or more first segmentation sub-actions in the first attribute influence action. For example, triggering the target control component 810 once indicates that the main control virtual object performs the first first segmentation sub-action; triggering the target control component 810 multiple times indicates that the main control virtual object sequentially performs the multiple first segmentation sub-actions in the first attribute influence action if the time of triggering the target control component 810 multiple times meets a time window requirement; or triggering the target control component 810 multiple times does not meet the time window requirement, indicates that the main control virtual object repeatedly performs the first first segmentation sub-action.
[0059] The attribute influence action corresponding to the other control component 820 is the other attribute influence action, i.e., an action trigger operation acting on the other control component 820, which can control the main control virtual object to perform the other attribute influence action, and based on the number of times of triggering the other control component 820, it displays that the main control virtual object will perform the other attribute influence action the same number of times.
[0060] The target control component 810 and the other control components 820 all have corresponding configuration files, which are used to realize the process of the main control virtual object performing the attribute influence action. For example, the target control component 810 corresponds to the target configuration file 830.
[0061] Here, the target configuration file 830 includes, but is not limited to, the following contents: (1) command cache: used to cache received action trigger operations, and display that the main control virtual object performs an attribute-affecting action based on the cached command when the main control virtual object meets the conditions for performing an attribute-affecting action; (2) virtual object stun: used in some cases to describe that the main control virtual object is in an uncontrollable state, for example, when the main control virtual object is subjected to an attack attribute-affecting action by another virtual object; (3) animation playback: displaying animation content when the main control virtual object performs an attribute-affecting action.
[0062] Here, the step of receiving n action trigger operations and displaying that the nth action trigger operation is a trigger operation for a first attribute affecting action, in response to which the main control virtual object performs the i-th first segmentation sub-action in the first attribute affecting action, includes, but is not limited to, the following cases:
[0063] (1) When n is 1, In response to receiving one trigger operation for the first attribute influencing action, the main control virtual object displays that it is executing a first first segmentation sub-action in the first attribute influencing action.
[0064] Generally speaking, the first attribute influence act includes four segmentation sub-acts, which are, in order of arrangement, the first first segmentation sub-act, the second first segmentation sub-act, the third first segmentation sub-act, and the fourth first segmentation sub-act.
[0065] An animation of the main control virtual object performing the first segmentation sub-action is displayed on the current terminal screen, or an animation of the main control virtual object interacting with other virtual objects in the process of performing the action is displayed.
[0066] (2) When n is an integer greater than 1, In response to receiving n-1 action trigger operations for other attribute influencing actions, the main control virtual object displays that it will perform the other attribute influencing action based on the n-1 trigger operations, and in response to receiving the nth action trigger operation for the first attribute influencing action, the main control virtual object displays that it will perform the i-th first segmentation sub-action in the first attribute influencing action.
[0067] Generally, for the other attribute-influencing actions for the first n-1 action trigger operations, each attribute-influencing action does not include a segmentation sub-action.
[0068] The number i of the first segmentation sub-action performed by the main control virtual object is determined when n-1 action trigger operations for other attribute influencing actions are received, and the number of triggers for other attribute influencing actions is counted, and the nth trigger operation for the first attribute influencing action is received based on the number of triggers.
[0069] (3) The first n-1 action trigger operations include trigger operations for one or more other attribute-influencing actions, including a trigger operation for the first attribute-influencing action, and in this case, when the nth action trigger operation is a trigger operation for the first attribute-influencing action, the main control virtual object displays that it will execute the i-th first segmentation sub-action in the first attribute-influencing action, where the value of i is related to the number n.
[0070] It is noteworthy that the first attribute influence action may include any number of segmentation sub-actions, the number of times the action trigger operation is received may be any number, and the time window requirement may be any number, and this embodiment is not limited in this regard.
[0071] For example, a time window refers to the time interval corresponding to when two adjacent action trigger operations out of n action trigger operations are executed. A time threshold is set in advance, and when the time interval from the start of the current action trigger operation to the reception of the next action trigger operation is smaller than the time threshold, the time window requirement is considered to be met between the operation times of the current two action trigger operations.
[0072] Optionally, the operation times of the n action trigger operations must all meet the time window requirement, or if a predetermined number of action trigger operations among the n action trigger operations have a time interval smaller than a time threshold, it is considered that the operation times of the n action trigger operations must all meet the time window requirement.
[0073] Step 730: In response to receiving a subsequent action trigger operation for a first attribute-affecting action following the nth action trigger operation, based on the arrangement order of the multiple first segmentation sub-actions, display that the main control virtual object will sequentially execute the multiple first segmentation sub-actions following the i-th first segmentation sub-action.
[0074] Here, the time window requirement is met between the operation times of the subsequent action trigger operation and the n-th action trigger operation.
[0075] After controlling the main control virtual object to execute the attribute influencing actions corresponding to the above n action trigger operations, it receives an action trigger operation, i.e., a subsequent action trigger operation, again, which controls the main control virtual object to execute and display the segmentation sub-action in the first attribute influencing action for the first attribute influencing action.
[0076] Optionally, one subsequent action trigger operation is received, and in the first n action trigger operations, based on the n-th action trigger operation, it is displayed that the main control virtual object performs a second first segmentation sub-action, in which case the subsequent action trigger operation instructs the main control virtual object to perform a third first segmentation sub-action in sequence.
[0077] For example, as shown in FIG. 9, the first attribute influence action of the main control virtual object includes a total of four segmentation subactions: a first first segmentation subaction 910, a second first segmentation subaction 920, a third first segmentation subaction 930, and a fourth first segmentation subaction 940.
[0078] In response to receiving the first n-1 action trigger operations for the other attribute influencing actions, the main control virtual object displays that it will perform the corresponding other attribute influencing actions; in response to receiving the nth action trigger operation for the first attribute influencing action, the main control virtual object displays that it will perform the second first segmentation sub-action 920 in the first attribute influencing action; and in response to receiving one subsequent action trigger operation for the first attribute influencing action following the nth action trigger operation, the main control virtual object displays that it will sequentially perform the second first segmentation sub-action 920 followed by the third first segmentation sub-action 930 based on the arrangement order of the multiple first segmentation sub-actions.
[0079] In some embodiments, the time window requirement is not met between the operation times of the subsequent action triggering operation and the nth action triggering operation.
[0080] Optionally, based on the action trigger operation for the nth first attribute affecting action, it is displayed that the main control virtual object performs a second first segmentation sub-action, and in this case, after receiving a subsequent action trigger operation that does not meet the time window requirement, it is instructed that the main control virtual object performs a first first segmentation sub-action.
[0081] That is, when the subsequent action trigger operation complies with the time window requirement, execution of subsequent segmentation sub-actions starts in order from the second first segmentation sub-action, and when the subsequent action trigger operation does not comply with the time window requirement, execution of subsequent action sub-actions starts in order from the first first segmentation sub-action by default.
[0082] It is worth noting that the number of subsequent action trigger operations received may be arbitrary, and the next segmentation sub-action number that the subsequent action trigger operation controls to execute and display the main control virtual object based on the time window requirements and the segmentation sub-action executed by the previous action trigger operation may be arbitrary, and this embodiment is not limited thereto.
[0083] As described above, when receiving n-1 action trigger operations for other attribute influencing actions, the main control virtual object displays that it will perform other attribute influencing actions; when receiving the nth action trigger operation for the first attribute influencing action, based on the correspondence between the number n-1 of action trigger operations for other attribute influencing actions and the number i of all first segmentation sub-actions existing in the first attribute influencing action, the main control virtual object displays that it will perform the i-th first segmentation sub-action in the first attribute influencing action, thereby improving the diversity of operation methods and allowing the main control virtual object to control more actions, improving the efficiency of human-computer interaction, and enriching the content on the display screen.
[0084] The method provided in this embodiment considers the cases that may appear in the received n action trigger operations, and by receiving one action trigger operation for a first attribute influencing action, displays that the main control virtual object performs the first first segmentation sub-action in the first attribute influencing action; by receiving n-1 action trigger operations for other attribute influencing actions, the action trigger operation for the nth first attribute influencing action is affected according to the action trigger number, and displays that the main control virtual object performs the segmentation sub-action in the first attribute influencing action. This can improve the diversity of operation methods, and multiple action trigger operations can be used to control the main control virtual object to perform the first attribute influencing action, thereby improving the efficiency of human-computer interaction and enriching the content on the display screen.
[0085] In some embodiments, when receiving n-1 action trigger operations for other attribute-affecting actions, the main control virtual object will affect the segmentation sub-action number corresponding to the number of the segmentation sub-action performed when receiving the nth action trigger operation for the first attribute-affecting action, as shown in Figure 10. Figure 10 is a flowchart of a method for controlling a virtual object to display segmentation sub-actions based on the number of action trigger operations provided by one exemplary embodiment of the present application. The method includes the following steps:
[0086] Step 1010: Receiving n action trigger operations and, in response to the nth action trigger operation being a trigger operation for a first attribute affecting action, determining the i-th first segmentation sub-action corresponding to the number n from the multiple first segmentation sub-actions based on the trigger periods of the multiple first segmentation sub-actions in the first attribute affecting action.
[0087] Here, the trigger period is determined based on the number of first segmentation sub-actions included in the first attribute-influencing action.
[0088] Optionally, the number of first segmentation sub-acts is three, in which case the trigger period of each first segmentation sub-act is all three.
[0089] If the number of trigger operations for the first attribute affecting action exceeds the trigger period and the operation times of each trigger operation all satisfy the time window requirements, the main control virtual object controls each first segmentation sub-action to be executed in a loop in order.
[0090] For example, as shown in FIG. 11, the first attribute influence action of the main control virtual object includes a total of three segmentation sub-actions: a first first segmentation sub-action 1101, a second first segmentation sub-action 1102, and a third first segmentation sub-action 1103, and the trigger period is 3.
[0091] If the number of trigger operations for the first attribute-affecting action is 6, the trigger period is exceeded, and if execution starts from the first segmentation sub-action 1101, the corresponding segmentation sub-actions are executed six times in a loop according to the order of the segmentation sub-actions.
[0092] It should be noted that the trigger period may be any period, and the number of trigger operations for the first attribute influencing action may be any period, and the present embodiment is not limited thereto.
[0093] The step of determining the i-th first segmentation sub-action corresponding to the number n according to the trigger periods of the plurality of first segmentation sub-actions in the first attribute-influencing action includes, but is not limited to, the following methods:
[0094] 1. Based on the number of segmentations of the first segmentation sub-action in the first attribute-influencing action, take the remainder of the ratio between the number of times n and the number of segmentations to obtain the value of i of the first segmentation sub-action corresponding to the number of times n.
[0095] Generally, the segmentation number of the first segmentation sub-action in the first attribute influencing action is 4, that is, the first attribute influencing action includes four first segmentation sub-actions, and the number of times the action trigger operation is received is 10. If the action trigger operation for other attribute influencing actions is received in the first 9 times, the action trigger operation for the first attribute influencing action will be received in the 10th time.
[0096] Take the remainder of the ratio between the number of times and the number of segmentations. 10 / 4=2, so the remainder is 2. We obtain that the value of i of the first segmentation sub-action, which corresponds to the number of trigger operations, is 2.
[0097] In this case, when the action trigger operation for the first attribute influencing action is received for the tenth time, the main control virtual object displays that it will execute the second first segmentation sub-action. That is, in the current case, if action trigger operations for other attribute influencing actions are received for the first nine times, when the action trigger operation for the first attribute influencing action is received for the tenth time, by taking the remainder of the ratio, the other first segmentation sub-action in the first attribute influencing action can directly follow the segmentation sub-action corresponding to the ninth action trigger operation, thereby improving the diversity of action generation.
[0098] 2. Determine the value of i based on the correspondence between the number n of the action trigger operation and the number i of the first segmentation sub-action; 2.1 When n=1, In response to the value of the number n of action trigger operations being 1, a first first segmentation sub-act corresponding to the number n is determined from the plurality of first segmentation sub-acts.
[0099] If the value of the number n of action trigger operations is 1, it means that only one action trigger operation for the first attribute affecting action has been received, and by default, the first first segmentation sub-action in the first attribute affecting action of the main control virtual object is displayed.
[0100] 2.2 When n is greater than 1, 2.2.1 In response to the value of the number of action trigger operations n being greater than 1, randomly determine the i-th first segmentation sub-act from the plurality of first segmentation sub-acts.
[0101] If the value of n is greater than 1, it means that an action trigger operation for another attribute-affecting action has been received.
[0102] Optionally, when the number i of the first segmentation sub-act is randomly determined, a random number can be generated as the number i based on a rand function.
[0103] The number of segmentation sub-actions in the first attribute influencing action is set as a number range, and a rand function is used to generate one random number within the number range as number i.
[0104] It should be noted that the manner of randomly determining the number i of the first segmentation sub-action may be any, including but not limited to the above example, and the present embodiment is not limited thereto.
[0105] 2.2.2 In response to the value of the number of times n of the action trigger operation being greater than 1, determine a preset i-th first segmentation sub-act from the plurality of first segmentation sub-acts.
[0106] Optionally, the manner of determining the number i based on the trigger count includes, but is not limited to, several types as follows:
[0107] (1) A designated sequence relationship table is set in advance, and the designated sequence relationship table includes the correspondence between the trigger count and the segmentation sub-action number i, as shown in Table 1 below. [Table 1]
[0108] That is, when the trigger counts for other attribute influencing actions belong to different intervals, the n-th trigger operation for the first attribute influencing action controls the main control virtual object to perform the corresponding segmentation sub-action.
[0109] Optionally, when the trigger number n-1 is 4, when receiving the nth trigger operation for the first attribute affecting action, control the main control virtual object to perform the second first segmentation sub-action, and display corresponding animation content on the current terminal screen.
[0110] The preset trigger count corresponds to the interval in which the numerical value is located, and each interval corresponds to a number. When the trigger count is located in a certain interval, the number corresponding to the interval is selected as the number i of the first segmentation sub-action.
[0111] That is, depending on the number of times n, the i-th first segmentation sub-action can be determined in different ways, thereby improving the diversity of action selection possibilities.
[0112] (2) A designation function is preset, and the designation function is used to perform a weighting calculation between the trigger count and the segmentation number of the segmentation sub-action in the first attribute influencing action, and obtain the number i.
[0113] It should be noted that the manner in which the virtual object displays the i-th first segmentation sub-action based on the number of action trigger operations includes, but is not limited to, the several types described above, and the present embodiment is not limited thereto.
[0114] For example, as shown in FIG. 12, FIG. 12 is a schematic diagram of determining the number i of the first segmentation sub-act based on the trigger period.
[0115] The remainder obtained by the ratio remainder acquisition module 1210 taking the remainder of the ratio between the number of triggers n and the number of segmentations is the number i.
[0116] The correspondence module 1220 obtains the number i according to the correspondence between the trigger number n and the number i, and the correspondence module 1220 includes a random module 1221 and a designated module 1222. Based on the judgment result of the judgment module 1230 on the trigger number n, the random module 1221 or the designated module 1222 is selected to further determine the number i.
[0117] When the trigger count is n=1, the number i is 1 by default, When the trigger number n>1, the random module 1221 generates one random number as the number i, and the designation module 1222 determines the designated number as the number i based on the preset relationship between the trigger number n and the number i.
[0118] In some embodiments, an odd-even result corresponding to the number n is obtained, and the i-th first segmentation sub-action corresponding to the odd-even result is determined from the multiple first segmentation sub-actions based on the segmentation number of the first segmentation sub-action in the first attribute influence action.
[0119] In this embodiment, first, determine the odd / even result corresponding to the number of times of the action trigger operation, that is, include two cases where the number of times n is odd or even; then determine the first segmentation sub-action corresponding to the number of times n as the i-th first segmentation sub-action based on the first segmentation sub-action in the first attribute-influencing action; for example, when the number of times n is even, determine the first segmentation sub-action arranged at the even position from the first attribute-influencing action as the i-th first segmentation sub-action (the second first segmentation sub-action, the fourth first segmentation sub-action, etc.); when the number of times n is odd, The first segmentation sub-action arranged at an odd position from the first attribute influencing action is determined as the i-th first segmentation sub-action (the first first segmentation sub-action, the third first segmentation sub-action, etc.), i.e., in response to the number of times n being an even number, the first segmentation sub-action corresponding to the even number of times from the plurality of first segmentation sub-actions is determined as the i-th first segmentation sub-action, and in response to the number of times n being an odd number, the first segmentation sub-action corresponding to the odd number of times from the plurality of first segmentation sub-actions is determined as the i-th first segmentation sub-action.
[0120] Optionally, when there are multiple even-position / odd-position first segmentation subacts, one first segmentation subact is randomly selected from among them as the i-th segmentation subact.
[0121] In this embodiment, the method of determining the i-th first segmentation sub-action depending on whether the number of times n is odd or even can expand the variety of the method of determining the first segmentation sub-action.
[0122] Step 1020: Display the master control virtual object to execute the i-th first segmentation sub-action in the first attribute affecting action.
[0123] Optionally, the step of indicating that the main control virtual object performs the first segmentation sub-act includes, but is not limited to, several types, such as:
[0124] (1) When n is 1, In response to receiving one trigger operation for the first attribute influencing action, the main control virtual object displays that it is executing a first first segmentation sub-action in the first attribute influencing action.
[0125] The action animation, which receives one action trigger operation for the first attribute-affecting action and displays on the current terminal screen that the main control virtual object is performing the first segmentation sub-action, includes an animation of the main control virtual object performing the segmentation sub-action and an animation of the main control virtual object interacting with other virtual objects in the process of performing the segmentation sub-action.
[0126] (2) When n is an integer greater than 1, In response to receiving n-1 action trigger operations for other attribute influencing actions, the main control virtual object displays that it will perform the other attribute influencing action based on the n-1 trigger operations, and in response to receiving the nth action trigger operation for the first attribute influencing action, the main control virtual object displays that it will perform the i-th first segmentation sub-action in the first attribute influencing action.
[0127] As described above, upon receiving n-1 action trigger operations for other attribute influencing actions, the main control virtual object displays that it will perform other attribute influencing actions; upon receiving the nth action trigger operation for the first attribute influencing action, the main control virtual object displays that it will perform the i-th first segmentation sub-action in the first attribute influencing action based on the n-1 number of action trigger operations for other attribute influencing actions and the numbers of all first segmentation sub-actions existing in the first attribute influencing action, thereby improving the diversity of operation methods and allowing the main control virtual object to control more actions, improving the efficiency of human-computer interaction, and enriching the content on the display screen.
[0128] The method provided in this embodiment determines the i-th first segmentation sub-action corresponding to the nth number of times from the multiple first segmentation sub-actions based on the trigger period of the multiple first segmentation sub-actions in the first attribute influence action, allowing the player to control the main control virtual object to perform the target segmentation sub-action and display the execution action screen in real time, thereby improving the efficiency of human-computer interaction.
[0129] The method provided in this embodiment is to take the remainder of the ratio between the number of segments of the first segmentation sub-action in the first attribute-influencing action and the number of segments, and obtain the value of i of the first segmentation sub-action corresponding to the number of segments n. This provides a switching rule for the segmentation sub-action in the first attribute-influencing action, allowing the player to control the main control virtual object to perform more actions through multiple action trigger operations, thereby improving the efficiency of human-computer interaction.
[0130] The method provided in this embodiment determines the segmentation sub-action number by random selection or preset, and displays that the main control virtual object is performing the segmentation sub-action corresponding to the number, thereby improving the richness of the display content.
[0131] FIG. 13 is a flowchart of a method for counting behavior trigger operations based on a time window requirement provided by one exemplary embodiment of the present application. As shown in FIG. 13, the method includes the following steps:
[0132] Step 1310: In response to receiving the kth action trigger operation, start a countdown timer.
[0133] Here, the countdown timer is a timer whose counting length is the time window requirement, and k is a positive integer smaller than n.
[0134] The kth action trigger operation may be an action trigger operation for any attribute influencing action, and if the received kth action trigger operation is for the first attribute influencing action, it displays that the main control virtual object will perform the i-th first segmentation sub-action in the corresponding order in the first attribute influencing action, and if the received kth action trigger operation is for another attribute influencing action, it displays that the main control virtual object will perform the other attribute influencing action, and displaying that the main control virtual object will perform the attribute influencing action and starting the kth countdown timer are performed simultaneously.
[0135] Optionally, the time window requirement is as follows: the operation time interval between two consecutive received action trigger operations is within 0.5 seconds, that is, the countdown counter's time length is 0.5, and the unit is seconds.
[0136] When an action trigger operation is received, the countdown timer is immediately started and starts counting down from 0.5, and the countdown timer is restarted after waiting until the next action trigger operation is received.
[0137] In some embodiments, the time window requirement and the corresponding clock length may be arbitrary, and the present embodiment is not limited in this regard.
[0138] Step 1320: In response to receiving the k+1th action trigger operation before the countdown timer expires, determine that the time window requirement is met between the kth action trigger operation and the k+1th action trigger operation.
[0139] Illustratively, a countdown timer is used to determine the time interval between two adjacent action trigger operations.
[0140] Optionally, the countdown timer has a time length of 0.5 and is in seconds.
[0141] When the kth action trigger operation is received, a countdown timer is started and starts decrementing from 0.5, and when the k+1th action trigger operation is received before the countdown timer finishes timing, the countdown timer corresponding to the kth action trigger operation stops counting down, and the countdown timer corresponding to the k+1th action trigger operation starts counting down from 0.5.
[0142] That is, an action trigger operation is received again within 0.5 seconds after receiving the kth action trigger operation, and it is determined that the time window requirement is met between the kth action trigger operation and the k+1th action trigger operation.
[0143] The k+1th action trigger operation may be an action trigger operation for any attribute-influencing action, and when the k+1th action trigger operation is received, the display that the main control virtual object is performing the attribute-influencing action and the k+1th countdown timer are started simultaneously.
[0144] In some embodiments, the time window requirement is not met between the kth action triggering operation and the k+1th action triggering operation.
[0145] (1) The time interval between the reception of the kth action trigger operation and the reception of the k+1th action trigger operation exceeds the timing length corresponding to the time window; (2) No action trigger operation is received after the kth action trigger operation is received.
[0146] When the countdown timer corresponding to the kth action trigger operation expires, the countdown timer decrements from 0.5 to 0, and at this time the k+1th action trigger operation has not been received. In this case, the countdown timer is turned off and does not start counting again.
[0147] That is, by having the countdown timer calculate in accordance with the time interval between two adjacent action trigger operations, it is possible to improve whether the time interval between two adjacent action trigger operations complies with the time window requirements, and improve the accuracy of the time interval calculation.
[0148] Step 1330: Count the received action trigger operations by an operation counter, and perform an increment process by 1. The operation counter is used to cumulatively count the action trigger operations that meet the time window requirement.
[0149] Optionally, the countdown timer has a time length of 0.5 and is in seconds.
[0150] When an action trigger operation is received, the operation counter starts counting from the current action trigger operation, and accumulates the action trigger operations that meet the time window requirement and are consecutive, to obtain an accumulated total.
[0151] When the n-th action trigger operation is an action trigger operation for the first attribute influencing action, the obtained cumulative total determines the n-th action trigger operation to control the main control virtual object to perform the i-th first segmentation sub-action in the first attribute influencing action.
[0152] For example, as shown in FIG. 14, FIG. 14 is a schematic diagram in which one operation counter cumulatively counts the action trigger operations that meet the time window requirement.
[0153] On the time axis 1400, the time corresponding to each action trigger operation is recorded, and the unit of the time axis 1400 is seconds. The action trigger operation includes two types: an action trigger operation 1410 for an action affecting another attribute, and an action trigger operation 1420 for an action affecting the first attribute.
[0154] The corresponding time when the first action trigger operation is received is 0, and the corresponding time when the second action trigger operation is received is 0.2. In this case, the countdown interval 1430 between receiving the first action trigger operation and receiving the second action trigger operation is 0.2, which meets the time window requirement. In this case, it means that the second action trigger operation is received before the countdown timer corresponding to the first action trigger operation expires, and the operation counter 1440 cumulatively counts the first and second action trigger operations.
[0155] Similarly, the operation counter 1440 starts counting when it receives the first action trigger operation, the countdown interval 1430 that meets the time window requirements is n-6, and the corresponding action trigger operations are the 1st to n-5th action trigger operations, and in this case, the initial cumulative total of the operation counter 1440 is n-5.
[0156] The countdown interval 1430 between receiving the n-4th action trigger operation and receiving the n-5th action trigger operation is 1.6, which does not meet the time window requirement, in which case the operation counter 1440 stops the cumulative count and clears the cumulative total.
[0157] The operation counter 1440 starts counting again from the n-4th reception of the action trigger operation, and there are only four countdown intervals 1430 that meet the time window requirement, and the corresponding action trigger operations are the n-4th to nth action trigger operations, in this case the cumulative total of the operation counter 1440 is 5.
[0158] That is, the action trigger operation is counted by the operation counter, and an increment process is performed, thereby improving the accuracy of the count.
[0159] As described above, the method provided by the present application accumulates the received action trigger operations that meet the time window requirements, and when the nth action trigger operation for the first attribute influencing action is received, it displays that the main control virtual object will perform the i-th first segmentation sub-action in the first attribute influencing action based on the cumulative addition result and the numbers of all the first segmentation sub-actions existing in the first attribute influencing action, thereby improving the diversity of operation methods and controlling the main control virtual object to perform more actions, thereby improving the efficiency of human-computer interaction and enriching the content on the display screen.
[0160] The method provided in this embodiment starts a countdown timer at the same time as receiving an action trigger operation, so that if the next action trigger operation is received before the countdown timer expires, it is determined that the time window requirement is met between the two action trigger operations, thereby improving the efficiency of human-computer interaction.
[0161] In the method provided by this embodiment, an operation counter counts the received action trigger operations that meet the time window requirements, adds one to the count, and accumulates all action trigger operations that meet the time window requirements to obtain the accumulated total. When an action trigger operation for the first attribute affecting action is received next time, the number of the first segmentation sub-action performed by the main control virtual object can be determined based on the accumulated total, thereby improving the diversity of operation methods, quickly switching between displaying the main control virtual object performing the corresponding attribute affecting action, and improving the efficiency of human-computer interaction.
[0162] In this embodiment, different i-th first segmentation sub-actions are determined based on the corresponding attribute-influencing actions of the action trigger operation, so that the diversity of the determination method for determining the i-th first segmentation sub-action can be expanded.
[0163] In some embodiments, the multiple attribute influencing actions provided in the virtual scene of the master virtual object include, in addition to the first attribute influencing action and other attribute influencing actions, a second attribute influencing action, and the second attribute influencing action also includes multiple second segmentation sub-actions. As shown in Figure 15, Figure 15 is a flowchart of a method for displaying that a virtual object performs an m-th second segmentation sub-action provided by one exemplary embodiment of the present application, the method includes the following steps:
[0164] Step 1510: Display the master control virtual object in the virtual scene.
[0165] This is the same as step 710 above.
[0166] Step 1520: In response to receiving n action trigger operations and the nth action trigger operation being a trigger operation for a first attribute affecting action, display that the main control virtual object is performing the i-th first segmentation sub-action in the first attribute affecting action.
[0167] This is the same as step 720 above.
[0168] Step 1530: In response to receiving the (n+1)th action trigger operation for the second attribute influencing action following the (n)th action trigger operation, based on the arrangement order of the multiple second segmentation sub-actions, display that the main control virtual object will perform the (m)th second segmentation sub-action following the (i)th first segmentation sub-action.
[0169] Here, the mth second segmentation sub-action is associated with the n+1th number of times the action trigger operation is received, and the time window requirement is met between the operation times of the nth and n+1th action trigger operations.
[0170] After controlling the main control virtual object to execute the attribute influencing actions corresponding to the above n action trigger operations, an action trigger operation, i.e., an action trigger operation for the second attribute influencing action, is received again, and the main control virtual object controls to execute and display the second segmentation sub-action in the second attribute influencing action.
[0171] Here, the first attribute influencing action includes a number of first segmentation sub-actions, and the second attribute influencing action includes b number of second segmentation sub-actions.
[0172] Optionally, the step of determining the number m of the second segmentation sub-actions to be performed by the main control virtual object includes, but is not limited to, several kinds of ways, such as:
[0173] (1) accumulating counting all action trigger operations that meet the received time window requirements by an operation counter to obtain a total operation count, and determining a number m according to the total operation count; The n+1th action trigger operation is currently received, and the operation times corresponding to the previous n operations all meet the time window requirements, and the operation times between the nth and n+1th action trigger operations also meet the time window requirements. In this case, the total operation count is n+1, and an operation is performed to take the remainder of the ratio based on the total operation count n+1 and the segmentation number b of the second attribute influencing action, and the obtained remainder is the value of number m.
[0174] If the remainder is 0, it indicates that the master control virtual object executes the last second segmentation sub-action in the second attribute influencing action.
[0175] (2) Determine that the main control virtual object performs the i-th first segmentation sub-action according to the received action trigger operation for the n-th first attribute affecting action, and determine the number m according to the number i.
[0176] After the value corresponding to the number i is incremented by 1, the remainder of the ratio is taken for the segmentation number b, and the obtained remainder is also the value of the number m.
[0177] When the remainder is 0, it indicates that the master control virtual object executes the last second segmentation sub-action in the second attribute influencing action.
[0178] In some embodiments, the time window requirement is not met between the action trigger operation for the second attribute affecting action received for the n+1th time and the action trigger operation received for the nth time, and in this case, the main control virtual object displays that the first second segmentation sub-action in the second attribute affecting action is executed.
[0179] It is worth noting that the method for determining the number m of the second segmentation sub-action performed by the main control virtual object includes, but is not limited to, the several types described above. The method may be a method for randomly determining the number m, or a method for pre-setting a designated sequence relationship table and determining the correspondence between the total operation count n+1 and the number m, and the present embodiment is not limited thereto.
[0180] As described above, the method provided by the present application displays that the main control virtual object will perform other attribute influencing actions when it receives n-1 action trigger operations for other attribute influencing actions; and displays that the main control virtual object will perform the i-th first segmentation sub-action in the first attribute influencing action when it receives the n-1 action trigger operation for the other attribute influencing action and the numbers of all first segmentation sub-actions existing in the first attribute influencing action, thereby improving the diversity of operation methods and controlling the main control virtual object to perform more actions, improving the efficiency of human-computer interaction, and enriching the content on the display screen.
[0181] The method provided by this embodiment analyzes the second attribute influence actions existing in multiple types of attribute influence actions, and displays that after the main control virtual object receives an action trigger operation for other attribute influence actions and the first attribute influence action, when it receives an action trigger operation for the second attribute influence action again if it meets the time window requirement, the main control virtual object will perform the mth second segmentation sub-action in the second attribute influence action, thereby improving the diversity of operation methods, increasing the types of actions that the main control virtual object can perform, enriching the content on the display screen, and improving the efficiency of human-computer interaction.
[0182] FIG. 16 is a structural block diagram of a virtual object display device provided by one exemplary embodiment of the present application. As shown in FIG. 16, the device includes: An object display module 1610 used to display a master control virtual object in a virtual scene, the master control virtual object having a plurality of attribute influence actions in the virtual scene, including a first attribute influence action, and the first attribute influence action includes a plurality of first segmentation sub-actions arranged in sequence; an action display module 1620, which is used to receive n action trigger operations and, in response to the n-th action trigger operation being a trigger operation for the first attribute-affecting action, display that the main control virtual object performs an i-th first segmentation sub-action in the first attribute-affecting action based on the n-th action trigger operation, where the i-th first segmentation sub-action is related to the nth number of times the action trigger operation is received, where n and i are positive integers, and the operation times of the n action trigger operations comply with a time window requirement; The action display module 1620 is further used to, in response to receiving a subsequent action trigger operation for the first attribute-influencing action following the nth action trigger operation, display that the main control virtual object sequentially executes the i-th first segmentation sub-action followed by the multiple first segmentation sub-actions based on the arrangement order of the multiple first segmentation sub-actions, wherein the operation time between the subsequent action trigger operation and the nth action trigger operation complies with the time window requirement, which refers to the time interval between two adjacent action trigger operations being shorter than a predetermined time threshold.
[0183] In one optional embodiment, the behavior display module 1620, as shown in FIG. 17, a determining unit 1621, which is used to receive n action triggering operations, and in response to the n action triggering operations being triggering operations for the first attribute-affecting action, determine an i-th first segmentation sub-action corresponding to the number n from the plurality of first segmentation sub-actions according to trigger periods of the plurality of first segmentation sub-actions in the first attribute-affecting action; and a display unit 1622 for displaying that the master control virtual object performs the i-th first segmentation sub-action of the first attribute influencing action.
[0184] In one optional embodiment, the determination unit 1621 is further used to take the remainder of the ratio between the number of times n and the number of segmentations based on the number of segmentations of the first segmentation sub-action in the first attribute influence action, and obtain the value of i of the first segmentation sub-action corresponding to the number of times n.
[0185] In one optional embodiment, the determination unit 1621 is further used to determine a first first segmentation sub-action corresponding to the number n from the plurality of first segmentation sub-actions in response to the value of the number n of the action trigger operation being 1; to randomly determine an i-th first segmentation sub-action from the plurality of first segmentation sub-actions in response to the value of the number n of the action trigger operation being greater than 1; or to determine a predetermined i-th first segmentation sub-action from the plurality of first segmentation sub-actions in response to the value of the number n of the action trigger operation being greater than 1.
[0186] In one optional embodiment, the determination unit 1621 is further used in the determination unit, and is further used for obtaining an odd / even result corresponding to the number n, and for determining the i-th first segmentation sub-action corresponding to the odd / even result from the plurality of first segmentation sub-actions based on the segmentation number of the first segmentation sub-action in the first attribute influence action.
[0187] In one optional embodiment, the determination unit 1621 is further used to determine, in response to the number of times n being an even number, a first segmentation sub-act corresponding to an even number of times from the plurality of first segmentation sub-acts as the i-th first segmentation sub-act, and to determine, in response to the number of times n being an odd number, a first segmentation sub-act corresponding to an odd number of times from the plurality of first segmentation sub-acts as the i-th first segmentation sub-act.
[0188] In one optional embodiment, the device comprises: a start-up module 1630 adapted to start a countdown timer in response to receiving a kth action trigger operation, the countdown timer having a countdown length equal to the time window requirement, where k is a positive integer less than n; The method further includes a determination module 1640 that, in response to receiving the k+1th action trigger operation before the countdown timer expires, determines that the time window requirement is met between the kth action trigger operation and the k+1th action trigger operation.
[0189] In one optional embodiment, the device comprises: The counting module 1650 further includes a counting module 1650 for counting and incrementing the received action trigger operations by an operation counter, the operation counter being used to cumulatively count action trigger operations that meet the time window requirements.
[0190] In one optional embodiment, the action display module 1620 is further used to display that, in response to receiving one trigger operation for the first attribute influencing action, the main control virtual object performs the first first segmentation sub-action in the first attribute influencing action; or, in response to receiving n-1 action trigger operations for other attribute influencing actions, the main control virtual object performs the other attribute influencing actions based on the n-1 trigger operations; and, in response to receiving the nth action trigger operation for the first attribute influencing action, the main control virtual object performs the i-th first segmentation sub-action in the first attribute influencing action, where n is an integer greater than 1.
[0191] In one optional embodiment, the plurality of attribute influencing actions further includes a second attribute influencing action, and the second attribute influencing action includes a plurality of second segmentation sub-actions arranged in order; The action display module 1620 is further used to, in response to receiving an n+1th action trigger operation for the second attribute-influencing action following the nth action trigger operation, display that the main control virtual object performs the mth second segmentation sub-action following the i-th first segmentation sub-action based on the arrangement order of the plurality of second segmentation sub-actions, where the mth second segmentation sub-action is associated with the n+1th number of times the action trigger operation is received, and the operation times between the nth and n+1th action trigger operations comply with a time window requirement.
[0192] As described above, the device provided by the embodiment of the present application includes: The attribute influence action that can be performed by the main control virtual object is decomposed into multiple segmentation sub-actions, so that the same target control component can correspond to multiple actions, and the types of actions that can be performed by the main control virtual object are increased when the number of control components is limited. Furthermore, for different control components, action trigger operations that meet the time window requirements are performed to switch the numbers of the multiple segmentation sub-actions existing in the target control component, and the virtual object displays that it is performing the segmentation sub-action after switching the number, thereby improving the efficiency of human-computer interaction and enriching the content on the display screen. By triggering multiple control components, the main control virtual object can perform the same attribute influence action, realizing a multi-to-one operation mode and increasing the diversity of user operation modes.
[0193] It is important to note that the virtual object display device provided in the above embodiments is only described by taking the division of the above functional modules as an example, and in actual applications, the above functions can be allocated and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the above-described functions. Furthermore, the virtual object display device provided in the above embodiments is based on the same idea as the embodiment of the virtual object display method, and the specific implementation process thereof is to be referred to in detail in the method embodiment, and a detailed description thereof will be omitted here.
[0194] 18 shows a structural block diagram of a computing device 1800 provided by one exemplary embodiment of the present application. The computing device 1800 may be a smartphone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop, or a desktop personal computer. The computing device 1800 may also be referred to by other names such as a user device, a portable terminal, a laptop terminal, or a desktop terminal.
[0195] Typically, the computing device 1800 includes a processor 1801 and a memory 1802 .
[0196] The processor 1801 may include one or more processing cores, such as a 4-core processor or an 8-core processor. The processor 1801 may be implemented using at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), or a PLA (Programmable Logic Array). The processor 1801 may include a main processor and a coprocessor. The main processor is a processor used to process data in a wake state and is also referred to as a CPU (Central Processing Unit). The coprocessor is a low-power processor used to process data in a standby state. In some embodiments, the processor 1801 may be integrated with a GPU (Graphics Processing Unit), which is used to render and draw content that needs to be displayed on a display screen. In some embodiments, the processor 1801 may further include an AI processor, which is used to process calculation operations related to machine learning.
[0197] The memory 1802 may include one or more computer-readable storage media, which may be non-transitory. The memory 1802 may further include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices or flash memory storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1802 are used to store at least one instruction that is executed by the processor 1801 to implement the method for displaying a virtual object provided by the method embodiments herein.
[0198] In some embodiments, computing device 1800 further includes other assemblies, and those skilled in the art will appreciate that the structure shown in FIG. 18 does not constitute a limitation on terminal 1800, which may include more or fewer assemblies than those shown, or may combine certain assemblies, or may be configured using different assemblies.
[0199] Optionally, the computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a solid-state drive (SSD), an optical disk, or the like. Here, the random access memory may include a resistive random access memory (ReRAM) and a dynamic random access memory (DRAM). The numbers of the above embodiments of the present application are used for description only and do not indicate superiority or inferiority of the embodiments.
[0200] An embodiment of the present application further provides a computer device, the computer device including a processor and a memory, wherein at least one instruction, at least one segment of a program, a code set, or an instruction set is stored in the memory, and the at least one instruction, the at least one segment of a program, the code set, or the instruction set is loaded and executed by the processor to realize the method for displaying a virtual object described in any of the embodiments of the present application.
[0201] An embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores at least one instruction, at least one segment of a program, a code set, or an instruction set, and the at least one instruction, the at least one segment of a program, the code set, or the instruction set is loaded and executed by a processor to realize the method for displaying a virtual object described in any of the embodiments of the present application.
[0202] An embodiment of the present application further provides a computer program product or a computer program, the computer program product or the computer program including computer instructions stored in a computer-readable storage medium, wherein a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method for displaying a virtual object according to any of the embodiments above.
Claims
1. A method for displaying a virtual object, the method being executed by a terminal, the method comprising: Displaying a master control virtual object in a virtual scene, the master control virtual object having a plurality of attribute influence actions in the virtual scene, including a first attribute influence action, the first attribute influence action including a plurality of first segmentation sub-actions arranged in sequence; receiving n action trigger operations, and in response to the n-th action trigger operation being a trigger operation for the first attribute-influencing action, displaying that the main control virtual object executes an i-th first segmentation sub-action in the first attribute-influencing action based on the n-th action trigger operation, wherein the i-th first segmentation sub-action is related to the n-th number of times the action trigger operation is received, where n and i are positive integers, and the operation times of the n action trigger operations comply with a time window requirement, which refers to the time interval between two adjacent action trigger operations being smaller than a preset time threshold; a step of displaying, in response to receiving a subsequent action trigger operation for the first attribute-influencing action following the nth action trigger operation, that the main control virtual object will sequentially execute the plurality of first segmentation sub-actions following the i-th first segmentation sub-action based on the arrangement order of the plurality of first segmentation sub-actions, wherein the operation time between the subsequent action trigger operation and the nth action trigger operation complies with the time window requirement.
2. receiving n action trigger operations, and in response to the n-th action trigger operation being a trigger operation for the first attribute-influencing action, displaying that the main control virtual object executes an i-th first segmentation sub-action in the first attribute-influencing action based on the n-th action trigger operation; receiving n action trigger operations, and in response to the n-th action trigger operation being a trigger operation for the first attribute influencing action, determining an i-th first segmentation sub-action corresponding to the number n from the plurality of first segmentation sub-actions based on trigger periods of the plurality of first segmentation sub-actions in the first attribute influencing action; and displaying that the master control virtual object performs an i-th first segmentation sub-action in the first attribute influencing action.
3. The step of determining an i-th first segmentation sub-action corresponding to the number n from the plurality of first segmentation sub-actions based on trigger periods of the plurality of first segmentation sub-actions in the first attribute-influencing action includes:
3. The method of claim 2, further comprising: taking the remainder of the ratio of the number of times n to the number of segmentations based on the number of segmentations of the first segmentation sub-action in the first attribute influence action, to obtain the value of i of the first segmentation sub-action corresponding to the number of times n.
4. The step of determining an i-th first segmentation sub-action corresponding to the number n from the plurality of first segmentation sub-actions based on trigger periods of the plurality of first segmentation sub-actions in the first attribute-influencing action includes: determining a first first segmentation sub-act corresponding to the number n of times of the action trigger operation from the plurality of first segmentation sub-acts in response to the value of the number n being 1; The method of claim 2, further comprising: randomly determining an i-th first segmentation sub-action from the plurality of first segmentation sub-actions in response to the value of the number of times n of the action trigger operation being greater than 1; or determining a predetermined i-th first segmentation sub-action from the plurality of first segmentation sub-actions in response to the value of the number of times n of the action trigger operation being greater than 1.
5. The step of determining an i-th first segmentation sub-action corresponding to the number n from the plurality of first segmentation sub-actions based on trigger periods of the plurality of first segmentation sub-actions in the first attribute-influencing action includes: obtaining an odd-even result corresponding to the number n; The method of claim 2, further comprising: determining an i-th first segmentation sub-action corresponding to the odd / even result from the plurality of first segmentation sub-actions based on the number of segmentations of the first segmentation sub-actions in the first attribute influencing action.
6. The step of determining an i-th first segmentation sub-action corresponding to the odd / even result from the plurality of first segmentation sub-actions based on the segmentation number of the first segmentation sub-action in the first attribute influencing action includes: In response to the number of times n being an even number, determining a first segmentation subact corresponding to an even number of times from the plurality of first segmentation subacts as the i-th first segmentation subact; The method of claim 5, further comprising: in response to the number n being an odd number, determining a first segmentation subact that corresponds to an odd number of times from the plurality of first segmentation subacts as the i-th first segmentation subact.
7. The method comprises: In response to receiving the kth action trigger operation, starting a countdown timer, the countdown timer having a time length equal to the time window requirement, where k is a positive integer less than n; 7. The method of claim 1, further comprising: in response to receiving a k+1th action trigger operation before the countdown timer expires, determining that the time window requirement is met between the kth action trigger operation and the k+1th action trigger operation.
8. After the step of determining, in response to receiving a k+1th action trigger operation before the countdown timer expires, that the time window requirement is met between the kth action trigger operation and the k+1th action trigger operation, 8. The method of claim 7, further comprising the step of counting received action trigger operations by an operation counter and incrementing the count by one, wherein the operation counter is used to cumulatively count action trigger operations that meet the time window requirement.
9. The step of receiving n action trigger operations and displaying that the main control virtual object executes an i-th first segmentation sub-action in the first attribute influencing action in response to the n-th action trigger operation being a trigger operation for the first attribute influencing action includes: In response to receiving a single trigger operation for the first attribute-influencing action, displaying that the master control virtual object executes a first segmentation sub-action of the first attribute-influencing action; or A method according to any one of claims 1 to 8, comprising the steps of: in response to receiving n-1 action trigger operations for other attribute influencing actions, displaying that the main control virtual object will perform the other attribute influencing actions based on the n-1 trigger operations; and in response to receiving an nth action trigger operation for the first attribute influencing action, displaying that the main control virtual object will perform the i-th first segmentation sub-action in the first attribute influencing action, wherein n is an integer greater than 1.
10. The plurality of attribute influencing actions further includes a second attribute influencing action, and the second attribute influencing action includes a plurality of second segmentation sub-actions arranged in order; The method comprises: The method according to any one of claims 1 to 8, further comprising the step of: in response to receiving an n+1th action trigger operation for the second attribute-influencing action following the nth action trigger operation, displaying that the main control virtual object will perform an mth second segmentation sub-action following the i-th first segmentation sub-action based on the arrangement order of the plurality of second segmentation sub-actions, wherein the mth second segmentation sub-action is associated with the n+1th number of times the action trigger operation has been received, and a time window requirement is met between the operation times of the nth and n+1th action trigger operations.
11. 1. A display device for a virtual object, the device comprising: An object display module used to display a master control virtual object in a virtual scene, the master control virtual object having a plurality of attribute influence actions in the virtual scene, including a first attribute influence action, and the first attribute influence action includes a plurality of first segmentation sub-actions arranged in order; an action display module used to receive n action trigger operations and, in response to the n-th action trigger operation being a trigger operation for the first attribute-influencing action, display that the main control virtual object performs an i-th first segmentation sub-action in the first attribute-influencing action based on the n-th action trigger operation, where the i-th first segmentation sub-action is related to the nth number of times the action trigger operation is received, n and i are positive integers, and the operation times of the n action trigger operations meet a time window requirement, which refers to the time window requirement being that the time interval between two adjacent action trigger operations is smaller than a preset time threshold; The action display module is further used to display, in response to receiving a subsequent action trigger operation for the first attribute-influencing action following the nth action trigger operation, that the main control virtual object will sequentially execute the plurality of first segmentation sub-actions following the i-th first segmentation sub-action based on the arrangement order of the plurality of first segmentation sub-actions, wherein the time window requirement is met between the operation times of the subsequent action trigger operation and the nth action trigger operation, the virtual object display device.
12. a determination unit for receiving n action triggering operations, and in response to the n-th action triggering operation being a triggering operation for the first attribute-affecting action, determining an i-th first segmentation sub-action corresponding to the number n from the plurality of first segmentation sub-actions according to trigger periods of the plurality of first segmentation sub-actions in the first attribute-affecting action; The device according to claim 11 , wherein the display unit is used for displaying that the master control virtual object performs the i-th first segmentation sub-action in the first attribute influencing action.
13. The device of claim 12, wherein the determination unit is further used to take the remainder of the ratio between the number of times n and the number of segmentations based on the number of segmentations of the first segmentation sub-action in the first attribute influence action, and obtain the value of i of the first segmentation sub-action corresponding to the number of times n.
14. 13. The device of claim 12, wherein the determination unit is further used to determine a first first segmentation sub-act corresponding to the number n from the plurality of first segmentation sub-acts in response to the value of the number n of the action trigger operation being 1, to randomly determine an i-th first segmentation sub-act from the plurality of first segmentation sub-acts in response to the value of the number n of the action trigger operation being greater than 1, or to determine a predetermined i-th first segmentation sub-act from the plurality of first segmentation sub-acts in response to the value of the number n of the action trigger operation being greater than 1.
15. The device of claim 12, wherein the determination unit is further used to obtain an odd-even result corresponding to the number n, and to determine the i-th first segmentation sub-action corresponding to the odd-even result from the plurality of first segmentation sub-actions based on the segmentation number of the first segmentation sub-action in the first attribute influence action.
16. The device of claim 12, wherein the determination unit is further used to determine, in response to the number of times n being an even number, a first segmentation subact that corresponds to an even number of times from the plurality of first segmentation subacts as the i-th first segmentation subact, and to determine, in response to the number of times n being an odd number, a first segmentation subact that corresponds to an odd number of times from the plurality of first segmentation subacts as the i-th first segmentation subact.
17. A computer device including a processor and a memory, wherein at least one segment of a program is stored in the memory, and the at least one segment of the program is loaded and executed by the processor to realize the method for displaying a virtual object according to any one of claims 1 to 10.
18. A computer-readable storage medium, wherein at least one segment of a program is stored in the storage medium, and the at least one segment of the program is loaded and executed by a processor to realize the method for displaying a virtual object according to any one of claims 1 to 10.
19. A computer program product, comprising a computer program, which, when executed by a processor, realizes the method for displaying a virtual object according to any one of claims 1 to 10.
Citation Information
Patent Citations
Information processing method, apparatus, and program for implementing information processing method in computer
JP2018153470A
Game program, recording medium, method, and information processing device
JP2019013297A
Game program, method and information processing device
JP2020028652A
Game object control method and device
JP2022529841A