Virtual object control method, device, equipment, and computer program
By displaying a mirrored virtual object and controlling it to interact with another, the method enhances fighting game interaction efficiency and user experience.
Patent Information
- Application Number
- JP2024532485
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-05-31
- Filing Date
- 2023-03-29
- Publication Date
- 2025-09-17
- Estimated Expiration
- 2043-03-29
AI Technical Summary
Existing fighting games limit user interaction with virtual objects to simple actions like fists and feet, leading to low efficiency in man-machine interaction and poor user experience.
A method and device that enable a virtual object to display a mirrored version of itself, allowing it to move and interact with another object by triggering a mirroring interaction control, enhancing interaction efficiency.
Enriches interaction forms between virtual objects, improving man-machine interaction efficiency by enabling more complex and effective user control over virtual objects.
Smart Images

Figure 0007740775000001 
Figure 0007740775000002 
Figure 0007740775000003
Abstract
Description
[Technical Field]
[0001] This application claims priority to a Chinese patent application filed on May 31, 2022, bearing application number 202210611053.1, and entitled "Method, device, equipment and storage medium for controlling virtual objects," the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the field of computer technology, and in particular to a method, device, apparatus and storage medium for controlling a virtual object. [Background technology]
[0003] With the development of media technology and the diversification of terminal functions, the types of games that can be run on terminals are becoming more and more. Fighting games are a popular type of game, which provide users with a virtual scenario in which two users respectively control two virtual objects to fight each other.
[0004] In the related art, a user generally controls a virtual object to fight using fists and feet, that is, in the fighting process, the user can only control the virtual object to attack another virtual object using fists or feet individually, or a combination of fists and feet.
[0005] However, in the related art, the user only controls a single virtual object in a fighting manner, and the user cannot control the virtual object to complete an effective interaction with another virtual object, resulting in low efficiency of man-machine interaction and a poor user game experience. Summary of the Invention [Problem to be solved by the invention]
[0006] The embodiments of the present application provide a method, device, apparatus and storage medium for controlling a virtual object, which can improve the efficiency of man-machine interaction, and the technical solutions are as follows: [Means for solving the problem]
[0007] According to one aspect, there is provided a method for controlling a virtual object, the method comprising: a step of displaying a virtual scenario, in which a first virtual object and a second virtual object are displayed in the virtual scenario, the first virtual object is a virtual object controlled by a terminal, and the second virtual object belongs to a camp different from that of the first virtual object; In response to a trigger operation on a mirroring interaction control, controlling the first virtual object to move in a first direction to display a mirrored virtual object of the first virtual object at a first position in the virtual scenario; controlling the first virtual object to move to the first position in response to a retriggering operation on the mirroring interaction control while the first virtual object is moving in the first direction; controlling the first virtual object and the second virtual object to jointly move to the first position when the first virtual object and the second virtual object come into contact with each other; and controlling the first virtual object to interact with the second virtual object when the first virtual object overlaps the mirrored virtual object.
[0008] According to one aspect, there is provided a virtual object-like control device, the device comprising: a virtual scenario display module that displays a virtual scenario, wherein a first virtual object and a second virtual object are displayed in the virtual scenario, the first virtual object is a virtual object controlled by a terminal, and the second virtual object belongs to a camp different from that of the first virtual object; a first virtual object control module that, in response to a trigger operation on a mirroring interaction control, controls the first virtual object to move in a first direction and displays a mirrored virtual object of the first virtual object at a first position in the virtual scenario; a second virtual object control module that controls the first virtual object and the second virtual object so that they jointly move to the first position when the first virtual object and the second virtual object come into contact with each other; the first virtual object control module further controls the first virtual object to move to the first position in response to a retrigger operation on the mirroring interaction control while the first virtual object is moving in the first direction; The first virtual object control module further controls the first virtual object to interact with the second virtual object when the first virtual object overlaps the mirrored virtual object.
[0009] According to one aspect, a computer device is provided, the computer device including one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to realize the method for controlling the virtual object.
[0010] According to one aspect, a computer-readable storage medium is provided, the computer-readable storage medium storing at least one computer program, the computer program being read and executed by a processor to realize the method for controlling a virtual object.
[0011] According to one aspect, there is provided a computer program product or a computer program which, when executed by a processor, implements the above-described method for controlling a virtual object. [Effects of the Invention]
[0012] According to the technical solution provided by the embodiments of the present application, a virtual scenario includes a first virtual object and a second virtual object. By triggering a mirroring interaction control, the first virtual object can be controlled to move in a first direction, and a mirrored virtual object of the first virtual object can be displayed in the virtual scenario. During the movement of the first virtual object, in response to a re-triggering operation on the mirroring interaction control, the first virtual object is controlled to move to a position where the mirrored virtual object is located. When the first virtual object and the second virtual object come into contact with each other, the first virtual object and the second virtual object are controlled to jointly move to a position where the mirrored virtual object is located. When the first virtual object overlaps with the mirrored virtual object, the first virtual object is controlled to interact with the second virtual object. By installing a mirrored virtual object, the interaction form between the first virtual object and the second virtual object is enriched, and the user can effectively interact with the second virtual object using the mirrored virtual object, thereby improving the efficiency of man-machine interaction. [Brief explanation of the drawings]
[0013] [Figure 1] 1 is a schematic diagram of an implementation environment of a virtual object control method provided by an embodiment of the present application; [Figure 2] 1 is a flowchart of a method for controlling a virtual object provided by an embodiment of the present application; [Figure 3] 1 is a flowchart of another virtual object control method provided by an embodiment of the present application; [Figure 4] FIG. 1 is a schematic diagram of one hypothetical scenario provided by an embodiment of the present application. [Figure 5] FIG. 1 is a schematic diagram of another hypothetical scenario provided by an embodiment of the present application. [Figure 6] FIG. 1 is a schematic diagram of another hypothetical scenario provided by an embodiment of the present application. [Figure 7] FIG. 1 is a schematic diagram of another hypothetical scenario provided by an embodiment of the present application. [Figure 8] FIG. 1 is a schematic diagram of another hypothetical scenario provided by an embodiment of the present application. [Figure 9] 1 is a flowchart of another virtual object control method provided by an embodiment of the present application; [Figure 10] FIG. 2 is a structural schematic diagram of a control device for a virtual object provided by an embodiment of the present application; [Figure 11] 1 is a structural schematic diagram of a terminal provided by an embodiment of the present application; [Figure 12] FIG. 2 is a structural schematic diagram of a server provided by an embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION
[0014] In order to make the objectives, technical solutions and advantages of the present application more comprehensible, the following detailed description of the embodiments of the present application is provided in conjunction with the drawings.
[0015] In this application, terms such as "first" and "second" are used to distinguish between identical or similar items that have essentially the same actions and functions, and there is no logical or temporal dependency between "first," "second," and "nth," and there are no limitations on the number or execution order.
[0016] Virtual scenario: A virtual scenario displayed (or provided) when an application program is executed on a terminal. The virtual scenario may be a simulation environment of the real world, a semi-simulated semi-virtual virtual environment, or even a fully virtual virtual environment. The virtual scenario may be any one of a 2D virtual scenario, a 2.5D virtual scenario, or a 3D virtual scenario, and the embodiments of the present application do not limit the dimension of the virtual scenario. For example, the virtual scenario may include sky, land, sea, etc., and the land may include environmental elements such as deserts and cities, and the user controls virtual objects to move in the virtual scenario. In fighting games, the virtual scenario is also called a virtual fighting scenario.
[0017] Virtual object: An object that can move in a virtual scenario. The moveable object can be a virtual person, a virtual animal, a cartoon character, etc., such as a person, an animal, a plant, a drum, a wall, a stone, etc. that appears in the virtual scenario. The virtual object can be a virtual elephant that represents the user in the virtual scenario. A virtual scenario includes multiple virtual objects, and each virtual object has its own shape and volume and occupies a portion of the space in the virtual scenario.
[0018] Optionally, the virtual object is a user character controlled by operation on a client, or an artificial intelligence (AI) placed in a virtual scenario battle through training, or a non-player character (NPC) placed in the virtual scenario. Optionally, the virtual object is a virtual person competing in the virtual scenario. Optionally, the number of virtual objects participating in interaction in the virtual scenario is preset or dynamically determined based on the number of clients joining the interaction.
[0019] Here, all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, data for storage, data for display, etc.) and signals related to this application have been obtained with permission from the user or sufficient permission from various parties, and the collection, use and processing of related data must comply with the laws, regulations and standards of relevant countries and regions.
[0020] The implementation environment of the technical solutions provided in the embodiments of this application will be introduced below.
[0021] FIG. 1 is a schematic diagram of an implementation environment of a virtual object control method provided by an embodiment of the present application. Referring to FIG. 1, the implementation environment includes a terminal 110 and a server 140 .
[0022] The terminal 110 is connected to the server 140 via a wireless or wired network. Optionally, the terminal 110 may be, but is not limited to, a smartphone, a tablet, a laptop, a desktop computer, a smart watch, etc. An application program supporting the display of virtual scenarios is installed and executed on the terminal 110.
[0023] The server 140 may be an independent physical server, a server cluster consisting of multiple physical servers, a distributed system, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), big data, and artificial intelligence platforms. The server 140 provides background services to application programs running on the terminals 110.
[0024] Optionally, the number of terminals 110 and servers 140 may be multiple.
[0025] After introducing the implementation environment of the embodiment of the present application, the application scenario of the embodiment of the present application will be introduced below. In the following description process, the terminal is the terminal 110 in the above implementation environment, and the server is the above server 140.
[0026] The technical solutions provided by the embodiments of the present application are applicable to fighting games, in which a terminal displays a virtual scenario, in which the terminal controls a first virtual object, and the first virtual object and a second virtual object fight in the virtual scenario. The terminal can control the first virtual object to directly attack the second virtual object using a fist or a virtual prop in the virtual scenario, and can also control the first virtual object to attack the second virtual object by releasing a virtual skill in the virtual scenario. In the virtual scenario, both the first virtual object and the second virtual object have health points, and if the health points of either virtual object are 0, the virtual object is defeated by an enemy. When a virtual object is hit by an attack, the health points of the virtual object decrease, and being attacked includes direct attacks using a fist or a virtual prop, as well as attacks using a virtual skill. When a mirroring interaction control displayed on the terminal is triggered, the terminal displays a mirrored virtual object of the first virtual object in the virtual scenario, the mirroring interaction control is also called a skill control, and the mirroring interaction control controls the first virtual object to release a virtual skill in the virtual scenario, and the terminal controls the mirrored virtual object to interact with the second virtual object, i.e., to launch an attack on the second virtual object.
[0027] It should be noted that the rendering of the virtual scenario may be completed by the terminal or by the server, and the embodiments of the present application are not limited thereto.
[0028] After introducing the implementation environment and application scenario of the embodiments of the present application, the following describes a method for controlling a virtual object provided by the embodiments of the present application. In the following description of the technical solution provided by the present application, a terminal is used as an execution entity. In other possible embodiments, a terminal and a server may jointly execute the technical solution provided by the present application, and the embodiments of the present application do not limit the type of the execution entity. Referring to FIG. 2, taking the execution entity as a terminal as an example, the method includes the following steps:
[0029] 201: A terminal displays a virtual scenario, in which a first virtual object and a second virtual object are displayed, the first virtual object is a virtual object controlled by the terminal, and the second virtual object belongs to a different camp from the first virtual object.
[0030] The virtual scenario is also called a virtual combat scenario. In a possible embodiment, the virtual scenario has four boundaries: top, bottom, left, and right, and virtual objects in the virtual scenario move freely within the four boundaries. The first virtual object is a virtual object controlled by the terminal, and the second virtual object is a virtual object controlled by another terminal or an AI, although the embodiments of the present application are not limited thereto. If the second virtual object and the first virtual object belong to different camps, it indicates that the second virtual object and the first virtual object are in an antagonistic relationship in the virtual scenario, and the first virtual object and the second virtual object can interact with each other, i.e., attack each other, in the virtual scenario.
[0031] 202: In response to a trigger operation on the mirroring interaction control, the terminal controls the first virtual object to move in a first direction and displays a mirrored virtual object of the first virtual object at a first position in the virtual scenario.
[0032] A mirrored interaction control is displayed on the terminal, and the mirrored interaction control is a skill control of the first virtual object, and triggering the mirrored interaction control can control the first virtual object to release a virtual skill in the virtual scenario. The display position of the mirrored interaction control can be set by a technician or a user according to the actual situation, and is not limited thereto in the embodiments of the present application.
[0033] The first direction is set by an engineer according to the actual situation. For example, the first direction may be set in the front direction of the first virtual object, or above the first virtual object, or behind the first virtual object, etc., and the embodiments of the present application are not limited thereto.
[0034] The first position is set by an engineer according to the actual situation. For example, the first position is a position where a first virtual object faces, and the distance between the first position and the first virtual object is a predetermined distance. For example, the first position is related to a contact position, and the contact position is a position where the first virtual object and the second virtual object contact, and the distance between the first position and the contact position is a predetermined distance. For example, the first position is a position where the first virtual object is located. For example, the first position is a predetermined position in the virtual scenario, but the embodiments of the present application are not limited thereto.
[0035] A mirrored virtual object of a first virtual object is an alter ego of the first virtual object, and the mirrored virtual object has the same outer shape as the first virtual object.
[0036] 203: In the process of the first virtual object moving in the first direction, in response to a re-trigger operation on the mirroring interaction control, the terminal controls the first virtual object to move to the first position.
[0037] The mirroring interaction control has two layers of functions, the first layer being a function of controlling the first virtual object to move in the first direction, the second layer being a function of controlling the first virtual object to move to a position where the mirrored virtual object is located, and the function of the second layer being triggered only when the function of the first layer is realized.
[0038] 204: When the first virtual object and the second virtual object come into contact with each other, the terminal controls the first virtual object and the second virtual object to jointly move to the first position.
[0039] The first virtual object and the second virtual object come into contact, i.e., the model of the first virtual object comes into contact with the model of the second virtual object, and the first virtual object and the second virtual object move together to the first location, i.e., the second virtual object is "carried" by the first virtual object to the location where the mirrored virtual object is located.
[0040] 205: When the first virtual object overlaps with the mirrored virtual object, the terminal controls the first virtual object to interact with the second virtual object.
[0041] Controlling the first virtual object to interact with the second virtual object means controlling the first virtual object to spontaneously interact with the second virtual object, for example, to attack the second virtual object.
[0042] In a possible embodiment, when a first virtual object overlaps with a mirrored virtual object and the distance between a second virtual object and the mirrored virtual object meets a first distance condition, the terminal controls the first virtual object to interact with the second virtual object.
[0043] The distance between the second virtual object and the mirrored virtual object meets the first distance condition when the distance between the second virtual object and the mirrored virtual object is less than or equal to a first distance threshold. The first distance threshold is set by a technician according to the actual situation. For example, the first distance threshold may be set to two or three heights, and the embodiments of the present application are not limited thereto.
[0044] According to the technical solution provided by the embodiments of the present application, a virtual scenario includes a first virtual object and a second virtual object. When the mirroring interaction control is triggered, the first virtual object is controlled to move in a first direction, and a mirrored virtual object of the first virtual object is displayed in the virtual scenario. During the movement of the first virtual object, in response to a re-triggering operation on the mirroring interaction control, the first virtual object is controlled to move to a position where the mirrored virtual object is located. When the first virtual object and the second virtual object come into contact with each other, the first virtual object and the second virtual object are controlled to jointly move to a position where the mirrored virtual object is located. When the first virtual object overlaps with the mirrored virtual object, the first virtual object is controlled to interact with the second virtual object. By installing a mirrored virtual object, the interaction form between the first virtual object and the second virtual object is enriched, and the user can effectively interact with the second virtual object using the mirrored virtual object, thereby improving the efficiency of man-machine interaction.
[0045] The above steps 201 to 205 are a brief introduction to the virtual object control method provided in the embodiments of the present application. Below, we will combine several examples to more clearly explain the virtual object control method provided in the embodiments of the present application. Refer to FIG. 3 . Taking the execution body as a terminal as an example, the method includes the following steps:
[0046] 301: A terminal displays a virtual scenario, in which a first virtual object and a second virtual object are displayed, the first virtual object is a virtual object controlled by the terminal, and the second virtual object belongs to a different camp from the first virtual object.
[0047] A virtual scenario is also called a virtual fighting scenario, and the virtual fighting scenario is the background of a fighting game. Virtual objects can fight in the virtual scenario, and fighting is an interaction between two virtual objects, and the two virtual objects can fight in the form of fists, kicks, virtual props, virtual skill releases, etc.
[0048] The second virtual object and the first virtual object belong to different camps, meaning that the second virtual object and the first virtual object are in an antagonistic relationship in the virtual scenario and can interact with each other, i.e., fight. In the virtual scenario, the first virtual object and the second virtual object each have a predetermined number of initial health points. During the interaction between the first virtual object and the second virtual object, the health points of the first virtual object and the second virtual object continuously decrease. The initial health points of the first virtual object may be the same as or different from those of the second virtual object, although this is not limited to the embodiments of the present application. When the health points of one virtual object drop to a target value, such as 0, the virtual object is defeated by the other virtual object. Health points are also referred to as life points or hit points. The first virtual object is selected by the user before the virtual scenario is loaded.
[0049] In a possible embodiment, in the virtual scenario, the first virtual object always faces the second virtual object, and the orientation of the second virtual object always faces the first virtual object, i.e., when the relative positions of the first virtual object and the second virtual object change, the first virtual object and the second virtual object always face each other. Of course, when an interaction is performed, the orientations of the first virtual object and the second virtual object do not change, and when the interaction ends, the orientations are automatically adjusted.
[0050] In a possible embodiment, in response to a user starting a competitive match, the terminal displays a virtual scenario of the competitive match, in which the first virtual object and the second virtual object are displayed in the virtual scenario, and the first virtual object and the second virtual object are displayed on either side of the virtual scenario. One competitive match is a fighting game, and the virtual scenario displayed on the terminal may be a complete virtual scenario or a part of a virtual scenario. When the virtual scenario displayed on the terminal is a part of a virtual scenario, the virtual scenario displayed on the terminal moves as the first virtual object moves, for example, the first virtual object is always displayed on the left side of the virtual scenario.
[0051] In one possible embodiment, the terminal further displays a plurality of controls that control the behavior of the first virtual object in the virtual scenario, and the user clicks or drags the controls to control the first virtual object. For example, the plurality of controls are divided into movement controls and interaction controls. The movement controls control the movement of the first virtual object in the virtual scenario, for example, controlling the first virtual object to move left, move right, crouch, and jump in the virtual scenario. The interaction controls control the first virtual object to use virtual skills to attack and capture enemies in the virtual scenario.
[0052] 4, a virtual scenario 400 is displayed on a terminal, and a first virtual object 401 and a second virtual object 402 are displayed in the virtual scenario, and a movement control 403, a movement control 404, and an interaction control 405 are further displayed on the terminal. In a possible embodiment, a user controls the first virtual object 401 to move in the virtual scenario 400 by dragging the movement control 403, and controls the first virtual object 401 to jump in the virtual scenario 400 by clicking the movement control 404.
[0053] 302: In response to a trigger operation on the mirroring interaction control, the terminal controls the first virtual object to move in a first direction and displays a mirrored virtual object of the first virtual object at a first position in the virtual scenario.
[0054] A mirrored interaction control is displayed on the terminal, and the mirrored interaction control is a skill control of the first virtual object. The mirrored interaction control belongs to the above-mentioned interaction control. Triggering the mirrored interaction control can control the first virtual object to release a virtual skill in the virtual scenario. The display position of the mirrored interaction control is set by a technician or a user according to the actual situation, and is not limited to this embodiment. The first direction is set by a technician according to the actual situation. For example, the first direction can be set in front of the first virtual object, above the first virtual object, or behind the first virtual object, and is not limited to this embodiment. The first position can be the position where the first virtual object is located when the mirrored interaction control is triggered, or another position in the virtual scenario, and is not limited to this embodiment.
[0055] Hereinafter, a method for controlling a first virtual object so that the terminal moves in a first direction in response to a trigger operation on a mirroring interaction control will be described.
[0056] In one possible embodiment, in response to a click operation on the mirrored interaction control, the terminal controls the first virtual object to move in the first direction. If the mirrored interaction control is a skill control of the first virtual object, clicking the mirrored interaction control controls the first virtual object to release a corresponding virtual skill in the virtual scenario, and one effect of the virtual skill is that the first virtual object moves toward the first direction. For example, referring to FIG. 4, in response to a click operation on the mirrored interaction control 4051, the terminal controls the first virtual object 401 to move in the first direction.
[0057] Here, the click operation described in the above embodiment includes a click operation on a touch screen and a click operation using an external device such as a mouse, but the examples of the present application are not limited thereto.
[0058] For example, the first direction is the front direction of the first virtual object, and in response to a click operation on the mirroring interaction control, the terminal controls the first virtual object to move in the front direction. When the first virtual object moves in the front direction, the movement patterns include running, jumping, and flying kicking, which are not limited to the embodiments of the present application.
[0059] In a possible embodiment, the distance the first virtual object moves in the first direction is a target distance, i.e., the distance the first virtual object automatically moves after clicking the mirroring interaction control is the target distance, and when the distance the first virtual object automatically moves reaches the target distance, the first virtual object stops moving. The target distance can be set by a technician according to actual circumstances, and the embodiments of the present application are not limited thereto.
[0060] Hereinafter, a method will be described in which, in response to a trigger operation on a mirroring interaction control, the terminal displays a mirrored virtual object of the first virtual object at a first position in the virtual scenario.
[0061] A mirrored virtual object of a first virtual object is an alter ego of the first virtual object, and the mirrored virtual object has the same external shape as the first virtual object. For example, if the first virtual object has a virtual prop, the mirrored virtual prop also has the same virtual prop. In a possible embodiment, the transparency of the mirrored virtual object is different from that of the first virtual object, allowing a user to quickly distinguish between the mirrored virtual object and the first virtual object based on the transparency, thereby improving the efficiency of human-machine interaction. After the terminal displays the mirrored virtual object of the first virtual object at the first position, the position of the mirrored virtual object is fixed at the first position, i.e., the position of the mirrored virtual object does not change. In a possible embodiment, the mirrored virtual object is also called an alter ego of the first virtual object, and in this case, the first virtual object may also be called the main body.
[0062] In a possible embodiment, in response to a trigger operation on the mirroring interaction control, the terminal loads a model of the mirrored virtual object and renders the model of the mirrored virtual object at the first position, thereby displaying the mirrored virtual object at the first position. For example, referring to Fig. 5, a first virtual object 501 moves forward and generates a mirrored virtual object 502 at its location.
[0063] In a possible embodiment, when the terminal displays the mirrored virtual object at the first position, it may use a direct display form or a gradient display form, and the embodiments of the present application are not limited thereto.
[0064] In a possible embodiment, after triggering the mirroring interaction control, the terminal can directly display a mirrored virtual object of the first virtual object, and can further display a mirrored virtual object of the first virtual object after the first virtual object and the second virtual object come into contact with each other, which is not limited to the embodiments of the present application.
[0065] Here, after the above step 302, the terminal may execute the following steps 303 to 304, or may execute the following steps 305 to 307, which the embodiment of the present application is not limited to.
[0066] 303: In the process of the first virtual object moving in the first direction, in response to a re-trigger operation on the mirroring interaction control, the terminal controls the first virtual object to move to the first position.
[0067] In one possible embodiment, in response to a click operation on the mirroring interaction control again while the first virtual object is moving in the first direction, the terminal controls the first virtual object to move to the first position, i.e., the first virtual object moves to the first position, i.e., moves to the mirrored virtual object of the first virtual object.
[0068] For example, referring to FIG. 6 , in the process of the first virtual object moving in the first direction, in response to a re-click operation on the mirroring interaction control, the terminal controls the first virtual object 601 to move to the first position, i.e., controls the first virtual object 601 to move to the position where the mirroring virtual object 602 is located.
[0069] In one possible embodiment, after the first virtual object makes contact with the second virtual object for the first time while the first virtual object is moving in the first direction, the terminal controls the first virtual object to continue moving in the first direction, the terminal controls the second virtual object to maintain the second virtual object at its current position, and in response to another click operation on the mirroring interaction control, the terminal controls the first virtual object to move to the first position.
[0070] The contact between the first virtual object and the second virtual object refers to the contact between a model of the first virtual object and a model of the second virtual object. In a possible embodiment, an invisible collision detection box is bound to the model of the first virtual object and the model of the second virtual object, and the device can determine whether the model of the first virtual object and the model of the second virtual object contact each other using the collision detection box. In a possible embodiment, the contact between the first virtual object and the second virtual object indicates that a virtual skill triggered by the mirrored interaction control is enabled. In a possible embodiment, the contact between the first virtual object and the second virtual object represents one of the interaction modes between the first virtual object and the second virtual object or one of the modes in which the first virtual object attacks the second virtual object in the virtual scenario, and the contact between the first virtual object and the second virtual object reduces the health points of the second virtual object. The mirroring interaction control controls the first virtual object to move to the first position.
[0071] From the user's perspective, after the first virtual object and the second virtual object come into contact, the first virtual object continues to move "through" the second virtual object, and the second virtual object is "bound" to its current position. In a possible embodiment, the period during which the terminal controls the second virtual object to keep it at its current position is a first period, which is set by a technician according to the actual situation, and the embodiments of the present application are not limited thereto.
[0072] In a possible embodiment, if no trigger operation on the mirrored interaction control is detected within the target period, the terminal cancels the display of the mirrored virtual object.
[0073] 304: When the first virtual object and the second virtual object come into contact with each other, the terminal controls the first virtual object and the second virtual object to jointly move to the first position.
[0074] Controlling the second virtual object and the first virtual object to move jointly to the first position refers to controlling the second virtual object and the first virtual object to move to the first position at the same speed and in the same direction, that is, the second virtual object and the first virtual object overlap each other while moving jointly to the first position.
[0075] In the process of moving to the first position, the first virtual object may or may not come into contact with the second virtual object, because the timing at which the first virtual object moves to the first position depends on the timing of re-triggering the mirroring interaction control. If the timing of the second triggering of the mirroring interaction control is correct, the first virtual object can come into contact with the second virtual object when moving to the first position. If the timing of the second triggering of the mirroring interaction control is incorrect, the first virtual object cannot come into contact with the second virtual object when moving to the first position. The correct timing and the incorrect timing are set by engineers according to actual situations, and are not limited thereto in the embodiments of the present application. For example, referring to FIG. 7, when the first virtual object 701 and the second virtual object 702 come into contact with each other, the first virtual object 701 and the second virtual object 702 are controlled to move together to the first position, that is, the first virtual object 701 and the second virtual object 702 are controlled to move together to the position where the mirroring virtual object 703 is located.
[0076] In one possible embodiment, when the first virtual object and the second virtual object come into contact with each other, the terminal displays a movement control that controls the first virtual object to move to the first position, and in response to a trigger operation on the movement control, the terminal controls the first virtual object and the second virtual object to jointly move to the first position.
[0077] In one possible embodiment, when the first virtual object and the second virtual object come into contact with each other while the first virtual object is moving to the first position, the terminal determines the state of the second virtual object. If the second virtual object is not in the second state, the terminal controls the first virtual object and the second virtual object to move together to the first position. The second state is also called a defense state or a block state. If the first virtual object and the second virtual object come into contact with each other and the second virtual object is not in the second state, the virtual skill of the mirrored interaction control successfully hits the second virtual object, and the second virtual object is "carried" by the first virtual object to the location of the mirrored virtual object.
[0078] When the above two embodiments are combined, after the terminal determines that the first virtual object and the second virtual object have come into contact with each other, it can further determine the state of the second virtual object. Only if the state of the second virtual object is not the second state can it control the first virtual object and the second virtual object to move together to the first position. That is, only if the virtual skill corresponding to the mirroring interaction control successfully hits the second virtual object, the terminal displays a movement control and controls the first virtual object and the second virtual object to move together to the first position.
[0079] The above step 304 is described as an example in which the first virtual object and the second virtual object come into contact with each other. In other possible embodiments, the first virtual object and the second virtual object do not come into contact with each other. The following describes the non-contact situation.
[0080] In a possible embodiment, if the first virtual object and the second virtual object are not in contact with each other, the terminal controls the first virtual object to move to the first position, and if the first virtual object overlaps with the mirrored virtual object, cancels the display of the mirrored virtual object.
[0081] In a possible embodiment, if the first virtual object and the second virtual object are not in contact, the terminal controls the first virtual object to keep it at its current position.
[0082] The above embodiment provides a punishment method, in which if the first virtual object does not successfully contact the second virtual object, the terminal will hold the first virtual object at its current position, and the holding time is set by a technician according to the actual situation, which is not limited in the embodiments of the present application. If the holding time continues, the first virtual object cannot move in the virtual scenario.
[0083] 305: When the first virtual object comes into contact with the second virtual object while the first virtual object is moving in the first direction, the terminal controls the first virtual object to move to a second position in the virtual scenario, and the second virtual object is positioned between the first position and the second position.
[0084] In a possible embodiment, the second position is associated with the position of the second virtual object in the virtual scenario, and the distance between the second position and the position of the second virtual object in the virtual scenario is less than or equal to a second distance threshold, i.e., the second position is near the second virtual object. The second distance threshold is set by an engineer according to actual circumstances, and the embodiments of the present application are not limited thereto. The second virtual object is located between the first position and the second position. When the first position is on the left side of the virtual scenario, the second position is on the right side of the virtual scenario. When the second virtual object faces the left side of the virtual scenario, the second position is behind the second virtual object. For example, referring to FIG. 4, the first virtual object 401 is located behind the second virtual object 402.
[0085] In one possible embodiment, when the first virtual object and the second virtual object come into contact with each other while the first virtual object is moving in the first direction, the terminal determines the state of the second virtual object. If the second virtual object is not in the second state, the terminal controls the first virtual object to move to the second position in the virtual scenario, where the second state is also called a defense state or a block state. When the second virtual object is in the second state, the first virtual object cannot successfully interact with the second virtual object, i.e., the first virtual object's attack is ineffective against the second virtual object. When the first virtual object moves to the second position, the second virtual object is in an immovable state. When the orientation of the first virtual object is toward the second virtual object and the orientation of the second virtual object is toward the first virtual object, the first virtual object and the second virtual object come into contact with each other and the second virtual object is not in the second state, the terminal controls the first virtual object to move behind the second virtual object. When the second virtual object is in the second state, the terminal does not control the first virtual object to move to the second position, interrupts the process of the first virtual object moving in the first direction, and determines the final position of the first virtual object to be the position where the first virtual object comes into contact with the second virtual object.
[0086] In this embodiment, after determining that the first virtual object and the second virtual object have come into contact, the device can further determine the state of the second virtual object. Only if the state of the second virtual object is not the second state, can the device control the first virtual object to move to the second position. From the user's perspective, when the first virtual object moves to the second position, it indicates that the virtual skill corresponding to the mirroring interaction control has been successfully triggered, improving the efficiency of human-machine interaction. Furthermore, the second state provides the second virtual object with a way to counterattack the first virtual object, preventing the game from being unbalanced due to the virtual skill being too powerful.
[0087] To more clearly explain the above embodiment, the following describes an embodiment in which the terminal controls the first virtual object to move to the second position in the virtual scenario.
[0088] Mode 1: The terminal controls the first virtual object so that the first virtual object reaches the second position from a position where it makes contact with the second virtual object, over the second virtual object.
[0089] In this embodiment, the terminal controls the first virtual object to reach the second position along a specific trajectory, and the movement process of the first virtual object is smooth. For example, when the first virtual object and the second virtual object are in contact with each other and the second virtual object is not in the second state, the terminal generates a first trajectory starting from the contact position between the first virtual object and the second virtual object, and the first trajectory is a trajectory that extends from the starting point, passes over the second virtual object, and reaches the second position. The terminal controls the first virtual object to reach the second position along the first trajectory.
[0090] Mode 2: The terminal controls the first virtual object to reach the second position by passing directly through the second virtual object.
[0091] In this manner, the terminal controls the first virtual object to move the shortest distance, and the first virtual object reaches the second position at a fast speed, thereby improving the efficiency of human-machine interaction.
[0092] Mode 3: The terminal controls the position of the first virtual object so that the first virtual object moves from a position where it makes contact with the second virtual object directly to the second position.
[0093] In this manner, the terminal controls the first virtual object to disappear at the touch position and then directly appear at the second position, thereby achieving the highest position conversion efficiency of the first virtual object.
[0094] Here, the terminal may control the first virtual object moving to the second position in any one of the above ways, and the embodiments of the present application are not limited thereto.
[0095] In a possible embodiment, when the first virtual object is equipped with a virtual prop, the terminal controls the first virtual object to use the equipped virtual prop to interact with the second virtual object when the first virtual object and the second virtual object come into contact with each other, i.e., to attack the second virtual object using the virtual prop. If the first virtual object successfully interacts with the second virtual object using the virtual prop, the terminal moves the first virtual object to the second position, and if the first virtual object does not successfully interact with the second virtual object using the virtual prop, the terminal does not move the first virtual object to the second position. Whether the first virtual object successfully interacts with the second virtual object using the virtual prop depends on whether the second virtual object is in the second state. If the second virtual object is in the second state, the first virtual object cannot successfully interact with the second virtual object using the virtual prop; if the second virtual object is not in the second state, the first virtual object can successfully interact with the second virtual object using the virtual prop.
[0096] 306: The terminal controls the first virtual object to interact with the second virtual object at the second location.
[0097] The first virtual object interacting with the second virtual object at the second location may attack the second virtual object at the second location. The purpose of the first virtual object interacting with the second virtual object at the second location is to change the location of the second virtual object. In one possible embodiment, the purpose of the interaction further includes reducing the health points of the second virtual object.
[0098] In a possible embodiment, when the first virtual object is equipped with a virtual prop, the terminal controls the first virtual object to interact with the second virtual object using the virtual prop at the second position, i.e., to attack the second virtual object using the virtual prop at the second position, for example, the terminal controls the first virtual object to swing the virtual prop at the second position at the second position at the second virtual object, or to attack the second virtual object in the manner of a "flying kick" at the second position.
[0099] Here, in the embodiment of the present application, the terminal simply controls a first virtual object to interact with a second virtual object at a second location as an example, and in other embodiments, the terminal may not perform step 306.
[0100] 307: The terminal controls the first virtual object and the second virtual object to jointly move to the first position.
[0101] The first position is a position where the terminal displays a mirroring virtual object of the first virtual object, and controlling the second virtual object to move to the first position means controlling the second virtual object to move to a position where the mirroring virtual object is located.
[0102] In a possible embodiment, the terminal generates a second trajectory based on the current position of the second virtual object and the first position, with the start point of the second trajectory being the current position of the second virtual object and the end point being the first position. The terminal controls the second virtual object to move to the first position along the second trajectory. The function for generating a trajectory based on two positions is set by an engineer according to actual circumstances, and the embodiments of the present application are not limited thereto. When the second virtual object moves to the first position along the second trajectory, the geometric center of the model of the second virtual object is always located on the second trajectory.
[0103] 308: When the first virtual object overlaps with the mirrored virtual object and the distance between the second virtual object and the mirrored virtual object meets a first distance condition, the terminal controls the first virtual object to interact with the second virtual object.
[0104] The first virtual object overlapping with the mirroring virtual object means that the model of the first virtual object and the model of the mirroring virtual object overlap.
[0105] In a possible embodiment, when the first virtual object overlaps with the mirrored virtual object and the distance between the second virtual object and the mirrored virtual object is equal to or less than a first distance threshold, the terminal interacts with the second virtual object, i.e., attacks the second virtual object, for example, controls the first virtual object to attack the second virtual object using a virtual prop.
[0106] For example, referring to FIG. 8 , when the first virtual object 801 overlaps with the mirrored virtual object and the distance between the second virtual object 802 and the mirrored virtual object meets a first distance condition, the terminal controls the first virtual object 801 to interact with the second virtual object 802.
[0107] In a possible embodiment, when the first virtual object overlaps with the mirrored virtual object and the distance between the second virtual object and the mirrored virtual object is equal to or less than a first distance threshold, the terminal controls the mirrored virtual object and the first virtual object to simultaneously interact with the second virtual object.
[0108] In this embodiment, the terminal controls the mirrored virtual object and the first virtual object to simultaneously interact with the second virtual object, i.e., to simultaneously attack the second virtual object, thereby providing the user with more diverse attack forms and improving the efficiency of man-machine interaction.
[0109] In a possible embodiment, when the first virtual object overlaps with the mirrored virtual object and the distance between the second virtual object and the mirrored virtual object meets a first distance condition, the terminal controls the first virtual object to interact with the second virtual object, and can separately control the mirrored virtual object to directly interact with the second virtual object, whereby the embodiments of the present application are not limited thereto, and the embodiments of the present application take the interaction between the first virtual object and the second virtual object as an example.
[0110] The above embodiment will be described below in conjunction with FIG. 9. Referring to FIG. 9, the main body is a first virtual object, the ghost is a mirrored virtual object of the first virtual object, and the enemy is a second virtual object. In response to a click operation on the mirroring interaction control of the terminal, the main body releases a virtual skill in the virtual scenario to move in a first direction and display a mirrored virtual object of the first virtual object at a first position in the virtual scenario. The user reactivates the mirroring interaction control, and in response to another click operation on the mirroring interaction control, the terminal controls the first virtual object to move to a position where the mirrored virtual object is located. When the first virtual object and the second virtual object come into contact with each other, the terminal controls the first virtual object and the second virtual object to move together to a position where the mirrored virtual object is located. If a first virtual object overlaps with the mirrored virtual object and the distance between the second virtual object and the mirrored virtual object is equal to or less than a first distance threshold, the device controls the first virtual object to interact with the second virtual object. If the first virtual object and the second virtual object are not in contact, the device controls the first virtual object to move to the position where the mirrored virtual object is located and cancels the display of the mirrored virtual object. If the mirrored interaction control is not clicked twice, the device cancels the display of the mirrored virtual object.
[0111] In a possible embodiment, after step 308, the terminal may further perform the following steps 309-310, or the following steps 311-312, or the following steps 313-314, or the following steps 315-317, to which the embodiments of the present application are not limited.
[0112] 309: If the first virtual object successfully interacts with the second virtual object, the terminal adjusts the position of the first virtual object to a third position and controls the second virtual object to move to the third position, where the third position is the position when the first virtual object and the second virtual object come into contact with each other.
[0113] Note that a successful interaction of the first virtual object with the second virtual object refers to a successful hit of the first virtual object with an attack on the second virtual object. A successful hit of the first virtual object with an attack on the second virtual object refers to a contact of the first virtual object's fists, feet, or an equipped virtual prop with the second virtual object. In a possible embodiment, an invisible collision detection box is bound to the first virtual object's fists, feet, or equipped virtual prop, and an invisible collision detection box is bound to the second virtual object, so that the terminal can determine whether the first virtual object's attack has successfully hit the second virtual object through the collision detection box. If the collision detection box corresponding to the first virtual object comes into contact with the collision detection box corresponding to the second virtual object, it is determined that the first virtual object's attack has successfully hit the second virtual object, i.e., that the first virtual object has successfully interacted with the second virtual object. If the collision detection box corresponding to the first virtual object and the collision detection box corresponding to the second virtual object are not in contact with each other, it is determined that the attack of the first virtual object has not successfully hit the second virtual object, i.e., the first virtual object has not successfully interacted with the second virtual object.
[0114] In step 309, if the interaction between the first virtual object and the second virtual object is successful, the terminal moves the first virtual object to a third position in the virtual scenario so that the user can again interact with the second virtual object based on the first virtual object.
[0115] 310: The terminal displays a continuous interaction control, which controls the first virtual object to interact with the second virtual object.
[0116] The continuous interaction control is displayed when the first virtual object successfully interacts with the second virtual object and may be considered a "bonus" for controlling the first virtual object to successfully interact with the second virtual object, and the continuous interaction control controls the first virtual object to interact with the second virtual object, i.e., controls the first virtual object to attack the second virtual object in the virtual scenario.
[0117] In a possible embodiment, after step 310, the terminal further implements the following solution.
[0118] First Solution: In response to a trigger operation on the continuous interaction control, the terminal controls the first virtual object to move to a position where the second virtual object is located. If the distance between the first virtual object and the second virtual object satisfies a second distance condition, the terminal controls the first virtual object to interact with the second virtual object.
[0119] When the first virtual object successfully interacts with the second virtual object, the health points of the second virtual object are reduced.
[0120] In this embodiment, the first virtual object is controlled to automatically move to the location of the second virtual object by triggering the continuous interaction control. When the distance between the first virtual object and the second virtual object satisfies a second distance condition, the first virtual object automatically interacts with the second virtual object. In this interaction process, the user only needs to trigger the continuous interaction control once, which improves the efficiency of man-machine interaction.
[0121] For example, in response to a click operation on the continuous interaction control, the terminal controls the first virtual object to move to a position where the second virtual object is located, and since the second virtual object is "hit" by the mirroring virtual object to a position where the first virtual object is located, the second virtual object is also in the process of moving, and the position where the second virtual object is located is continuously changing; thus, controlling the first virtual object to move to a position where the second virtual object is located is a process of continuously reducing the distance between the first virtual object and the second virtual object. If the distance between the first virtual object and the second virtual object is equal to or less than a second distance threshold, the terminal controls the first virtual object to interact with the second virtual object, i.e., controls the first virtual object to attack the second virtual object in the virtual scenario, where the second distance threshold is the maximum attack distance of the first virtual object, and the second distance threshold is set by a technician according to actual circumstances, and the embodiments of the present application are not limited thereto.
[0122] Second Solution: In response to a trigger operation on the continuous interaction control, the terminal displays a target virtual prop enlarged around the first virtual object, and the target virtual prop is a virtual prop attached to the first virtual object. When the second virtual object and the target virtual prop come into contact with each other, the terminal controls the second virtual object to move above the first virtual object, thereby reducing the health points of the second virtual object.
[0123] In this embodiment, triggering the continuous interaction control causes the terminal to display an enlarged target virtual prop around the first virtual object, where the target virtual prop is a virtual prop attached to the first virtual object, and the terminal enlarges and displays the target virtual prop, i.e., displays a virtual obstacle in the virtual scenario. When the second virtual object comes into contact with the target virtual prop, the terminal controls the second virtual object to change its moving direction, i.e., changes the first virtual object's movement from a third position to an upward movement, thereby presenting the visual effect of being "shot down by the target virtual prop," thereby enriching the interaction between the first virtual object and the second virtual object and improving the efficiency of man-machine interaction.
[0124] For example, in response to a click operation on the continuous interaction control, the terminal displays an enlarged target virtual prop around the first virtual object, including the left side, right side, or location of the first virtual object. When a model of the second virtual object comes into contact with a model of the target virtual prop, the terminal controls the second virtual object to move above the first virtual object, thereby reducing the health points of the second virtual object.
[0125] 311: When the first virtual object successfully interacts with the second virtual object, the terminal determines a second direction based on a target portion of the second virtual object, where the second direction indicates a movement direction of the second virtual object in the virtual scenario, and the target portion is the portion that successfully interacts with the mirrored virtual object.
[0126] The target portion of the second virtual object is a portion where an interaction with the mirrored virtual object is successful, or a portion that is hit when the mirrored virtual object attacks the second virtual object. In a possible embodiment, invisible collision detection boxes are bound to multiple portions of the second virtual object, respectively, and when an interaction between the first virtual object and the second virtual object is successful, the terminal determines a target collision detection box on the second virtual object that comes into contact with the mirrored virtual object during the interaction, and the portion to which the target collision detection box is bound is the target portion of the second virtual object.
[0127] In a possible embodiment, when the target part is the head of the second virtual object, the terminal determines the second direction to be below the mirrored virtual object.
[0128] In this embodiment, when the second virtual object needs to be moved below the mirrored virtual object, the user only needs to control the mirrored virtual object to interact with the head of the second virtual object, which improves the efficiency of man-machine interaction.
[0129] In a possible embodiment, when the target part is the torso of the second virtual object, the terminal determines a direction in which the second virtual object moves towards the first virtual object as a second direction.
[0130] In this embodiment, when the second virtual object needs to be moved in the direction of the first virtual object, the user only needs to control the mirrored virtual object to interact with the torso of the second virtual object, which improves the efficiency of man-machine interaction.
[0131] In a possible embodiment, when the target part is a foot of the second virtual object, the terminal determines the upper side of the mirrored virtual object as the second direction.
[0132] In this embodiment, when the second virtual object needs to be moved above the mirrored virtual object, the user only needs to control the mirrored virtual object to interact with the feet of the second virtual object, which improves the efficiency of man-machine interaction.
[0133] Here, the above three embodiments are merely examples, and in other possible embodiments, the engineer may subdivide the second virtual object into more parts and set one movement direction for each part, which is not limited to the examples of the present application.
[0134] Through the above step 311, the user controls the mirrored virtual object to interact with different parts of the second virtual object, thereby achieving the goal of controlling the second virtual object to move in different directions. The user can select different movement directions according to actual situations to complete different interaction combinations, providing the user with more choices and improving the user's game experience.
[0135] 312: The terminal controls the second virtual object to move in the virtual scenario according to a second direction.
[0136] 313: If the first virtual object successfully interacts with the second virtual object, the terminal controls the first virtual object to enter a first state.
[0137] The first state is also called a counterattack state or a counterattack state. When a first virtual object is in the first state, if a second virtual object interacts with the first virtual object, the second virtual object will automatically interact with the first virtual object. That is, if the second virtual object attacks the first virtual object, the first virtual object in the first state can automatically counterattack. The first state has a certain duration, which can be set by engineers according to actual situations.
[0138] 314: If the second virtual object successfully interacts with the first virtual object within the duration of the first state, the terminal controls the first virtual object to automatically interact with the second virtual object.
[0139] In a possible embodiment, in response to the second virtual object's attack hitting the first virtual object within the duration of the first state, the terminal controls the first virtual object to automatically counterattack the second virtual object.
[0140] 315: If the first virtual object successfully interacts with the second virtual object, the terminal adjusts the position of the first virtual object to a third position and displays a position exchange control, where the third position is the position of the first virtual object when it comes into contact with the second virtual object.
[0141] The function of the position exchange control is to exchange the positions of the first virtual object and the mirrored virtual object, and the display position of the position exchange control is set by the engineer according to the actual situation, which is not limited in the embodiments of the present application.
[0142] 316: In response to a trigger operation on the position exchange control, the terminal exchanges positions of the first virtual object and the mirrored virtual object in the virtual scenario.
[0143] In a possible embodiment, in response to a click on the position exchange control, the terminal exchanges positions of the first virtual object and the mirrored virtual object in the virtual scenario.
[0144] 317: In response to a re-trigger operation on the mirroring interaction control, the terminal controls the first virtual object to perform an interaction with the second virtual object.
[0145] In a possible embodiment, in response to a re-click operation on the mirroring interaction control, the terminal controls the first virtual object to interact with the second virtual object, i.e., to attack the second virtual object, for example, to attack the second virtual object using a virtual prop.
[0146] Here, after clicking the mirrored interaction control again, the first virtual object directly performs an interaction action on the second virtual object. However, the execution of the action does not necessarily result in a successful interaction with the second virtual object, and the interaction may fail. For example, the first virtual object's interaction with the second virtual object refers to the first virtual object attacking the second virtual object in the virtual scenario. Thus, after clicking the mirrored interaction control, the first virtual object performs an attack action, such as swinging an equipped virtual prop. However, the attack action performed by the first virtual object may hit the second virtual object, but may not. There are two reasons for this situation. First, the interaction distance of the first virtual object has a certain limit. Second, the second virtual object is moved to the first position, and the second virtual object is in a moving state. The prerequisite for successful interaction between the first virtual object and the second virtual object is that the trigger timing of the mirroring interaction control is within a target time range, which is determined by the terminal based on parameters such as the moving speed of the second virtual object, size information of the second virtual object, and the interaction distance of the first virtual object. From the user's perspective, the prerequisite for controlling the first virtual object to successfully interact with the second virtual object is that the timing of re-clicking the mirroring interaction control is accurate, which can be achieved by the user through multiple training sessions.
[0147] In a possible embodiment, in addition to the above step 317, after triggering the mirroring interaction control again, the terminal can further perform the following steps:
[0148] First Solution: In response to a re-trigger operation on the mirrored interaction control, the terminal controls the mirrored virtual object to move to the location of the first virtual object. When the mirrored virtual object and the second virtual object come into contact with each other, the terminal reduces the health points of the second virtual object. Of course, in the process of controlling the mirrored virtual object to move to the location of the first virtual object, the terminal may simultaneously control the first virtual object to interact with the second virtual object. The trigger operation is a click operation.
[0149] In this embodiment, the terminal controls the mirrored virtual object to move to the location of the first virtual object, thereby providing another form of interaction between the first virtual object and the second virtual object; that is, when the terminal comes into contact with the mirrored virtual object, the health points of the second virtual object are reduced, thereby enriching the user's choices and improving the efficiency of man-machine interaction.
[0150] Second solution: If the mirrored virtual object overlaps with the first virtual object, the terminal cancels the display of the mirrored virtual object.
[0151] In a possible embodiment, after step 317, the terminal can further perform the following steps:
[0152] First Solution: When the first virtual object successfully interacts with the second virtual object, the terminal controls the second virtual object to move to the position where the mirrored virtual object is located. In response to a re-trigger operation on the position exchange control, the terminal again exchanges the positions of the first virtual object and the mirrored virtual object in the virtual scenario. In response to a re-trigger operation on the mirrored interaction control, the terminal again controls the first virtual object to interact with the second virtual object. The trigger operation is a click operation.
[0153] In this embodiment, the position swap control also provides a double-trigger function, and by triggering the position swap control twice, the positions of the first virtual object and the mirrored virtual object can be swapped again, and interaction with the second virtual object can be performed again based on the first virtual object.
[0154] Here, the above steps 301 to 317 are described as an example in which the terminal is the execution body. In other possible embodiments, the server may execute the data processing steps in the above steps 301 to 317, and the terminal may display the data processing results, which is not limited to the embodiments of the present application.
[0155] All the preferred technical solutions mentioned above may be arbitrarily combined to form preferred embodiments of the present application, which will not be mentioned again here.
[0156] According to the technical solution provided by the embodiments of the present application, a virtual scenario includes a first virtual object and a second virtual object. When the mirroring interaction control is triggered, the first virtual object is controlled to move in a first direction, and a mirrored virtual object of the first virtual object is displayed in the virtual scenario. During the movement of the first virtual object, in response to a re-triggering operation on the mirroring interaction control, the first virtual object is controlled to move to a position where the mirrored virtual object is located. When the first virtual object and the second virtual object come into contact with each other, the first virtual object and the second virtual object are controlled to move together to a position where the mirrored virtual object is located. When the first virtual object overlaps with the mirrored virtual object, the first virtual object is controlled to interact with the second virtual object. By installing a mirrored virtual object, the interaction form between the first virtual object and the second virtual object is enriched, and the user can effectively interact with the second virtual object using the mirrored virtual object, thereby improving the efficiency of man-machine interaction.
[0157] 10 is a structural schematic diagram of a virtual object control device provided in an embodiment of the present application, the device is disposed in a computer device, for example, the computer device is a terminal. Referring to FIG. 10, the device includes: a virtual scenario display module 1001, a first virtual object control module 1002, and a second virtual object control module 1003.
[0158] The virtual scenario display module 1001 displays a virtual scenario, in which a first virtual object and a second virtual object are displayed, the first virtual object is a virtual object controlled by a terminal, and the second virtual object belongs to a different camp from the first virtual object.
[0159] In response to a trigger operation on the mirroring interaction control, the first virtual object control module 1002 controls the first virtual object to move in a first direction and displays a mirrored virtual object of the first virtual object at a first position in the virtual scenario.
[0160] The first virtual object control module 1002 further controls the first virtual object to move to the first position in response to a retriggering operation on the mirroring interaction control while the first virtual object is moving in the first direction.
[0161] The second virtual object control module 1003 controls the first virtual object and the second virtual object so that, when the first virtual object and the second virtual object come into contact with each other, they jointly move to the first position.
[0162] The first virtual object control module 1002 further controls the first virtual object to interact with the second virtual object when the first virtual object overlaps with the mirrored virtual object.
[0163] In one possible embodiment, the first virtual object control module 1002 controls the first virtual object to move to the first position when the first virtual object and the second virtual object are not in contact, and cancels display of the mirrored virtual object when the first virtual object overlaps the mirrored virtual object.
[0164] In one possible embodiment, the first virtual object control module 1002 controls the first virtual object to interact with the second virtual object when the first virtual object overlaps with the mirrored virtual object and the distance between the second virtual object and the mirrored virtual object meets a first distance condition.
[0165] In one possible embodiment, the first virtual object control module 1002 controls the mirrored virtual object and the first virtual object to simultaneously interact with the second virtual object when the first virtual object overlaps the mirrored virtual object and the distance between the second virtual object and the mirrored virtual object is less than or equal to a first distance threshold.
[0166] In one possible embodiment, the second virtual object control module 1003 further determines a second direction based on a target portion of the second virtual object when the first virtual object successfully interacts with the second virtual object, where the second direction indicates a movement direction of the second virtual object in the virtual scenario, and the target portion of the second virtual object is the portion where the interaction with the first virtual object was successful, and controls the second virtual object to move in the virtual scenario according to the second direction.
[0167] In a possible embodiment, the second virtual object control module 1003 further comprises: If the target part is a head of the second virtual object, determining a downward direction of the mirrored virtual object as a second direction; If the target part is a torso of the second virtual object, determining a second direction as a direction in which the second virtual object moves toward the first virtual object; and if the target part is a foot of the second virtual object, determining an upward direction of the mirrored virtual object as a second direction.
[0168] In a possible embodiment, the first virtual object control module 1002 further controls the first virtual object to enter a first state when the first virtual object successfully interacts with the second virtual object, and controls the first virtual object to automatically interact with the second virtual object when the second virtual object successfully interacts with the first virtual object within the duration of the first state.
[0169] In one possible embodiment, the second virtual object control module 1003 controls the first virtual object to move to a second location in the virtual scenario when the first virtual object and the second virtual object come into contact, and the second virtual object is located between the first location and the second location, and controls the first virtual object and the second virtual object to jointly move to the first location.
[0170] In a possible embodiment, the second virtual object control module 1003 controls the first virtual object to interact with the second virtual object at the second location.
[0171] In a possible embodiment, the first virtual object control module 1002 further adjusts the position of the first virtual object to a third position when the first virtual object successfully interacts with the second virtual object, and controls the second virtual object to move to the third position in the virtual scenario, the third position being the position of the first virtual object when it comes into contact with the second virtual object.
[0172] The device comprises: The system further includes a continuous interaction control display module that displays a continuous interaction control, the continuous interaction control controlling the first virtual object to interact with the second virtual object.
[0173] In a possible embodiment, the first virtual object control module 1002 further comprises: controlling the first virtual object to move to a position where the second virtual object is located in response to a trigger operation on the continuous interaction control, and controlling the first virtual object to interact with the second virtual object when a distance between the first virtual object and the second virtual object satisfies a second distance condition; and a step of displaying an enlarged target virtual prop around the first virtual object in response to a trigger operation on the continuous interaction control, the target virtual prop being a virtual prop attached to the first virtual object, and controlling the second virtual object to move above the first virtual object when the second virtual object comes into contact with the target virtual prop, thereby reducing the health points of the second virtual object.
[0174] In one possible embodiment, the first virtual object control module 1002 further adjusts the position of the first virtual object to a third position when the first virtual object successfully interacts with the second virtual object and displays a position swap control, where the third position is the position of the first virtual object when it contacts the second virtual object. In response to a triggering operation on the position swap control, the first virtual object and the mirrored virtual object exchange positions in the virtual scenario. In response to a retriggering operation on the mirrored interaction control, the first virtual object is controlled to interact with the second virtual object.
[0175] In one possible embodiment, the mirrored virtual object control module further controls the mirrored virtual object to move to a position where the first virtual object is located, and reduces health points of the second virtual object when the mirrored virtual object and the second virtual object come into contact with each other.
[0176] In one possible embodiment, the first virtual object control module 1002 further controls the second virtual object to move to the location of the mirrored virtual object when the first virtual object successfully interacts with the second virtual object, again exchanges the locations of the first virtual object and the mirrored virtual object in the virtual scenario in response to a retriggering operation on the location exchange control, and again controls the first virtual object to interact with the second virtual object in response to a retriggering operation on the mirrored interaction control.
[0177] In a possible embodiment, the first virtual object control module 1002 further maintains the first virtual object at a current position if the first virtual object does not successfully interact with the second virtual object.
[0178] In a possible embodiment, the mirrored virtual object control module further cancels display of the mirrored virtual object when the first virtual object and the second virtual object are in contact and the second virtual object is in a second state.
[0179] In a possible embodiment, the mirrored virtual object control module further cancels display of the mirrored virtual object in response to a situation in which no trigger operation on the mirrored interaction control is detected in a target time period.
[0180] Here, when the virtual object control device provided in the above embodiments controls a virtual object, only the division of each of the above functional modules is described as an example, and in actual application, the above functions can be assigned to be completed by different functional modules according to needs, that is, all or part of the above-described functions can be completed by dividing the internal structure of a computer device into different functional modules. Furthermore, the virtual object control device provided in the above embodiments belongs to the same concept as the embodiments of the virtual object control method, and the specific implementation process thereof can be referred to the method embodiments, and will not be described in detail here.
[0181] According to the technical solution provided by the embodiments of the present application, a virtual scenario includes a first virtual object and a second virtual object. When the mirroring interaction control is triggered, the first virtual object is controlled to move in a first direction, and a mirrored virtual object of the first virtual object is displayed in the virtual scenario. During the movement of the first virtual object, in response to a re-triggering operation on the mirroring interaction control, the first virtual object is controlled to move to a position where the mirrored virtual object is located. When the first virtual object and the second virtual object come into contact with each other, the first virtual object and the second virtual object are controlled to jointly move to a position where the mirrored virtual object is located. When the first virtual object overlaps with the mirrored virtual object, the first virtual object is controlled to interact with the second virtual object. By installing a mirrored virtual object, the interaction form between the first virtual object and the second virtual object is enriched, and the user can effectively interact with the second virtual object using the mirrored virtual object, thereby improving the efficiency of man-machine interaction.
[0182] An embodiment of the present application provides a computer device, which includes one or more processors and one or more memories, and at least one computer program stored in the one or more memories, which is loaded and executed by the one or more processors to realize the above-mentioned method for controlling a virtual object.
[0183] The computer device can be implemented as a terminal or a server. The terminal structure is as follows: 11 is a structural schematic diagram of a terminal provided by an embodiment of the present application. The terminal 1100 may be a smartphone, a tablet, a notebook computer, or a desktop computer. The terminal 1100 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal, or other names.
[0184] Generally, terminal 1100 includes one or more processors 1101 and one or more memories 1102 .
[0185] The processor 1101 includes one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1101 may include a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), The processor 1101 may be realized in at least one hardware form of a field programmable gate array (Field Programmable Gate Array) or a programmable logic array (PLA). The processor 1101 further includes a main processor, also called a CPU (Central Processing Unit), that processes data in a wake-up state, and a coprocessor, which is a low-power consumption processor that processes data in a standby state. In a possible embodiment, the processor 1101 is integrated with a GPU (Graphics Processing Unit), which renders and draws content to be displayed on the display. The processor 1101 further includes an AI (Artificial Intelligence) processor, which processes computing operations related to machine learning.
[0186] The memory 1102 includes one or more computer-readable storage media, which may be non-transitory. The memory 1102 may further include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices or flash storage devices. In a possible embodiment, the non-transitory computer-readable storage media in the memory 1102 stores at least one computer program, which is executed by the processor 1101 to implement the method for controlling a virtual object provided in the method embodiments of the present application.
[0187] In a possible embodiment, the terminal 1100 preferably includes a peripheral interface 1103 and at least one peripheral. The processor 1101, the memory 1102, and the peripheral interface 1103 are connected via a bus or signal lines. Each peripheral is connected to the peripheral interface 1103 via a bus, signal line, or circuit board. Specifically, the peripheral includes at least one of a radio frequency circuit 1104, a display 1105, a camera component 1106, an audio circuit 1107, and a power supply 1108.
[0188] The peripheral interface 1103 connects at least one peripheral associated with I / O (Input / Output) to the processor 1101 and the memory 1102. In a possible embodiment, the processor 1101, the memory 1102, and the peripheral interface 1103 are integrated on the same chip or circuit board, and in some other embodiments, any one or two of the processor 1101, the memory 1102, and the peripheral interface 1103 may be implemented on separate chips or circuit boards, to which the present embodiment is not limited.
[0189] The radio frequency circuitry 1104 receives and transmits RF (Radio Frequency) signals (also called electromagnetic signals). The radio frequency circuitry 1104 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuitry 1104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuitry 1104 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, etc.
[0190] The display 1105 displays a UI (User Interface). The UI may include patterns, text, icons, videos, and any combination thereof. If the display 1105 is a touch display, the display 1105 is further capable of collecting touch signals on or above the surface of the display 1105. The touch signals are input as control signals to the processor 1101 for processing. In this case, the display 1105 further provides virtual buttons and / or a virtual keyboard (also called soft buttons and / or a soft keyboard).
[0191] The camera component 1106 collects images or videos. Optionally, the camera component 1106 includes a front camera and a back camera. Typically, the front camera is located on the front panel of the terminal, and the back camera is located on the back of the terminal.
[0192] The audio circuit 1107 includes a microphone and a speaker. The microphone collects sound waves from the user and the environment and converts the sound waves into electrical signals that are input to the processor 1101 for processing or to the radio frequency circuit 1104 for voice communication.
[0193] A power supply 1108 provides power to each component in the terminal 1100. The power supply 1108 may be AC, DC, a primary battery, or a rechargeable battery.
[0194] In a possible embodiment, the terminal 1100 further includes one or more sensors 1109, including, but not limited to, an acceleration sensor 1110, a gyro sensor 1111, a pressure sensor 1112, a light sensor 1113, and a proximity sensor 1114.
[0195] The acceleration sensor 1110 detects the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1100 .
[0196] The gyro sensor 1111 cooperates with the acceleration sensor 1110 to collect the user's 3D movements of the terminal 1100 in terms of the body direction and rotation angle of the terminal 1100 .
[0197] The pressure sensor 1112 is provided on the side frame of the terminal 1100 and / or below the display 1105. When provided on the side frame of the terminal 1100, the pressure sensor 1112 detects a user's grip signal on the terminal 1100, and the processor 1101 recognizes left and right hands or performs quick operations based on the grip signal collected by the pressure sensor 1112. When the pressure sensor 1112 is provided below the display 1105, the processor 1101 realizes control over operable controls on the UI interface based on the user's pressure operation on the display 1105.
[0198] The light sensor 1113 collects the ambient light intensity. In one embodiment, the processor 1101 controls the display brightness of the display 1105 based on the ambient light intensity collected by the light sensor 1113.
[0199] The proximity sensor 1114 collects the distance between the user and the front of the terminal 1100 .
[0200] As will be appreciated by those skilled in the art, the architecture of FIG. 11 does not limit terminal 1100, which may include more or fewer components than shown, or may combine some components, or may be configured using different components.
[0201] The above computer device can also be implemented as a server, and the server structure is as follows: FIG. 12 is a schematic diagram of the structure of a server provided by an embodiment of the present application. The server 1200 may vary greatly due to different configurations or performances. It may include one or more processors (Central Processing The server 1200 includes a central processing unit (CPU) 1201 and one or more memories 1202, in which at least one computer program is stored, and the at least one computer program is read and executed by the one or more processors 1201 to implement the methods provided by the above method embodiments. Of course, the server 1200 may also include components such as a wired or wireless network interface for input and output, a keyboard, and an input and output interface, and the server 1200 may also include other components for implementing device functions, which are not specifically mentioned here.
[0202] In an exemplary embodiment, a computer-readable storage medium, such as a memory containing a computer program, is further provided, and the computer program is executed by a processor to complete the method for controlling a virtual object in the above embodiment. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a read-only optical disk, or the like. (Compact Disc Read-Only Memory, CD-ROM), magnetic tape, flexible disk, and optical data storage devices.
[0203] In an exemplary embodiment, a computer program product or a computer program is further provided, the computer program product or the computer program including program code, the program code being stored in a computer-readable storage medium, and a processor of a computing device reading and executing the program code from the computer-readable storage medium, thereby causing the computing device to perform the above-mentioned method for controlling a virtual object.
[0204] In some embodiments, a computer program according to an embodiment of the present application may be executed on a single computer device, or on multiple computer devices at one location, or on multiple computer devices distributed across multiple locations and interconnected via a communication network, where multiple computer devices distributed across multiple locations and interconnected via a communication network constitute a blockchain system.
[0205] As can be understood by those skilled in the art, the realization of all or part of the steps in the above embodiments may be completed by hardware, or may be completed by a program instructing related hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disk, etc.
[0206] The above does not limit the present application, but is merely a preferred embodiment of the present application, and any modifications, equivalent replacements, improvements, etc. completed within the spirit and principles of the present application should fall within the protection scope of the present application.
Claims
1. 1. A method for controlling a virtual object in a fighting game, executed by a computing device, the method comprising: displaying a virtual scenario, the virtual scenario being a screen showing a simulated environment or a virtual environment, the virtual scenario displaying a first virtual object and a second virtual object, the first virtual object being a virtual object controlled by a user of the computing device, and the second virtual object belonging to a different faction than the first virtual object; a step of controlling the first virtual object to move in a first direction in response to a trigger operation on a mirroring interaction control, and displaying a mirrored virtual object of the first virtual object at a first position in the virtual scenario, the first position being a position facing the first virtual object, and the first virtual object being spaced a predetermined distance from the mirrored virtual object; controlling the first virtual object to move to the first position in response to a retriggering operation on the mirroring interaction control while the first virtual object is moving in the first direction; controlling the first virtual object and the second virtual object to jointly move to the first position when the first virtual object and the second virtual object come into contact with each other; and controlling the first virtual object to interact with the second virtual object when the second virtual object is carried by the first virtual object to a position where the mirroring virtual object is located and the first virtual object overlaps the mirroring virtual object, wherein the interaction includes attacking the second virtual object to reduce health points (HP) of the second virtual object.
2. After controlling the first virtual object to move to the first position in response to a retriggering operation on the mirroring interaction control, the method further comprises: controlling the first virtual object to move to the first position when the first virtual object and the second virtual object are not in contact; The method of claim 1 , further comprising: canceling display of the mirrored virtual object if the first virtual object overlaps the mirrored virtual object.
3. When the first virtual object overlaps the mirrored virtual object, the step of controlling the first virtual object to perform the interaction with the second virtual object includes:
2. The method of claim 1, further comprising: controlling the first virtual object to perform the interaction on the second virtual object when the first virtual object overlaps the mirrored virtual object and a distance between the second virtual object and the mirrored virtual object meets a first distance condition.
4. When the first virtual object overlaps with the mirrored virtual object and a distance between the second virtual object and the mirrored virtual object satisfies a first distance condition, the step of controlling the first virtual object to perform the interaction with the second virtual object by the computer device includes:
4. The method of claim 3, further comprising: controlling the mirroring virtual object and the first virtual object to simultaneously perform the interaction with the second virtual object when the first virtual object overlaps the mirroring virtual object and a distance between the second virtual object and the mirroring virtual object is equal to or less than a first distance threshold.
5. When the first virtual object overlaps the mirrored virtual object, the computer device controls the first virtual object to perform the interaction with the second virtual object, and then the method further comprises: the computing device determines a second direction based on a target portion of the second virtual object when the first virtual object has successfully interacted with the second virtual object, the second direction indicating a moving direction of the second virtual object in the virtual scenario, and the target portion being a portion where the interaction with the first virtual object has been successful; The method of claim 1 , further comprising: the computing device controlling the second virtual object to move in the virtual scenario according to the second direction.
6. The step of determining a second direction based on a target portion of the second virtual object includes: When the target part is a head of the second virtual object, determining a downward direction of the mirrored virtual object as the second direction; determining a direction in which the second virtual object moves toward the first virtual object as the second direction when the target portion is a torso of the second virtual object; and when the target part is a foot of the second virtual object, determining an upward direction of the mirrored virtual object as the second direction.
7. When the first virtual object overlaps the mirrored virtual object, the computer device controls the first virtual object to perform the interaction with the second virtual object, and then the method further comprises: the computing device controls the first virtual object to enter a first state when the first virtual object successfully interacts with the second virtual object; 2. The method of claim 1, further comprising: the computing device controlling the first virtual object to automatically perform the interaction with the second virtual object if the second virtual object successfully performs the interaction with the first virtual object within a duration of the first state.
8. The step of the computer device controlling the first virtual object and the second virtual object so that they jointly move to the first position when the first virtual object and the second virtual object come into contact with each other includes:
2. The method of claim 1, wherein the computing device includes controlling the first virtual object to move to a second location in the virtual scenario when the first virtual object and the second virtual object come into contact, and controlling the first virtual object and the second virtual object to jointly move to the first location, and the second virtual object is located between the first location and the second location.
9. Before the computing device controls the first virtual object and the second virtual object to jointly move to the first position, the method further comprises: The method of claim 8 , further comprising the step of: the computing device controlling the first virtual object to perform the interaction with the second virtual object at the second location.
10. When the first virtual object overlaps the mirrored virtual object, the computer device controls the first virtual object to perform the interaction with the second virtual object, and then the method further comprises: and when the first virtual object successfully interacts with the second virtual object, the computer device adjusts a position of the first virtual object to a third position and controls the second virtual object to move to the third position, the third position being a position where the first virtual object is located when it comes into contact with the second virtual object. The method of claim 1 , further comprising: the computing device displaying a continuous interaction control, the continuous interaction control controlling the first virtual object to perform the interaction with the second virtual object.
11. After the computing device displays the continuous interaction control, the method includes: the computing device controls the first virtual object in response to a trigger operation on the continuous interaction control so as to move to a position where the second virtual object is located; the computing device controls the first virtual object to perform the interaction with the second virtual object when a distance between the first virtual object and the second virtual object meets a second distance condition; a step of displaying, by the computer device, a target virtual prop enlarged around the first virtual object in response to a trigger operation on the continuous interaction control, the target virtual prop being a virtual prop attached to the first virtual object; and controlling the second virtual object to move above the first virtual object when the second virtual object and the target virtual prop come into contact with each other, thereby reducing health points of the second virtual object.
12. When the first virtual object overlaps the mirrored virtual object, the computer device controls the first virtual object to perform the interaction with the second virtual object, and then the method further comprises: the computing device, when the first virtual object successfully interacts with the second virtual object, adjusts a position of the first virtual object to a third position and displays a position exchange control, the third position being a position where the first virtual object is located when it comes into contact with the second virtual object; the computing device exchanging positions of the first virtual object and the mirrored virtual object in response to a trigger operation on the position exchange control; The method of claim 1 , further comprising: the computing device controlling the first virtual object to perform the interaction with the second virtual object in response to a re-triggering operation on the mirroring interaction control.
13. After the computing device responds to a retriggering operation on the mirroring interaction control, the method further comprises: The computer device controls the mirrored virtual object to move to a position where the first virtual object is located; The method of claim 12 , further comprising the step of: the computing device decreasing health points of the second virtual object when the mirrored virtual object and the second virtual object come into contact.
14. After the computing device controls the first virtual object to perform the interaction with the second virtual object in response to a retriggering operation on the mirroring interaction control, the method further comprises: the computer device controls the second virtual object to move to a position where the mirrored virtual object is located when the first virtual object successfully interacts with the second virtual object; the computing device again exchanging positions in the virtual scenario of the first virtual object and the mirroring virtual object in response to a re-triggering operation on the position exchange control; 13. The method of claim 12, further comprising: the computing device again controlling the first virtual object to perform the interaction on the second virtual object in response to a re-triggering operation on the mirroring interaction control.
15. When the first virtual object overlaps the mirrored virtual object, the computer device controls the first virtual object to perform the interaction with the second virtual object, and then the method further comprises: The method of claim 1 , further comprising: the computing device maintaining the first virtual object at a current position if the first virtual object has not successfully performed the interaction with the second virtual object.
16. After the computing device controls the first virtual object to move in a first direction in response to a trigger operation on a mirroring interaction control, the method further comprises:
2. The method of claim 1, further comprising the step of: canceling display of the mirrored virtual object when the first virtual object and the second virtual object are in contact and the second virtual object is in a second state.
17. the computing device controls the first virtual object to move in a first direction in response to a trigger operation on a mirroring interaction control, and then displays a mirrored virtual object of the first virtual object at a first position in the virtual scenario, the method comprising: The method of claim 1 , further comprising: canceling display of the mirrored virtual object when the computing device does not detect a trigger operation on the mirrored interaction control within a target time period.
18. A control device for controlling a virtual object in a fighting game, the control device being provided in a computer device, the device comprising: a virtual scenario display module that displays a virtual scenario, the virtual scenario being a screen showing a simulation environment or a virtual environment, in which a first virtual object and a second virtual object are displayed, the first virtual object being a virtual object controlled by a user of the computing device, and the second virtual object belonging to a different camp from the first virtual object; a first virtual object control module that, in response to a trigger operation on a mirroring interaction control, controls the first virtual object to move in a first direction and displays a mirrored virtual object of the first virtual object at a first position in the virtual scenario; a second virtual object control module that controls the first virtual object and the second virtual object so that they jointly move to the first position when the first virtual object and the second virtual object come into contact with each other; the first virtual object control module further controls the first virtual object to move to the first position in response to a retrigger operation on the mirroring interaction control while the first virtual object is moving in the first direction; The first virtual object control module further controls the first virtual object to interact with the second virtual object when the second virtual object is carried by the first virtual object to a position where the mirroring virtual object is located and the first virtual object overlaps the mirroring virtual object, the interaction including attacking the second virtual object to reduce health points (HP) of the second virtual object.
19. A computer device including one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and wherein the computer program is read and executed by the one or more processors to realize the method for controlling a virtual object according to any one of claims 1 to 17.
20. A computer program that, when executed by a processor, realizes the method for controlling a virtual object according to any one of claims 1 to 17.
Citation Information
Patent Citations
Method for controlling virtual object in battle game and device thereof and electronic equipment
CN113769383A
Method for processing game, program thereof and storage medium thereof
JP2003334381A
Method for game processing, game apparatus, game program, and storage medium for the game program
JP2005095403A