Virtual object control method and device, equipment and storage medium
By introducing a timer mechanism in the virtual environment, the timing rate is adjusted according to the existence status of the enemy and enemy virtual objects, the problem of human-computer interaction in the process of virtual resource removal is solved, the virtual game efficiency and computing resource utilization are improved, and the player interaction experience is enhanced.
Patent Information
- Application Number
- CN202510617758.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-13
- Publication Date
- 2025-07-04
AI Technical Summary
In the prior art, the human-computer interaction method of virtual resources leaving the virtual environment is relatively single, lacking diversity and interaction, which affects players' experience in the virtual environment.
By introducing a timer mechanism in the evacuation area, the timing rate is adjusted according to the existence status of the enemy and our virtual objects, providing a diverse human-computer interaction method, and increasing the intensity of virtual competition.
It improves the efficiency of virtual games and the utilization rate of computing resources, shortens the duration of a single virtual game, and enhances the interactive experience of players in the virtual environment.
Smart Images

Figure CN120242476A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of human-computer interaction technologies, and particularly to a method, apparatus, device, and storage medium for controlling virtual objects. Background Art
[0002] Applications such as games provide virtual environments. In virtual environments, virtual objects that usually need to be controlled carry out activities in the virtual environment, such as walking, driving, climbing, picking up items, fighting, etc.
[0003] In related technologies, a player enters a virtual environment, collects virtual resources in the virtual environment, and reaches a virtual evacuation point in the virtual environment to complete taking the virtual resources out of the virtual environment, so as to achieve long-term holding of the virtual resources.
[0004] However, the above human-computer interaction method of taking virtual resources out of the virtual environment is relatively single. Summary of the Invention
[0005] This application provides a method, apparatus, device, and storage medium for controlling virtual objects. The technical solutions are as follows:
[0006] According to one aspect of this application, a method for controlling a virtual object is provided. The method includes:
[0007] Display a first virtual object located in a virtual environment;
[0008] In response to the presence of a friendly virtual object of the virtual camp where the first virtual object is located in an evacuation area, display that a timer starts timing. The timer times at a first rate, and the timer is used to indicate the time required for the friendly virtual object to complete an evacuation operation in the virtual environment;
[0009] In the case where there is an enemy virtual object in the evacuation area, display that the timer pauses timing or the timer times at a second rate; and in the case where the enemy virtual object exits the evacuation area, display that the timer resumes timing at the first rate, where the first rate is greater than the second rate;
[0010] In response to the timing duration of the timer reaching a first duration threshold, display that the friendly virtual object has completed the evacuation operation in the virtual environment.
[0011] According to another aspect of this application, a device for controlling a virtual object is provided. The device includes:
[0012] A display module, configured to display a first virtual object located in a virtual environment;
[0013] The display module is further configured to, in response to the presence of a friendly virtual object of the virtual camp where the first virtual object is located in the evacuation area, start timing of a timer, the timer timing at a first rate, the timer being used to indicate the time required for the friendly virtual object to complete an evacuation operation in the virtual environment;
[0014] The display module is further configured to, when there is an enemy virtual object in the evacuation area, display that the timer pauses timing or the timer times at a second rate; and when the enemy virtual object exits the evacuation area, display that the timer resumes timing at the first rate, the first rate being greater than the second rate;
[0015] The display module is further configured to, in response to the timing duration of the timer reaching a first duration threshold, display that the friendly virtual object has completed the evacuation operation in the virtual environment.
[0016] In an alternative design of the present application, the display module is further configured to:
[0017] When there is an enemy virtual object in the evacuation area, display that the timing duration of the timer pauses to a first duration, or the timer times at the second rate based on the first duration, the first duration being used to indicate the time interval between the first moment when the timer starts and the second moment when there is an enemy virtual object in the evacuation area;
[0018] When the enemy virtual object exits the evacuation area, display that the timer resumes timing at the first rate.
[0019] In an alternative design of the present application, the display module is further configured to perform at least one of the following:
[0020] When the enemy virtual object is defeated in the evacuation area, display that the timer resumes timing at the first rate based on the second duration, the second duration being obtained by correcting the first duration;
[0021] When the enemy virtual object leaves the evacuation area based on a human-computer interaction operation, display that the timer resumes timing at the first rate based on the third duration, the third duration being obtained by correcting the first duration;
[0022] Wherein, the second duration is greater than the third duration.
[0023] In an alternative design of the present application, the device further includes:
[0024] An acquisition module, configured to acquire first object information of the friendly virtual object, and determine the first rate according to the first object information. The timing duration of the timer when timing at the first rate is the product of the first rate and the first time interval, where the first time interval is the interval between the start time of the timer and the current time.
[0025] In an alternative design of the present application, the device further includes:
[0026] An acquisition module, configured to acquire second object information of the enemy virtual object, and determine the second rate according to the second object information. The timing duration of the timer when timing at the second rate is the product of the second rate and the second time interval, where the second time interval is the interval between the time when the enemy virtual object exists in the evacuation area and the current time.
[0027] In an alternative design of the present application, the display module is further configured to perform at least one of the following:
[0028] When the enemy virtual object is defeated by the friendly virtual object, display that the timer resumes timing at the first rate;
[0029] When the friendly virtual object is defeated by the enemy virtual object, display that the evacuation area is split into a first sub - area and a second sub - area, display that the timer corresponding to the first sub - area resumes timing at the first rate, where the first sub - area is the area where the friendly virtual object is located; the area ratio between the first sub - area and the second sub - area is positively correlated with the quantity ratio between the friendly virtual objects in the surviving state and the enemy virtual objects in the surviving state, and the first rate is positively correlated with the area of the first sub - area.
[0030] In an alternative design of the present application, the maximum number of virtual objects accommodated in the first sub - area is positively correlated with the area of the first sub - area.
[0031] In an alternative design of the present application, the virtual combat props permitted to be used in the first combat mode between the friendly virtual object and the enemy virtual object are a subset of the second combat mode, and / or the first virtual attack frequency permitted to be used in the first combat mode is less than the second virtual attack frequency permitted to be used in the second combat mode;
[0032] Wherein, the first combat mode is a combat mode executed within the evacuation area, and the second combat mode is a combat mode executed outside the evacuation area.
[0033] According to another aspect of the present application, a computer device is provided. The computer device includes a processor and a memory. At least one instruction, at least one program, a code set, or an instruction set is stored in the memory. The at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the control method of the virtual object as described in the above aspect.
[0034] According to another aspect of the present application, a computer-readable storage medium is provided. At least one instruction, at least one program, a code set, or an instruction set is stored in the readable storage medium. The at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the control method of the virtual object as described in the above aspect.
[0035] According to another aspect of the present application, a computer program product is provided. The computer program product includes computer instructions. The computer instructions are stored in a computer-readable storage medium. A processor reads and executes the computer instructions from the computer-readable storage medium to implement the control method of the virtual object as described in the above aspect.
[0036] The beneficial effects brought by the technical solution provided by the present application at least include:
[0037] By determining whether there is an enemy virtual object in the evacuation area, the timing rate of the timer of the friendly virtual object in the evacuation area is adjusted; a connection is established between the timing rate of the timer and whether the virtual camp where the friendly virtual object is located controls the evacuation area. A new human-computer interaction method for the virtual object to evacuate from the virtual environment is provided. By delaying the progress of the friendly virtual object to perform the evacuation operation, it is prompted that the friendly virtual object and the enemy virtual object entering the evacuation area perform virtual competition, improving the intensity of the virtual competition between the friendly virtual object and the enemy virtual object in the evacuation area, which can shorten the duration of a single virtual game, and further increase the number of virtual games that the background server supporting the virtual games per unit time can support, and further improve the utilization efficiency of computing resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0039] Figure 1 It is a block diagram of the structure of a computer system provided by an exemplary embodiment of the present application;
[0040] Figure 2 It is a schematic diagram of a method for controlling a virtual object provided by an exemplary embodiment of the present application;
[0041] Figure 3 It is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application;
[0042] Figure 4 It is a schematic diagram of a virtual environment provided by an exemplary embodiment of the present application;
[0043] Figure 5 It is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application;
[0044] Figure 6 It is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application;
[0045] Figure 7 It is a schematic diagram of a virtual map provided by an exemplary embodiment of the present application;
[0046] Figure 8 It is a schematic diagram of a virtual environment provided by an exemplary embodiment of the present application;
[0047] Figure 9 It is a schematic diagram of a virtual environment provided by an exemplary embodiment of the present application;
[0048] Figure 10 It is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application;
[0049] Figure 11 It is a schematic diagram of a virtual environment provided by an exemplary embodiment of the present application;
[0050] Figure 12 It is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application;
[0051] Figure 13 It is a schematic diagram of a virtual environment provided by an exemplary embodiment of the present application;
[0052] Figure 14 It is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application;
[0053] Figure 15 It is a block diagram of the structure of a virtual object control device provided by an exemplary embodiment of the present application;
[0054] Figure 16 It is a block diagram of the structure of a terminal provided by an exemplary embodiment of the present application.
[0055] The accompanying drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with this application, and are used together with the specification to explain the principles of this application. Detailed Embodiments
[0056] To make the objectives, technical solutions, and advantages of this application clearer, the following will further describe in detail the embodiments of this application with reference to the accompanying drawings.
[0057] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. On the contrary, they are merely examples of devices and methods consistent with some aspects of this application as detailed in the appended claims.
[0058] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit this disclosure. The singular forms "a", "the", and "that" used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
[0059] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions.
[0060] It should be understood that although the terms first, second, etc. may be used in this disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this disclosure, the first parameter may also be referred to as the second parameter, and similarly, the second parameter may also be referred to as the first parameter. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining".
[0061] Figure 1 The block diagram of the computer system provided by an exemplary embodiment of this application is shown. The computer system 100 includes: a first terminal 110, a server 120, and a second terminal 130.
[0062] The first terminal 110 installs and runs a client 111 that supports a virtual environment. The client 111 can be a multiplayer online battle program. When the first terminal runs the client 111, the user interface of the client 111 is displayed on the screen of the first terminal 110. The client 111 can be any one of a battle royale shooting game, a Virtual Reality (VR) application, an Augmented Reality (AR) program, a three-dimensional map program, a virtual reality game, an augmented reality game, a casual game, a party game, a First-Person Shooting Game (FPS), a Third-Personal Shooting Game (TPS), a Multiplayer Online Battle Arena Games (MOBA), and a Simulation Game (SLG). In this embodiment, the client 111 is taken as an FPS game for example. The first terminal 110 is a terminal used by the first user 112. The first user 112 uses the first terminal 110 to control a first virtual object located in the virtual environment to perform activities. The first virtual object can be called the virtual object of the first user 112. The activities of the first virtual object include but are not limited to at least one of moving, jumping, teleporting, releasing skills, using items, adjusting body postures, crawling, walking, running, cycling, flying, jumping, driving, picking up, shooting, attacking, and throwing. Schematically, the first virtual object is at least one of a simulated human character, an anime character, a virtual animal, and a virtual plant.
[0063] The second terminal 130 installs and runs a client 131 that supports a virtual environment. The client 131 can be a multiplayer online battle program. When the second terminal 130 runs the client 131, the user interface of the client 131 is displayed on the screen of the second terminal 130. The client can be any one of a battle royale shooting game, a VR application, an AR program, a three-dimensional map program, a virtual reality game, an augmented reality game, an FPS, a TPS, a MOBA, and an SLG. In this embodiment, the client is taken as a MOBA game for example. The second terminal 130 is a terminal used by the second user 132. The second user 132 uses the second terminal 130 to control a second virtual object located in the virtual environment to perform activities. The second virtual object can be called the virtual object of the second user 132. Similarly, schematically, the second virtual object is at least one of a simulated human character, an anime character, a virtual animal, and a virtual plant.
[0064] Optionally, the first virtual object and the second virtual object are in the same virtual environment. Optionally, the first virtual object and the second virtual object may belong to the same camp, the same team, the same organization, have a friendship relationship, or have temporary communication permissions. Optionally, the first virtual object and the second virtual object may belong to different camps, different teams, different organizations, or have a hostile relationship.
[0065] It should be noted that the control operation of one or more virtual objects in the virtual environment in this application, or the human-computer interaction operation performed by interacting with the environmental elements in the virtual environment, can be implemented as at least one of the following: touch operations on the touch screen (such as at least one of single-click, double-click, long-press, etc.); triggering operations of physical buttons, physical rollers and other components of information input devices such as keyboards and mice, and moving operations of mouse devices; pressing operations on physical buttons on the handle, and toggling operations on physical joysticks; moving operations on virtual reality (VR) devices and augmented reality (AR) devices, and obtaining pressing operations on physical buttons and toggling operations on physical joysticks set on the above devices.
[0066] Optionally, the clients installed on the first terminal 110 and the second terminal 130 are the same, or the clients installed on the two terminals are of the same type on different operating system platforms (Android or iOS). The first terminal 110 can generally refer to one of multiple terminals, and the second terminal 130 can generally refer to another of the multiple terminals. This embodiment only takes the first terminal 110 and the second terminal 130 as examples for illustration. The device types of the first terminal 110 and the second terminal 130 are the same or different, and the device types include at least one of smart phones, tablet computers, e-book readers, MP3 players, MP4 players, laptop computers, and desktop computers.
[0067] Figure 1 Only two terminals are shown in the figure, but in different embodiments, there are multiple other terminals 140 that can access the server 120. Optionally, there is also one or more terminals 140 that are the terminals corresponding to the developer. A development and editing platform for the client that supports the virtual environment is installed on the terminal 140. The developer can edit and update the client on the terminal 140, and transmit the updated client installation package to the server 120 through a wired or wireless network. The first terminal 110 and the second terminal 130 can download the client installation package from the server 120 to update the client.
[0068] The first terminal 110, the second terminal 130, and the other terminals 140 are connected to the server 120 through a wireless network or a wired network.
[0069] Server 120 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Server 120 is used to provide back-end services for clients that support a three-dimensional virtual environment. Optionally, Server 120 undertakes the main computing work and the terminal undertakes the secondary computing work; or, Server 120 undertakes the secondary computing work and the terminal undertakes the main computing work; or, a distributed computing architecture is adopted between Server 120 and the terminal for collaborative computing.
[0070] In a schematic example, Server 120 includes a processor 122, a user account database 123, a battle service module 124, and a user-oriented Input / Output Interface (I / O interface) 125. Among them, the processor 122 is used to load the instructions stored in Server 120 and process the data in the user account database 123 and the battle service module 124; the user account database 123 is used to store the data of the user accounts used by the first terminal 110, the second terminal 130, and other terminals 140, such as the avatars of the user accounts, the nicknames of the user accounts, the combat power indexes of the user accounts, and the service areas where the user accounts are located; the battle service module 124 is used to provide multiple battle rooms for users to conduct battles, such as 1V1 battles, 3V3 battles, 5V5 battles, etc.; the user-oriented I / O interface 125 is used to establish communication with the first terminal 110 and / or the second terminal 130 through a wireless network or a wired network to exchange data.
[0071] The method provided in this application can be but is not limited to being applied to at least one of the following scenarios: virtual reality applications, three-dimensional map programs, casual games, party games, First-Person Shooting Games (FPS), Third-Person Shooting Games (TPS), Multiplayer Online Battle Arena Games (MOBA), multiplayer gunfight survival games, etc. The following embodiments are illustrated by taking the application in games as an example.
[0072] Figure 2 The figure shows a schematic diagram of a method for controlling a virtual object provided by an exemplary embodiment of this application.
[0073] In the first interface 310, a first virtual object 402 in the virtual environment is displayed. The first virtual object is the master virtual object of the computer device that displays the first interface 310. The position of the first virtual object 402 is in the evacuation area 410, which is a two-dimensional or three-dimensional area in the virtual environment. Exemplarily, the evacuation area 410 is the peripheral area of the evacuation point. Exemplarily, the edge of the evacuation area 410 is displayed, and a part of the edge of the evacuation area 410 is displayed in the viewing angle of the first virtual object.
[0074] In response to the position of the first virtual object 402 being in the evacuation area 410, the display timer 420 starts timing. The timer 420 counts down from 30 seconds. A first prompt message 432 is also displayed to prompt that the timer has started timing.
[0075] As time goes by, the timer 420 counts down from 30 seconds, and the value displayed by the timer 420 decreases. Until the value displayed by the timer 420 decreases to 22 seconds, the second interface 320 is displayed.
[0076] In the second interface 320, an enemy virtual object 404 enters the evacuation area 410. When there is an enemy virtual object 404 in the evacuation area, the virtual camp to which the first virtual object 402 belongs does not fully control the evacuation area 410, the timer 420 is paused or the timing rate of the timer 420 is reduced, delaying the progress of the first virtual object 402 to achieve the evacuation operation in the virtual environment. In the second interface 320, a second prompt message 434 is displayed to prompt that the timing rate of the timer has changed, such as: other squads enter the point, and the evacuation countdown is paused.
[0077] In the second interface 320, the edge style of the evacuation area 410 and the display style of the timer 420 change, such as changing the color, changing the transparency, etc. at least one of the ways, in a way that the visual style is different, to prompt that the enemy virtual object 404 enters the evacuation area 410. After the enemy virtual object 404 leaves the evacuation area 410, the paused timer 420 resumes timing or the timing rate of the timer 420 resumes to the timing rate at the moment before the enemy virtual object 404 enters the evacuation area 410.
[0078] Exemplarily, in the third interface 330, the enemy virtual object 404 leaves the evacuation area 410, and the corresponding edge style of the evacuation area 410 and the display style of the timer 420 are restored to the same display style as in the first interface 310. In the third interface 330, a third prompt message 436 is displayed to prompt that the first virtual object 402 is about to complete the evacuation operation, where the text information in the third prompt message 436 is displayed in bold, having visual salience.
[0079] Next, the control method for virtual objects will be introduced through the following embodiments.
[0080] Figure 3 The flowchart of the control method for virtual objects provided by an exemplary embodiment of the present application is shown. This method can be executed by a computer device. The method includes:
[0081] Step 510: Display a first virtual object located in a virtual environment.
[0082] In the virtual environment, the first virtual object has the ability to perform virtual activities in the virtual environment, and the virtual environment is the virtual space for the first virtual object to perform virtual activities; for example, the first virtual object performs virtual competition in the virtual game by using virtual skills. The virtual environment can be any one of a two-dimensional virtual environment, a 2.5D virtual environment, and a three-dimensional virtual environment. In this embodiment, the first virtual object is the main control role of the computer device that executes the embodiment of this method; exemplarily, the first computer device can be implemented as a terminal.
[0083] Step 520: In response to the presence of friendly virtual objects of the virtual camp where the first virtual object is located in the evacuation area, display the start of the timer for timing.
[0084] Exemplarily, the friendly virtual objects are one or more virtual objects in the virtual camp where the first virtual object is located. As introduced above, the number of friendly virtual objects can be one or more, and the friendly virtual object and the first virtual object can be the same virtual object.
[0085] Exemplarily, the presence of friendly virtual objects in the evacuation area can be displayed by the computer device when the observation range of the first virtual object includes the evacuation area; it can also be provided by the background server of the application program that provides the virtual environment, indicating the presence of friendly virtual objects in the evacuation area.
[0086] Exemplarily, the timer is used to indicate the time required for the friendly virtual object to complete the evacuation operation in the virtual environment. Exemplarily, the timer can count up or count down. When counting down, the remaining time of the timer is used to indicate the time required for the friendly virtual object to complete the evacuation operation in the virtual environment. When counting up, the timing time of the timer is used to indicate the elapsed timing duration corresponding to the current moment. When the timing duration reaches the first duration threshold, the evacuation operation is completed. The timing time of the timer and the first duration threshold indirectly indicate the time required for the friendly virtual object to complete the evacuation operation in the virtual environment.
[0087] Exemplarily, the timer counts time at a first rate, and the first rate is used to indicate the ratio between the time duration counted by the timer and the time duration in the real world (or the virtual world provided by the virtual environment). This will be introduced in the form of individual embodiments hereinafter. Exemplarily, in the case of the same time duration in the real world or the virtual world, as the first rate increases, the time duration counted by the timer increases.
[0088] As introduced above, the friendly virtual object in the evacuation area and the first virtual object may be the same or different virtual objects. Figure 2 The corresponding embodiment shows the case where the friendly virtual object is the same as the first virtual object, that is, the first virtual object is located within the evacuation area. Figure 4 FIG. shows a schematic diagram of a virtual environment provided by an exemplary embodiment of the present application. The first virtual object 402 is located outside the evacuation area 410, and the edge of the evacuation area 410 shown in this embodiment is a partially straight edge. Exemplarily, the timer 420 is displayed on the head-up display layer and is superimposed on the virtual environment in a semi-transparent manner, and while displaying the value of the timer 420, it can indicate the direction of movement towards the evacuation area 410.
[0089] Step 530: When there is an enemy virtual object in the evacuation area, display that the timer pauses counting or the timer counts time at a second rate; and when the enemy virtual object exits the evacuation area, display that the timer resumes counting time at the first rate.
[0090] Exemplarily, when there is an enemy virtual object in the evacuation area, the virtual camp to which the first virtual object belongs does not fully control the evacuation area. By pausing the timer, the progress of the friendly virtual object's evacuation operation in the virtual environment is paused. Or by reducing the counting rate of the timer from the first rate to the second rate (that is, the first rate is greater than the second rate), the progress of the friendly virtual object's evacuation operation in the virtual environment is delayed.
[0091] And when the enemy virtual object exits the evacuation area, all the virtual objects in the evacuation area are friendly virtual objects in the virtual camp, and the friendly virtual objects have achieved full control of the evacuation area, and the timer resumes counting time at the first rate.
[0092] By providing a negative gain for the timing performed by the timer in the presence of enemy virtual objects in the evacuation area, it guides the controller of the friendly virtual object to actively launch a virtual attack on the enemy virtual object in order to complete the evacuation operation as soon as possible, thereby forcing the second virtual object to leave the evacuation area. On the one hand, it improves the intensity of virtual competition between friendly virtual objects and enemy virtual objects in the evacuation area, can shorten the duration of a single virtual game, and thus increase the number of virtual games that the background server providing background support for virtual games can support per unit time, improving the utilization efficiency of computing resources. On the other hand, it provides a new timing method for the evacuation area in the virtual environment. Through the change of the timing rate of the timer, it provides the friendly virtual object with a prompt message indicating whether there are enemy virtual objects in the evacuation area, providing a new human-computer interaction method for the friendly virtual object to observe the virtual environment.
[0093] Step 540: In response to the timing duration of the timer reaching the first duration threshold, display that the friendly virtual object has completed the evacuation operation in the virtual environment.
[0094] Exemplarily, the first duration threshold is used to indicate the time required for the friendly virtual object to complete the evacuation operation in the virtual environment. The first duration threshold can be a preset fixed value (such as 30 seconds), or it can be set according to human-computer interaction operations. Further, there is an association between the first time threshold and the quantity of virtual resources carried by the friendly virtual object when it completes the evacuation operation in the virtual environment; for example, as the first time threshold decreases, the maximum value of the quantity of virtual resources carried by the virtual object when it completes the evacuation operation in the virtual environment decreases; it is also said that there is a positive correlation between the first time threshold and the maximum value of the quantity of virtual resources.
[0095] In summary, the method provided in this embodiment adjusts the timing rate of the timer of the friendly virtual object in the evacuation area according to whether there are enemy virtual objects in the evacuation area; realizes the connection between the timing rate of the timer and whether the virtual camp where the friendly virtual object is located controls the evacuation area. It provides a new human-computer interaction method for the virtual object to evacuate from the virtual environment. By delaying the progress of the friendly virtual object to complete the evacuation operation, it prompts the friendly virtual object to perform virtual competition with the enemy virtual object entering the evacuation area, improves the intensity of virtual competition between friendly virtual objects and enemy virtual objects in the evacuation area, can shorten the duration of a single virtual game, and thus increase the number of virtual games that the background server providing background support for virtual games can support per unit time, further improving the utilization efficiency of computing resources.
[0096] Figure 5 Shows a flowchart of a control method for a virtual object provided by an exemplary embodiment of the present application. This method can be executed by a computer device. That is, in Figure 3In the illustrated embodiment, step 530 may be implemented as step 532 and step 534:
[0097] Step 532: When there is an enemy virtual object in the evacuation area, display that the elapsed time of the timer pauses to a first duration, or the timer counts at a second rate based on the first duration.
[0098] As introduced in step 520 above, the timer starts counting based on a first rate. Exemplarily, the first duration is the elapsed time of the timer, and the first duration is used to indicate the time interval between the first moment when the timer starts and the second moment when there is an enemy virtual object in the evacuation area; the first duration is obtained by the timer counting at the first rate. In some examples, the first duration is the product of the first rate and the time interval between the first moment and the second moment in the real world or the virtual world.
[0099] Furthermore, the first rate may be a preset fixed value, or a value set according to human-computer interaction operations or determined according to information in the virtual environment. The present application does not limit the determination methods of the first rate and the second rate.
[0100] Exemplarily, in this step, the timer counts at a second rate based on the first duration, and the counting rate of the timer changes; when the timer counts at the second rate, it continues to count based on the first duration.
[0101] It can be understood that in various embodiments of the present application, the timer can display different values at at least two timestamps to indicate that the timer is counting. And / or display the same value at at least two timestamps to indicate that the timer pauses counting. It should be noted that the counting rate of the timer (such as the first rate, the second rate, etc.) can be determined by counting the difference in the displayed values of the timer within a unit time length (such as 1 second, 5 seconds, 1 minute, etc.) to obtain the value of the counting rate, or the magnitude relationship between different counting rates. It can be understood that the greater the difference in the displayed values of the timer within the unit time length, the greater the value of the counting rate.
[0102] Step 534: When the enemy virtual object exits the evacuation area, display that the timer resumes counting at the first rate.
[0103] Exemplarily, the timer resumes counting at the first rate, and the counting rate of the timer changes, switching from pausing counting or counting at the second rate to counting at the first rate.
[0104] Exemplarily, in this step, the timer resumes timing at the first rate based on the first duration. It should be noted that this embodiment does not limit the first duration as the starting duration for the timer to resume timing at the first rate. For example, when step 532 is implemented as the timer timing at the second rate based on the first duration, as time goes by, when the enemy virtual object remains in the evacuation area for a period of time, the timer continues to time at the second rate, that is, the first duration will change. Since the changed duration is obtained based on the first duration, when performing this step, the changed duration is used as the starting duration for the timer to resume timing at the first rate, which belongs to the situation described in this embodiment.
[0105] In an alternative implementation of the present application, step 534 can be implemented as at least one of the following two sub-steps:
[0106] Sub-step one: When the enemy virtual object is defeated in the evacuation area, display that the timer resumes timing at the first rate based on the second duration;
[0107] In this step, the enemy virtual object is defeated in the evacuation area by a virtual attack (such as a virtual attack initiated by a friendly virtual object or a virtual attack from a virtual mechanism placed by a friendly virtual object).
[0108] Among them, the second duration is corrected based on the first duration; the second duration is usually greater than the first duration, providing a positive gain to the timing of the timer by defeating the enemy virtual object; however, it does not exclude the case where the second duration is less than the first duration.
[0109] Sub-step two: When the enemy virtual object leaves the evacuation area based on a human-computer interaction operation, display that the timer resumes timing at the first rate based on the third duration;
[0110] In this step, the enemy virtual object leaves the evacuation area based on a human-computer interaction operation and maintains its survival state in the virtual environment at the moment of leaving the evacuation area.
[0111] Among them, the third duration is corrected based on the first duration; similar to the above description, the third duration is usually greater than the first duration, but it does not exclude the case where the third duration is less than the first duration.
[0112] It should be noted that the second duration is greater than the third duration. Since the second duration is greater than the third duration, in the case introduced in sub-step 1, the friendly virtual object waits in the evacuation area for a shorter time to complete the evacuation operation. By providing a positive gain of more timing duration for the case of defeating the enemy virtual object, it guides the controller of the friendly virtual object to launch a virtual attack on the enemy virtual object, further increasing the intensity of the virtual competition between the friendly virtual object and the enemy virtual object in the evacuation area, which can shorten the duration of a single virtual game, and then increase the number of virtual games that the background server providing background support for the virtual game can support per unit time, further improving the utilization efficiency of computing resources.
[0113] In summary, the method provided in this embodiment adjusts the timing rate of the timer of the friendly virtual object in the evacuation area according to whether there is an enemy virtual object in the evacuation area; realizes the connection between the timing rate of the timer and whether the virtual camp where the friendly virtual object is located controls the evacuation area. It provides a new human-computer interaction method for the virtual object to evacuate from the virtual environment. By delaying the progress of the friendly virtual object to achieve the evacuation operation, it prompts the friendly virtual object to perform virtual competition with the enemy virtual object entering the evacuation area, increasing the intensity of the virtual competition between the friendly virtual object and the enemy virtual object in the evacuation area, which can shorten the duration of a single virtual game, and then increase the number of virtual games that the background server providing background support for the virtual game can support per unit time, further improving the utilization efficiency of computing resources.
[0114] Next, a further introduction to the evacuation area is as follows:
[0115] Figure 6 The flowchart of the control method of the virtual object provided by an exemplary embodiment of the present application is shown. This method can be executed by a computer device. That is, on the basis of the embodiment shown in Figure 3 On the basis of the shown embodiment, it further includes step 512, step 513, step 550, and step 520 can be implemented as step 522:
[0116] Step 512: Display the activation duration of the evacuation area.
[0117] In this embodiment, after the first virtual object enters the virtual environment, when the evacuation area is in an unactivated state, even if there is a virtual object entering the evacuation area, the timer will not be started. After a period of time, the evacuation area switches from the unactivated state to the activated state. When the evacuation area is in the activated state, the timer is started when a virtual object enters the evacuation area.
[0118] Exemplarily, the activation duration is used to indicate the time required for the evacuation area to switch from the unactivated state to the activated state. It can be understood that as time goes by, the value of the activation duration is different at different timestamps.
[0119] Exemplarily, in the case where each step in step 512, step 513 and Figure 3 is combined separately to form a new embodiment, there is no limitation on the display manner of the activation duration. The activation duration can be displayed on the head-up display layer, or superimposed and displayed on the virtual map, or can be displayed as at least one of a card message, a bubble message, a pop-up window, etc. Similarly, there is no limitation on the display manner of the timer in the above text, and the timer can be displayed in any manner introduced by the activation duration.
[0120] Figure 7 The schematic diagram of the virtual map provided by an exemplary embodiment of the present application is shown. The activation duration is superimposed and displayed on the virtual map, providing a visual display manner for the prompt party of the virtual object to conveniently view the activation duration when viewing the terrain in the virtual map. In sub-figure (a), the value of the activation duration is 10:00. As time goes by, in sub-figure (b), the value of the activation duration is 08:30. As time goes by, until the activation duration counts down to a value of 0, the remaining duration of the evacuation area in the activated state is displayed as 25:52. For the introduction of the remaining duration, please refer to step 513 in the following text.
[0121] In an alternative implementation manner, before step 510, before entering the virtual environment, tutorial information for the evacuation area is also displayed; Figure 8 The schematic diagram of the virtual environment provided by an exemplary embodiment of the present application is shown. In sub-figure (a), the tutorial information 450 of the evacuation area is displayed. After closing the tutorial information 450, sub-figure (b) is displayed to present the preparation screen before entering the virtual environment.
[0122] Step 513: When the activation duration reaches the activation threshold, display the remaining duration of the evacuation area in the activated state.
[0123] Exemplarily, after the evacuation area switches to the activated state, there is a holding time for the activated state. By providing an evacuation area with a time limit, the control party of the virtual object in the virtual environment is guided to actively approach the evacuation area, thereby increasing the probability of approaching between virtual objects of different virtual camps and increasing the intensity of virtual competition between friendly virtual objects and enemy virtual objects in the evacuation area.
[0124] Exemplarily, by displaying the remaining duration for which the evacuation area is in an active state, it prompts the controller of the first virtual object about the remaining time for which the evacuation area remains active, providing more cues for the virtual activity currently being executed by the first virtual object.
[0125] In one implementation, in this step, only the fact that the evacuation area is in an active state is displayed, and the evacuation area always remains active without any remaining duration. In another implementation, the remaining duration is displayed when the distance between the first virtual object and the evacuation area in time is less than a distance threshold (for example, the distance threshold is 100 meters). Further, the number of evacuation areas in an active state exceeds a number threshold (for example, the number threshold is 2). In yet another implementation, the remaining duration is always displayed regardless of the distance in time between the first virtual object and the evacuation area. Further, the number of evacuation areas in an active state does not exceed the number threshold (similarly, for example, the number threshold is 2).
[0126] It can be understood that when the number of evacuation areas in an active state exceeds the number threshold, there are more evacuation areas in an active state, and the controller of the first virtual object has more possible directional behaviors. When controlling the first virtual object to go to different evacuation areas, it does not pay attention to the remaining duration of a certain or certain evacuation areas, and only displays when the first virtual object is close to the evacuation area to avoid blocking the view of the virtual environment.
[0127] When the number of evacuation areas in an active state does not exceed the number threshold, the number of evacuation areas in an active state is small, and the controller of the first virtual object needs to timely grasp the state of the evacuation area. Keeping the remaining duration always displayed can provide cues for the control operation of the first virtual object, prompting to approach the evacuation area in time.
[0128] Optionally, the remaining duration is a countdown. When the remaining duration is less than a remaining threshold (for example, 10 seconds), the global prompt unlocks the countdown, making the global players notice the information that evacuation will soon be available. After the evacuation point is unlocked, the global prompt is "Evacuation point unlocked", and the color of the evacuation point icon changes (for example, turns green) to convey the state of available evacuation.
[0129] Step 522: In response to the presence of a friendly virtual object of the virtual camp where the first virtual object is located in the evacuation area, switch the display of the remaining duration to start timing of a timer.
[0130] Exemplarily, the remaining duration has the same display method as the timer, ensuring the consistency of the intuitive display method, and can effectively prompt the controller of the first virtual object to enter the evacuation area in time or cooperate with the friendly virtual object to guard the evacuation area after the friendly virtual object enters the evacuation area, to prevent enemy virtual objects from entering the evacuation area.
[0131] Among them, the timer is displayed on the Heads-up Display (HUD) layer, and the HUD layer is superimposed and displayed on the viewing screen of the virtual environment.
[0132] The Heads-up Display (HUD) layer is a screen for displaying relevant information within the virtual environment, usually displayed on the upper layer of the virtual environment screen. The HUD layer is the most effective way for the virtual environment to interact with players. Elements that can convey information to players through visual effects can be called HUDs. Common controls or display elements shown on the HUD layer include operation controls, item bars, maps, ammunition slots, health bars, sights, etc. The Heads-up Display layer is also called the heads-up display layer.
[0133] Figure 9 A schematic diagram of a virtual environment provided by an exemplary embodiment of the present application is shown. In subfigure (a), the edge of the first virtual object 402 and the evacuation area 410 is displayed; and the remaining duration 442 of the evacuation area being in an active state is displayed on the HUD layer. As time goes by, in response to the presence of a friendly virtual object 403 of the virtual camp where the first virtual object 402 is located in the evacuation area 410, subfigure (b) is displayed, and the remaining duration 442 is switched and displayed as a prompt message 444 for the timer to start timing on the HUD layer.
[0134] In an alternative implementation manner of the present application, it further includes:
[0135] · In response to the timing duration of the timer reaching a second duration threshold, the timer is displayed in a visually prominent manner, and a prompt message for the evacuation operation is displayed.
[0136] Among them, when the first virtual object is within the evacuation area, the prompt message is used to indicate the moment approaching the completion of the evacuation operation; when the first virtual object is outside the evacuation area, the prompt message is used to prompt the first virtual object to move inside the evacuation area; the second duration threshold is less than the first duration threshold.
[0137] Exemplarily, the visually prominent manner is used to indicate that compared with the timer displayed in step 520, the timer in this step has at least one of a larger display area, a display position closer to the center point of the screen, a higher transparency, being displayed in a highlighted manner, being displayed in a flashing manner, thickening the edge of the timer, etc. Similarly, Figure 2 the third prompt message in the third interface as shown shows a visually prominent display manner with bold font.
[0138] It should be noted that the moment when the timing duration of the timer reaches the second duration threshold can be a moment before, after, or at the same time as step 530, and this embodiment places no restrictions on the execution timing sequence between the above steps.
[0139] Step 550: In response to the timing duration of the timer reaching the first duration threshold, or the remaining duration of the evacuation area in the active state being cleared, display that the evacuation area switches from the active state to the inactive state.
[0140] Exemplarily, when the evacuation area is in use (for example, there is a virtual object that has completed the evacuation operation from the evacuation area) or the remaining duration is cleared (for example, as time passes, the remaining duration becomes 0), the evacuation area switches from the active state to the inactive state.
[0141] It should be noted that steps 512, 513, and 522 in this embodiment can be combined with Figure 3 each step in to form a new embodiment for separate implementation; steps 512, 513, and 550 in this step can be combined with Figure 3 each step in to form a new embodiment for separate implementation; the present application does not limit the above implementation manners.
[0142] In summary, the method provided in this embodiment, by displaying information such as the activation duration and the remaining duration, provides a visual presentation method of the status information of the evacuation area for the controller of the virtual object, facilitating the controller of the virtual object to view the relevant information of the evacuation area in a way that is imperceptible to the player, without relying on operations such as clicking, and improving the human-computer interaction efficiency. By whether there is an enemy virtual object in the evacuation area, adjust the timing rate of the timer of the friendly virtual object in the evacuation area; by delaying the progress of the friendly virtual object to achieve the evacuation operation, prompt the friendly virtual object to perform virtual competition with the enemy virtual object entering the evacuation area, increasing the intensity of the virtual competition between the friendly virtual object and the enemy virtual object in the evacuation area, which can shorten the duration of a single virtual game, and further increase the number of virtual games that the background server supporting the virtual game can support per unit time, further improving the utilization efficiency of computing resources.
[0143] Figure 10 shows a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application. This method can be executed by a computer device. That is, on the basis of the embodiment shown in Figure 3 it further includes step 514:
[0144] Step 514: Display distance prompt information of the evacuation area, where the distance prompt information is used to indicate the distance between the first virtual object and the evacuation area;
[0145] Exemplarily, the distance prompt information is displayed on the head-up display layer, and the head-up display layer is superimposed on the observation screen of the virtual environment. Figure 11A schematic diagram of a virtual environment provided by an exemplary embodiment of the present application is shown. The first virtual object 402 is located outside the evacuation area 410, and the edge of the evacuation area 410 shown in this embodiment is a partially straight edge. Exemplarily, the distance prompt information 460 is displayed on the head-up display layer and superimposed on the virtual environment in a semi-transparent manner. The displayed distance prompt information 460 is used to indicate the distance between the first virtual object and the evacuation area;
[0146] Furthermore, the distance prompt information 460 is a floating user interface design (User Interface Design, UI) displayed on the virtual environment, giving players clearer direction and distance guidance. At the same time, in order not to affect players who choose other evacuation areas or cause unnecessary occlusion to the virtual environment, the distance prompt information 460 is displayed when the distance between the first virtual object and the evacuation area is less than a distance threshold (such as 100 meters).
[0147] In an alternative design, the display style of the display information related to the evacuation area (such as at least one of the distance prompt information, timer, etc.) mentioned in various embodiments of the present application is related to the number of friendly virtual objects and enemy virtual objects in the evacuation area. The display style includes but is not limited to at least one of color, transparency, and display area. Taking color as an example, in the case where only friendly virtual objects are included in the evacuation area, it is implemented as a first color (such as blue); in the case where the number of enemy virtual objects in the evacuation area does not exceed a number threshold (such as 1), it is implemented as a second color (such as orange); in the case where the number of enemy virtual objects in the evacuation area exceeds the number threshold (such as 1), it is implemented as a third color (such as red). Furthermore, in the case where there are enemy virtual objects in the evacuation area, competitive prompt information is also displayed, such as "Other squads have entered the evacuation area, please go and compete for it."
[0148] In summary, the method provided in this embodiment, in summary, the method provided in this embodiment, by displaying the distance prompt information, provides a visual presentation method for the distance interval of the evacuation area for the controller of the virtual object, facilitating the controller of the virtual object to view the distance prompt information in a way that is imperceptible to the player, without relying on operations such as clicking, and improving the human-computer interaction efficiency. By adjusting the timing rate of the timer of the friendly virtual object in the evacuation area according to whether there are enemy virtual objects in the evacuation area; by delaying the progress of the friendly virtual object to achieve the evacuation operation, prompting the friendly virtual object to perform virtual competition with the enemy virtual object that enters the evacuation area, increasing the intensity of the virtual competition between the friendly virtual object and the enemy virtual object in the evacuation area, being able to shorten the duration of a single virtual game, and further increasing the number of virtual games that the background server supporting the virtual games can support per unit time, further improving the utilization efficiency of computing resources.
[0149] Next, the process of determining the timing rate of the timer is introduced.
[0150] Figure 12 The flowchart of the control method of the virtual object provided by an exemplary embodiment of the present application is shown. This method can be executed by a computer device. That is, on the basis of the embodiment shown, it further includes at least one of step 515 and step 525: Figure 3 On the basis of the shown embodiment, it further includes at least one of step 515 and step 525:
[0151] Step 515: Obtain the first object information of the friendly virtual object, and determine the first rate according to the first object information.
[0152] Exemplarily, the timing duration of the timer timing at the first rate is the product of the first rate and the first time interval, and the first time interval is the interval between the start time of the timer and the current time. Among them, the current time introduced in this step can be implemented as any time before step 530.
[0153] The first rate and the second rate in this embodiment are both the timing rates of the timer. As introduced above, the first rate is greater than the second rate. By reducing the timing rate of the timer, the progress of the friendly virtual object to perform the evacuation operation in the virtual environment can be delayed.
[0154] Exemplarily, the first object information is information related to the friendly virtual object. The first object information can be the information of the friendly virtual object in the current virtual environment or the historical activity information of the friendly virtual object. For example, at least one of the position of the first virtual object in the virtual environment, virtual health value, virtual experience value, obtained virtual resources, virtual competitive scores obtained in the historical virtual game, etc.
[0155] In an alternative implementation manner of the present application, the first object information can be implemented as at least one of the following:
[0156] · The first object information includes the number of friendly virtual objects, and there is a positive correlation between the first rate and the number of friendly virtual objects;
[0157] Exemplarily, as the number of friendly virtual objects in the virtual area increases, the first rate increases accordingly, prompting each virtual object in the virtual camp where the first virtual object is located to jointly select to enter the same evacuation area, so as to realize the mutual cooperation of the virtual objects in the virtual camp to achieve virtual competition, such as cooperating to complete the evacuation operation. Further, the virtual object that has completed the evacuation operation can hold the virtual resources obtained in the virtual environment (for example, it can carry the virtual resources obtained from the virtual environment provided by the current virtual game to the virtual environment provided by the next virtual game).
[0158] It can be understood that in some examples, the virtual camp where the first virtual object is located may include only one virtual object.
[0159] · The first object information includes the quantity of virtual resources obtained by friendly virtual objects in the virtual environment, and there is a negative correlation between the first rate and the quantity of virtual resources;
[0160] Exemplarily, as the quantity of virtual resources obtained by friendly virtual objects in the virtual environment in the virtual area increases (also known as the quantity of carried virtual resources increases), the first rate decreases accordingly; on the one hand, it realizes the characteristic of being inconvenient to move when carrying more items in the real world; on the other hand, it provides players with a control method for freely controlling the difficulty of the evacuation operation. By adjusting the quantity of carried virtual resources, the first rate is adjusted, and thus the time required to complete the evacuation operation is adjusted.
[0161] Exemplarily, the virtual resources can be at least one of virtual shooting props, virtual decorations, virtual clothing, virtual ammunition, virtual food, etc., or can also be realized as virtual assets in the virtual environment such as virtual gold coins, virtual diamonds, etc.
[0162] · The first object information includes the virtual experience value of friendly virtual objects performing virtual activities in the virtual environment, and there is a positive correlation between the first rate and the virtual experience value.
[0163] Exemplarily, as the virtual experience value of friendly virtual objects in the virtual area increases, the first rate increases accordingly; it provides a positive gain for virtual objects with higher virtual experience values. By increasing the first rate, the time required to complete the evacuation operation is shortened, providing a new incentive method based on virtual experience values for virtual objects in the virtual environment.
[0164] Exemplarily, the virtual experience value can be obtained by performing virtual activities in the current game and / or historical games, such as at least one of the character level and virtual rank score of friendly virtual objects.
[0165] Step 525: Obtain the second object information of the enemy virtual object, and determine the second rate according to the second object information.
[0166] Exemplarily, the timing duration of the timer timing at the second rate is the product of the second rate and the second time interval, and the second time interval is the interval between the moment when there is an enemy virtual object in the evacuation area and the current moment. Among them, the current moment introduced in this step can be realized as any moment during the execution of Step 530.
[0167] Similarly, the second object information is information related to the enemy virtual object. The second object information can be the information of the enemy virtual object in the current virtual environment, or the historical activity information of the friendly virtual object.
[0168] In an alternative implementation manner of the present application, the second object information can be implemented as at least one of the following:
[0169] · The second object information includes the number of enemy virtual objects, and there is a negative correlation between the second rate and the number of enemy virtual objects;
[0170] Exemplarily, as the number of enemy virtual objects in the virtual area increases, the second rate decreases accordingly. As the number of enemy virtual objects in the virtual area increases, by reducing the second rate, a negative gain is provided for the evacuation operation of the friendly virtual object, prompting the friendly virtual object to engage in virtual competition with the enemy virtual object and expelling the enemy virtual object from the evacuation area.
[0171] · The second object information includes the first position where the enemy virtual object is located, and there is a positive correlation between the second rate and the distance interval. The distance interval is the distance between the first position and the second position in the virtual area;
[0172] Exemplarily, as the distance between the first position and the second position approaches, the second rate decreases accordingly. By reducing the second rate, a negative gain is provided for the evacuation operation of the friendly virtual object, prompting the friendly virtual object to engage in virtual competition with the enemy virtual object and expelling the enemy virtual object from the evacuation area.
[0173] Among them, the second position can be at least one of the center point of the evacuation area, a preset position, the position where the friendly virtual object is located, and the position set by the friendly virtual object. It is realized that as the enemy virtual object approaches the second position, the negative gain caused to the friendly virtual object gradually increases.
[0174] · The second object information includes the virtual attribute information of the enemy virtual object, and there is a negative correlation between the second rate and the virtual attribute information.
[0175] Exemplarily, as the virtual attribute information of the enemy virtual object increases, the second rate decreases accordingly. By reducing the second rate, a negative gain is provided for the evacuation operation of the friendly virtual object. Delaying the progress of the friendly virtual object's evacuation operation in the virtual environment can provide more competition time for the enemy virtual object, providing a new incentive method based on virtual attribute information for virtual objects in the virtual environment.
[0176] Among them, the virtual attribute information includes at least one of virtual health value, virtual magic value, and virtual experience value.
[0177] It should be noted that, on the one hand, the execution timing of step 515 can be executed at a moment before step 530, or after step 530 and before step 540; the execution timing of step 525 can be executed before or simultaneously with step 530. On the other hand, referring to the introductions in step 515 and step 525, the timing rate of the timer can be implemented as a dynamically determined process. For example, at different times, due to the change of the first object information, the value of the first rate is different; similarly, at different times, due to the change of the second object information, the value of the second rate is different. It can be understood that, for example, in the case of timing at the first rate, step 515 can be synchronously executed to achieve dynamic adjustment of the first rate; similarly, it also applies to the case of timing at the second rate.
[0178] In summary, the method provided in this embodiment adjusts the timing rate of the timer of the friendly virtual object in the evacuation area according to whether there is an enemy virtual object in the evacuation area; realizes the connection between the timing rate of the timer and whether the virtual camp where the friendly virtual object is located controls the evacuation area.
[0179] By obtaining the object information, the timing rate of the timer is adjusted, a function entry for adjusting the timing rate of the timer is provided, and the specific way of the timer to perform timing is expanded. By delaying the progress of the friendly virtual object to achieve the evacuation operation, it prompts the friendly virtual object to perform virtual competition with the enemy virtual object entering the evacuation area, improves the intensity of virtual competition between the friendly virtual object and the enemy virtual object in the evacuation area, can shorten the duration of a single virtual game, and further increases the number of virtual games that the background server supporting the virtual game can support per unit time, and further improves the utilization efficiency of computing resources.
[0180] In an alternative implementation manner of the present application, the following introduction is made regarding the timer resuming timing at the first rate, that is, in the case where the enemy virtual object exits the evacuation area in step 530, the display that the timer resumes timing at the first rate includes at least one of the following:
[0181] · In the case where the enemy virtual object is defeated by the friendly virtual object, display that the timer resumes timing at the first rate;
[0182] In the case where the enemy virtual object is defeated by the friendly virtual object, the enemy virtual object is no longer located in the evacuation area, and the enemy virtual object exits the evacuation area. In some examples, in the case where the enemy virtual object is defeated by the friendly virtual object, the enemy virtual object exits the evacuation area but remains in a surviving state in the virtual environment.
[0183] ·In the case where a friendly virtual object is defeated by an enemy virtual object, the displayed evacuation area is split into a first sub-area and a second sub-area, and the timer corresponding to the first sub-area resumes timing at a first rate;
[0184] In the case where a friendly virtual object is defeated by an enemy virtual object, the enemy virtual object has achieved the permission to continue performing virtual activities in the evacuation area in the way of defeating the friendly virtual object. By splitting the evacuation area into a first sub-area and a second sub-area, the evacuation area provides a function entry for virtual objects of different virtual camps to perform evacuation operations simultaneously.
[0185] First, introduce the first sub-area. The first sub-area is the area where the friendly virtual object is located; the shapes of the first sub-area and the second sub-area can be any polygon or a closed shape with curved edges, and this application does not limit this.
[0186] Regarding the areas of the first sub-area and the second sub-area: The area ratio between the first sub-area and the second sub-area is positively correlated with the quantity ratio between the friendly virtual objects in the surviving state and the enemy virtual objects in the surviving state. Among them, the friendly virtual objects in the surviving state are the virtual objects that have not been defeated by the enemy virtual objects in the evacuation area. The surviving state is different from the survival state in the above text. The surviving state is used to indicate whether it has been defeated in the evacuation area, and the survival state is used to indicate whether it remains alive in the virtual environment (such as having the permission to perform virtual activities). In some examples, being defeated in the evacuation area only indicates exiting the evacuation area and does not affect maintaining the survival state in the virtual environment. The controller of the virtual object can continue to control the virtual object to perform virtual activities, such as moving to other evacuation areas, etc. Exemplarily, the first rate is positively correlated with the area of the first sub-area.
[0187] Furthermore, the maximum number of virtual objects accommodated in the first sub-area is positively correlated with the area of the first sub-area. A larger area of the sub-area permits a larger number of virtual objects to be accommodated. When a larger number of friendly virtual objects in the virtual camp need to complete evacuation operations based on the evacuation area, they need to continue to perform virtual competitions with the enemy virtual objects. By defeating the enemy virtual objects, the number of enemy virtual objects in the surviving state is reduced, thereby increasing the area of the first sub-area and further enhancing the intensity of virtual competitions between friendly virtual objects and enemy virtual objects in the evacuation area.
[0188] Secondly, introduce the second sub-area. In an alternative design, each of the first sub-area and the second sub-area has a corresponding timer, and they perform timing independently. Similarly, the timing rate of the timer in the second sub-area is positively correlated with the area of the second sub-area.
[0189] In summary, the method provided in this embodiment realizes the function of providing an evacuation operation entry for virtual objects of different virtual camps in the evacuation area by splitting the evacuation area into a first sub-area and a second sub-area. By detecting whether there are enemy virtual objects in the evacuation area, the timing rate of the timer of the friendly virtual objects in the evacuation area is adjusted; so as to delay the progress of the friendly virtual objects to achieve the evacuation operation, prompt the friendly virtual objects to perform virtual competition with the enemy virtual objects entering the evacuation area, and increase the intensity of the virtual competition between the friendly virtual objects and the enemy virtual objects in the evacuation area, which can shorten the duration of a single virtual game, and then increase the number of virtual games that the background server supporting the virtual games can support per unit time, and further improve the utilization efficiency of computing resources.
[0190] Next, the virtual competition method between the friendly virtual objects and the enemy virtual objects will be introduced:
[0191] The friendly virtual objects and the enemy virtual objects achieve virtual competition by at least one of the ways such as using virtual attack props and arranging virtual organs. Exemplarily, the first competition method between the friendly virtual objects and the enemy virtual objects is a competition method executed within the evacuation area, and the second competition method is a competition method executed outside the evacuation area.
[0192] After entering the evacuation area, the virtual competition props permitted in the first competition method between the friendly virtual objects and the enemy virtual objects are a subset of the second competition method; for example, in the second competition method, the permitted virtual competition props include virtual shooting props, virtual melee props, and virtual throwing props; in the first competition method, the permitted virtual competition props include some of the virtual shooting props, virtual melee props, and virtual throwing props.
[0193] And / or the first virtual attack frequency permitted in the first competition method is less than the second virtual attack frequency permitted in the second competition; taking the virtual shooting prop as an example, continuous shooting of virtual ammunition can be achieved by continuously triggering the virtual shooting prop, and in the first competition method, only single triggering of the virtual shooting prop is allowed, or when continuously triggering the virtual shooting prop in the first competition method, the first number of virtual ammunition shot per unit time is less than the second number of virtual ammunition shot per unit time when continuously triggering the virtual shooting prop in the second competition method.
[0194] In this embodiment, since it takes a certain amount of time to complete the evacuation operation in the evacuation area, the virtual object needs to stay in the evacuation area for a long time, and the virtual object that enters the evacuation area first has more observation time for the evacuation area. By restricting the first competitive method in the evacuation area, the type of virtual competitive props used in the evacuation area is restricted or the ability of virtual competitive props to cause virtual damage is restricted. This avoids the problem that a newly entered virtual object in the evacuation area is quickly eliminated due to being unfamiliar with the environment in the evacuation area and being suddenly subjected to virtual attacks, and improves the virtual competition fairness in the evacuation area.
[0195] In an example of the present application, when the timing duration of the timer reaches the first duration threshold, a settlement animation of the evacuation operation is displayed; Figure 13 The figure shows a schematic diagram of a virtual environment provided by an exemplary embodiment of the present application. As shown in sub-figure (a), when using a virtual helicopter as a vehicle to complete the evacuation operation, when the first virtual object is located in the evacuation area 410 (for example, the evacuation area is the helipad of the virtual helicopter), a departure animation of the virtual helicopter is displayed, and a settlement interface indicating successful evacuation is displayed. As shown in sub-figure (b), when the first virtual object is located outside the evacuation area 410, a departure animation of the virtual helicopter and the first virtual object 402 that has not boarded the virtual helicopter are displayed, and a settlement interface indicating failed evacuation is displayed.
[0196] Figure 14 The figure shows a flowchart of a control method for a virtual object provided by an exemplary embodiment of the present application. This method can be executed by a computer device. The method includes:
[0197] Step 702: Display the activation duration of the evacuation area;
[0198] Exemplarily, the activation duration is used to indicate the time required for the evacuation area to switch from an unactivated state to an activated state. It can be understood that as time goes by, the value of the activation duration is different at different timestamps. Exemplarily, the activation duration is a countdown from a certain duration, such as a countdown starting from 10 minutes.
[0199] Step 704: When the activation duration is cleared, display that the evacuation area switches to the activated state;
[0200] When the activation duration is cleared, the evacuation area is in an activated state where it is permitted to be used. It is also said to display that the evacuation area is unlocked.
[0201] Step 706: Determine whether there is a virtual object in the evacuation area?
[0202] Exemplarily, the server determines whether there is a virtual object in the evacuation area. If there is a virtual object in the evacuation area, step 710 is executed; if there is no virtual object in the evacuation area, step 708 is executed.
[0203] Step 708: Display the information related to the evacuation area in the normal display layer as a first color;
[0204] The first color is used to indicate that there is no virtual object in the evacuation area. For example, the first color is green. The information related to the evacuation area includes at least one of, but is not limited to, the distance between the first virtual object and the evacuation area, the remaining duration of the activation state of the evacuation area, etc. After executing step 708, return to step 706.
[0205] Step 710: Determine whether there is a first virtual object in the evacuation area?
[0206] Exemplarily, the server determines whether there is a first virtual object in the evacuation area. Exemplarily, the first virtual object is the master virtual object of the computer device executing this method. If there is a first virtual object in the evacuation area, step 712 is executed; if there is no first virtual object in the evacuation area, step 714 is executed.
[0207] Step 712: Display the information related to the evacuation area in the normal display layer as a second color;
[0208] The second color is used to indicate that there is a virtual object in the virtual camp where the first virtual object is located in the evacuation area. For the information related to the evacuation area, please refer to the introduction above. Further, referring to the introduction in step 520, the information related to the evacuation area includes a timer. For example, the second color is blue.
[0209] Step 714: Determine whether there is a friendly virtual object in the evacuation area?
[0210] Exemplarily, the server determines whether there is a friendly virtual object in the evacuation area. Exemplarily, if there is a friendly virtual object in the evacuation area, step 722 is executed; if there is no friendly virtual object in the evacuation area, step 732 is executed.
[0211] Step 722: Determine whether there is an enemy virtual object in the evacuation area?
[0212] This step is used to introduce the subsequent processing process in the case where there is a friendly virtual object in the evacuation area.
[0213] In this step, if there is no enemy virtual object in the evacuation area, step 724 is executed; if there is an enemy virtual object in the evacuation area, step 726 is executed.
[0214] Step 724: Display the information related to the evacuation area in the normal display layer in a third color, and display a prompt message for defending the evacuation area;
[0215] Exemplarily, the third color can be implemented as blue. In this step, only friendly virtual objects exist in the evacuation area. The prompt message for defending the evacuation area is used to prompt the first virtual object to enter the evacuation area and jointly defend the evacuation area with the friendly virtual objects to prevent enemy virtual objects from entering.
[0216] Step 726: Display the information related to the evacuation area in the normal display layer in a fourth color, and display a prompt message for competing for the evacuation area;
[0217] Exemplarily, the fourth color can be implemented as yellow. In this step, friendly virtual objects and enemy virtual objects exist in the evacuation area. The prompt message for competing for the evacuation area is used to prompt the first virtual object to enter the evacuation area and jointly expel the enemy virtual objects with the friendly virtual objects to prevent the enemy virtual objects from entering the evacuation area and delaying the completion of the evacuation operation.
[0218] Step 732: Determine whether the enemy virtual objects in the evacuation area belong to the same virtual camp?
[0219] This step is used to introduce the subsequent processing procedure for the situation where there are no friendly virtual objects in the evacuation area.
[0220] In this step, when the enemy virtual objects in the evacuation area do not belong to the same virtual camp, step 734 is executed; when the enemy virtual objects in the evacuation area belong to the same virtual camp, step 736 is executed.
[0221] Step 734: Display the information related to the evacuation area in the normal display layer in a fifth color, and display a prompt message for competing for the evacuation area;
[0222] Exemplarily, the fifth color can be implemented as yellow. In this step, enemy virtual objects of multiple virtual camps exist in the evacuation area, and the progress of the enemy virtual objects to complete the evacuation operation is delayed. The prompt message for competing for the evacuation area is used to prompt the first virtual object to enter the evacuation area and compete with the enemy virtual objects to actively participate in the competition for the evacuation area.
[0223] Step 736: Display the information related to the evacuation area in the normal display layer in a sixth color, and display a prompt message for competing for the evacuation area;
[0224] Exemplarily, the sixth color can be implemented as red. In this step, there is a virtual enemy object of a virtual camp in the evacuation area, and the progress of the virtual enemy object to implement the evacuation operation is not delayed. The prompt information for competing for the evacuation area is used to prompt the first virtual object to enter the evacuation area, delay the progress of the virtual enemy object to implement the evacuation operation, and compete with each other to participate in competing for the evacuation area to the virtual camp where the first virtual object is located.
[0225] Step 742: Determine whether there is a virtual object that has completed the evacuation operation?
[0226] As introduced above, when the timing duration of the timer reaches the first duration threshold, the virtual object completes the evacuation operation, and it can be determined whether there is a virtual object that has completed the evacuation operation through the timing duration of the timer. Exemplarily, this step can be executed after any one of Step 712, Step 724, Step 726, Step 734, and Step 736.
[0227] In the case where there is a virtual object that has completed the evacuation operation, execute Step 744; in the case where there is no virtual object that has completed the evacuation operation, execute Step 706.
[0228] Step 744: Display that the evacuation area is switched to the inactive state;
[0229] Exemplarily, after the virtual object completes the evacuation operation, it is displayed that the evacuation area is switched to the inactive state; other virtual objects in the virtual environment can no longer use the used evacuation area to complete the evacuation operation.
[0230] In an application scenario of the present application, the application program providing the virtual environment is a game application program, and completing the evacuation operation in the virtual environment as a competitive goal in the virtual environment can be a survival mode (or escape mode, evacuation mode, etc.) provided by the game application program. It can be understood that the game application program is a shooting game application program, and virtual attacks are initiated by virtual characters holding virtual shooting props and shooting virtual ammunition at each other.
[0231] It can be understood that in different implementation manners, the number of evacuation areas in the survival mode can be one or more. In the case of a certain difficulty level of the survival mode, there are multiple evacuation areas. For some of the evacuation areas, as introduced above, the timing rate of the timer of the friendly virtual object in the evacuation area is adjusted according to whether there are enemy virtual objects in the evacuation area; for the other part of the evacuation areas, the cumulative timing method is adopted, and the timing rate is independent of the position of the enemy virtual object, or the evacuation operation is completed when entering the evacuation area. In the case of another difficulty level of the survival mode, all the evacuation areas in the virtual environment are as introduced above, and the timing rate of the timer of the friendly virtual object in the evacuation area is adjusted according to whether there are enemy virtual objects in the evacuation area. In the case where the above evacuation area fails (switches to the inactive state), a new evacuation area is refreshed. The new evacuation area adopts the cumulative timing method, and the timing rate is independent of the position of the enemy virtual object, or the evacuation operation is completed when entering the evacuation area. Correspondingly:
[0232] · Display the game virtual character located in the virtual environment;
[0233] · In response to the presence of a friendly virtual object of the virtual camp where the game virtual character is located in the evacuation area, display that the timer starts timing, the timer times at the first rate, and the timer is used to indicate the time required for the friendly virtual object to complete the evacuation operation in the virtual environment;
[0234] · In the case where there is an enemy virtual character in the evacuation area, display that the timer pauses timing or the timer times at the second rate; and in the case where the enemy virtual character exits the evacuation area, display that the timer resumes timing at the first rate, and the first rate is greater than the second rate;
[0235] Further, in the case where there is an enemy virtual character in the evacuation area, display that the timing duration of the timer pauses to the first duration, or the timer times at the second rate based on the first duration, and the first duration is used to indicate the time interval between the first moment when the timer starts and the second moment when there is an enemy virtual character in the evacuation area;
[0236] In the case where the enemy virtual character exits the evacuation area, display that the timer resumes timing at the first rate.
[0237] Furthermore, it is implemented as at least one of the following:
[0238] In the case where the enemy virtual character is defeated by a virtual shooting prop in the evacuation area, display that the timer resumes timing at the first rate based on the second duration, and the second duration is obtained by correcting the first duration;
[0239] In the case where the enemy virtual character leaves the evacuation area based on a human-computer interaction operation, the display timer resumes timing at a first rate based on a third duration, and the third duration is obtained by correcting the first duration;
[0240] Among them, the second duration is greater than the third duration.
[0241] · In response to the timing duration of the timer reaching the first duration threshold, it is displayed that the friendly virtual character completes the evacuation operation in the virtual environment.
[0242] Optionally, it further includes:
[0243] Display the activation duration of the evacuation area, and the activation duration is used to indicate the time required for the evacuation area to switch from the unactivated state to the activated state;
[0244] In the case where the activation duration reaches the activation threshold, display the remaining duration of the evacuation area in the activated state.
[0245] Further, in response to the presence of a friendly virtual character of the virtual camp where the game virtual character is located in the evacuation area, switch the display of the remaining duration to the start of timing of the timer;
[0246] Among them, the timer is displayed on the heads-up display layer, and the heads-up display layer is superimposed on the observation screen of the virtual environment.
[0247] Optionally, it further includes:
[0248] Display the distance prompt information of the evacuation area, and the distance prompt information is used to indicate the distance between the game virtual character and the evacuation area;
[0249] Among them, the distance prompt information is displayed on the heads-up display layer, and the heads-up display layer is superimposed on the observation screen of the virtual environment.
[0250] Optionally, it further includes:
[0251] Obtain the first object information of the friendly virtual character, and determine the first rate according to the first object information. The timing duration of the timer at the first rate is the product of the first rate and the first time interval, and the first time interval is the interval between the start time of the timer and the current time.
[0252] Optionally, it further includes:
[0253] Obtain the second object information of the enemy virtual character, and determine the second rate according to the second object information. The timing duration of the timer at the second rate is the product of the second rate and the second time interval, and the second time interval is the interval between the time when the enemy virtual character exists in the evacuation area and the current time.
[0254] Optionally, in the case where the enemy virtual character exits the evacuation area, the display timer resumes timing at the first rate, including at least one of the following:
[0255] In the case where the enemy virtual character is defeated by the friendly virtual character, the display timer resumes timing at the first rate;
[0256] In the case where the friendly virtual character is defeated by the enemy virtual character, the evacuation area is split into a first sub-area and a second sub-area, and the timer corresponding to the first sub-area resumes timing at the first rate. The first sub-area is the area where the friendly virtual character is located; the area ratio between the first sub-area and the second sub-area is positively correlated with the quantity ratio between the surviving friendly virtual characters and the surviving enemy virtual characters, and the first rate is positively correlated with the area of the first sub-area.
[0257] Optionally, the maximum number of virtual characters accommodated in the first sub-area is positively correlated with the area of the first sub-area.
[0258] Optionally, the virtual combat items permitted to be used in the first combat mode between the friendly virtual character and the enemy virtual character are a subset of the second combat mode, and / or the first virtual attack frequency permitted to be used in the first combat mode is less than the second virtual attack frequency permitted to be used in the second combat mode;
[0259] Among them, the first combat mode is a combat mode executed within the evacuation area, and the second combat mode is a combat mode executed outside the evacuation area.
[0260] Those of ordinary skill in the art can understand that the above embodiments can be implemented independently, or the above embodiments can be freely combined to form new embodiments to implement the control method of the virtual object of the present application.
[0261] Figure 15 The structural block diagram of the control device of the virtual object provided by an exemplary embodiment of the present application is shown. The device includes:
[0262] A display module 810, configured to display a first virtual object located in a virtual environment;
[0263] The display module 810 is further configured to, in response to the presence of a friendly virtual object of the virtual camp where the first virtual object is located in the evacuation area, start the timer to time, the timer timing at the first rate, and the timer being used to indicate the time required for the friendly virtual object to complete the evacuation operation in the virtual environment;
[0264] The display module 810 is further configured to, when there is an enemy virtual object in the evacuation area, display that the timer pauses timing or the timer times at a second rate; and when the enemy virtual object exits the evacuation area, display that the timer resumes timing at the first rate, where the first rate is greater than the second rate.
[0265] The display module 810 is further configured to, in response to the timing duration of the timer reaching a first duration threshold, display that the friendly virtual object completes the evacuation operation in the virtual environment.
[0266] In an alternative implementation of this embodiment, the display module 810 is further configured to:
[0267] When there is an enemy virtual object in the evacuation area, display that the timing duration of the timer pauses to a first duration, or the timer times at the second rate based on the first duration, where the first duration is used to indicate the time interval between the first moment when the timer starts and the second moment when there is an enemy virtual object in the evacuation area;
[0268] When the enemy virtual object exits the evacuation area, display that the timer resumes timing at the first rate.
[0269] In an alternative implementation of this embodiment, the display module 810 is further configured to perform at least one of the following:
[0270] When the enemy virtual object is defeated in the evacuation area, display that the timer resumes timing at the first rate based on the second duration, where the second duration is obtained by correcting the first duration;
[0271] When the enemy virtual object leaves the evacuation area based on a human-computer interaction operation, display that the timer resumes timing at the first rate based on the third duration, where the third duration is obtained by correcting the first duration;
[0272] Wherein, the second duration is greater than the third duration.
[0273] In an alternative implementation of this embodiment, the display module 810 is further configured to:
[0274] Display the activation duration of the evacuation area, where the activation duration is used to indicate the time required for the evacuation area to switch from an unactivated state to an activated state;
[0275] When the activation duration reaches an activation threshold, display the remaining duration of the evacuation area in the activated state.
[0276] In an alternative implementation of this embodiment, the display module 810 is further configured to:
[0277] In response to the presence of a friendly virtual object of the virtual camp where the first virtual object is located in the evacuation area, switch the remaining duration to display the start of timing of the timer;
[0278] Wherein, the timer is displayed on the head-up display layer, and the head-up display layer is superimposed on the observation screen of the virtual environment.
[0279] In an alternative implementation of this embodiment, the display module 810 is further configured to:
[0280] In response to the timing duration of the timer reaching a second duration threshold, display the timer in a visually prominent manner, and display a prompt message for the evacuation operation;
[0281] Wherein, when the first virtual object is within the evacuation area, the prompt message is used to indicate the moment approaching the completion of the evacuation operation; when the first virtual object is outside the evacuation area, the prompt message is used to prompt the first virtual object to move within the evacuation area; the second duration threshold is less than the first duration threshold.
[0282] In an alternative implementation of this embodiment, the display module 810 is further configured to:
[0283] In response to the timing duration of the timer reaching the first duration threshold, or the remaining duration of the activation state of the evacuation area being cleared, display that the evacuation area is switched from the activation state to the deactivated state.
[0284] In an alternative implementation of this embodiment, the display module 810 is further configured to:
[0285] Display distance prompt information for the evacuation area, where the distance prompt information is used to indicate the distance between the first virtual object and the evacuation area;
[0286] Wherein, the distance prompt information is displayed on the head-up display layer, and the head-up display layer is superimposed on the observation screen of the virtual environment.
[0287] In an alternative implementation of this embodiment, the device further includes:
[0288] An acquisition module 820, configured to acquire first object information of the friendly virtual object, and determine a first rate according to the first object information. The timing duration of the timer at the first rate is the product of the first rate and a first time interval, and the first time interval is the interval between the start time of the timer and the current time.
[0289] In an optional implementation manner of this embodiment, the first object information includes the number of friendly virtual objects, and there is a positive correlation between the first rate and the number of friendly virtual objects;
[0290] And / or, the first object information includes the number of virtual resources obtained by the friendly virtual object in the virtual environment, and there is a negative correlation between the first rate and the number of virtual resources;
[0291] And / or, the first object information includes the virtual experience value of the friendly virtual object performing virtual activities in the virtual environment, and there is a positive correlation between the first rate and the virtual experience value.
[0292] In an optional implementation manner of this embodiment, the device further includes:
[0293] An acquisition module 820, configured to acquire second object information of the enemy virtual object, and determine a second rate according to the second object information. The timing duration of the timer at the second rate is the product of the second rate and a second time interval, and the second time interval is the interval between the time when there is an enemy virtual object in the evacuation area and the current time.
[0294] In an optional implementation manner of this embodiment, the second object information includes the number of enemy virtual objects, and there is a negative correlation between the second rate and the number of enemy virtual objects;
[0295] And / or, the second object information includes a first position where the enemy virtual object is located, and there is a positive correlation between the second rate and an interval distance, where the interval distance is the distance between the first position and a second position in the virtual area;
[0296] And / or, the second object information includes virtual attribute information of the enemy virtual object, and there is a negative correlation between the second rate and the virtual attribute information, where the virtual attribute information includes at least one of virtual health value, virtual magic value, and virtual experience value.
[0297] In an optional implementation manner of this embodiment, the display module 810 is further configured to perform at least one of the following:
[0298] In the case where the enemy virtual object is defeated by the friendly virtual object, display that the timer resumes timing at the first rate;
[0299] In the case where the friendly virtual object is defeated by the enemy virtual object, display that the evacuation area is split into a first sub-area and a second sub-area, display that the timer corresponding to the first sub-area resumes timing at the first rate, and the first sub-area is the area where the friendly virtual object is located; the area ratio between the first sub-area and the second sub-area is positively correlated with the quantity ratio between the friendly virtual objects in the surviving state and the enemy virtual objects in the surviving state, and the first rate is positively correlated with the area of the first sub-area.
[0300] In an alternative implementation of this embodiment, the maximum number of virtual objects accommodated in the first sub-area is positively correlated with the area of the first sub-area.
[0301] In an alternative implementation of this embodiment, the virtual combat props permitted to be used in the first combat mode between the friendly virtual object and the enemy virtual object are a subset of the second combat mode, and / or the first virtual attack frequency permitted to be used in the first combat mode is less than the second virtual attack frequency permitted to be used in the second combat;
[0302] wherein, the first combat mode is a combat mode executed within the evacuation area, and the second combat mode is a combat mode executed outside the evacuation area.
[0303] It should be noted that when the device provided in the above embodiment realizes its functions, only the above-mentioned division of each functional module is used for illustration. In practical applications, the above functions can be allocated to different functional modules according to actual needs, that is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0304] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method; the technical effects obtained by each module performing operations are the same as those in the embodiment related to the method, and will not be elaborated here in detail.
[0305] The embodiment of the present application also provides a computer device, which includes: a processor and a memory, and a computer program is stored in the memory; the processor is used to execute the computer program in the memory to implement the control method of the virtual object provided in each of the above method embodiments.
[0306] Figure 16The structural block diagram of a terminal provided by an exemplary embodiment of the present application is shown. The terminal 1900 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop computer or a desktop computer. The terminal 1900 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
[0307] Generally, the terminal 1900 includes: a processor 1901 and a memory 1902. The processor 1901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1901 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), PLA (Programmable Logic Array). The processor 1901 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1901 may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1901 may also include an AI (Artificial Intelligence) processor, and the AI processor is used to process computational operations related to machine learning.
[0308] The memory 1902 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 1902 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1902 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1901 to implement the control method of the virtual object provided by the method embodiment of the present application.
[0309] In some embodiments, the terminal 1900 may further optionally include: a peripheral device interface 1903 and at least one peripheral device. The processor 1901, the memory 1902, and the peripheral device interface 1903 may be connected through a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 1903 through a bus, signal lines, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1904, a touch display screen 1905, a camera assembly 1906, an audio circuit 1907, and a power supply 1908.
[0310] The peripheral device interface 1903 can be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1901 and the memory 1902. In some embodiments, the processor 1901, the memory 1902, and the peripheral device interface 1903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1901, the memory 1902, and the peripheral device interface 1903 can be implemented on a separate chip or circuit board, and this embodiment does not limit this.
[0311] The radio frequency circuit 1904 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1904 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1904 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1904 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and so on. The radio frequency circuit 1904 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, each generation of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1904 may further include a circuit related to NFC (Near Field Communication), and this application does not limit this.
[0312] The touch display screen 1905 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1905 also has the function of collecting touch signals on or above the surface of the touch display screen 1905. The touch signal can be input as a control signal to the processor 1901 for processing. At this time, the touch display screen 1905 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one touch display screen 1905, which is provided on the front panel of the terminal 1900; in other embodiments, there may be at least two touch display screens 1905, which are respectively provided on different surfaces of the terminal 1900 or are in a foldable design; in still other embodiments, the touch display screen 1905 may be a flexible display screen, which is provided on a curved surface or a folding surface of the terminal 1900. Even more, the touch display screen 1905 can also be set to an irregular non-rectangular shape, that is, a special-shaped screen. The touch display screen 1905 can be prepared from materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0313] The camera module 1906 is used to capture images or videos. Optionally, the camera module 1906 includes a front camera and a rear camera. Generally, the front camera is provided on the front panel of the terminal, and the rear camera is provided on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to implement functions such as background blurring by fusing the main camera and the depth-of-field camera, panoramic shooting by fusing the main camera and the wide-angle camera, VR (Virtual Reality) shooting function, or other fused shooting functions. In some embodiments, the camera module 1906 may also include a flash. The flash can be a single-color-temperature flash or a two-color-temperature flash. A two-color-temperature flash refers to a combination of a warm-light flash and a cold-light flash, which can be used for light compensation under different color temperatures.
[0314] The audio circuit 1907 may include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals for input to the processor 1901 for processing, or input to the radio frequency circuit 1904 to implement voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1900. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 1901 or the radio frequency circuit 1904 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for uses such as ranging. In some embodiments, the audio circuit 1907 may further include a headphone jack.
[0315] The power supply 1908 is used to supply power to each component in the terminal 1900. The power supply 1908 may be alternating current, direct current, a disposable battery or a rechargeable battery. When the power supply 1908 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charging technology.
[0316] In some embodiments, the terminal 1900 further includes one or more sensors 1909. The one or more sensors 1909 include but are not limited to: an acceleration sensor 1910, a gyroscope sensor 1911, a pressure sensor 1912, an optical sensor 1913, and a proximity sensor 1914.
[0317] The acceleration sensor 1910 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established with the terminal 1900. For example, the acceleration sensor 1910 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The processor 1901 can control the touch display screen 1905 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1910. The acceleration sensor 1910 can also be used for collecting game or user's motion data. The gyroscope sensor 1911 can detect the body direction and rotation angle of the terminal 1900. The gyroscope sensor 1911 can cooperate with the acceleration sensor 1910 to collect the 3D actions of the user on the terminal 1900. According to the data collected by the gyroscope sensor 1911, the processor 1901 can implement the following functions: motion sensing (such as changing the UI according to the user's tilting operation), image stabilization during shooting, game control, and inertial navigation.
[0318] The pressure sensor 1912 can be disposed on the side frame of the terminal 1900 and / or the lower layer of the touch display screen 1905. When the pressure sensor 1912 is disposed on the side frame of the terminal 1900, it can detect the holding signal of the user on the terminal 1900, and the processor 1901 can perform left / right hand recognition or shortcut operations according to the holding signal collected by the pressure sensor 1912. When the pressure sensor 1912 is disposed on the lower layer of the touch display screen 1905, the processor 1901 can control the operable controls on the UI interface according to the pressure operation of the user on the touch display screen 1905. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0319] The optical sensor 1913 is used to collect the ambient light intensity. In one embodiment, the processor 1901 can control the display brightness of the touch display screen 1905 according to the ambient light intensity collected by the optical sensor 1913. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1905 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1905 is decreased. In another embodiment, the processor 1901 can also dynamically adjust the shooting parameters of the camera module 1906 according to the ambient light intensity collected by the optical sensor 1913.
[0320] The proximity sensor 1914, also known as the distance sensor, is usually disposed on the front panel of the terminal 1900. The proximity sensor 1914 is used to collect the distance between the user and the front of the terminal 1900. In one embodiment, when the proximity sensor 1914 detects that the distance between the user and the front of the terminal 1900 is gradually decreasing, the processor 1901 controls the touch display screen 1905 to switch from the lit state to the off state; when the proximity sensor 1914 detects that the distance between the user and the front of the terminal 1900 is gradually increasing, the processor 1901 controls the touch display screen 1905 to switch from the off state to the lit state.
[0321] Those skilled in the art can understand that the above structure does not limit the terminal 1900, and it may include more or fewer components than shown in the figure, or combine some components, or adopt different component arrangements.
[0322] In an exemplary embodiment, a chip is further provided, which includes programmable logic circuits and / or program instructions. When the chip runs on a computer device, it is used to implement the control method of the virtual object described in the above aspects.
[0323] In an exemplary embodiment, a computer program product is further provided. The computer program product includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor reads and executes the computer instructions to implement the control method of a virtual object provided in each of the above method embodiments.
[0324] In an exemplary embodiment, a computer-readable storage medium is further provided. A computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the control method of a virtual object provided in each of the above method embodiments.
[0325] Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a magnetic disk, an optical disk, or the like.
[0326] Those skilled in the art should be able to realize that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented by hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. The computer-readable medium includes computer storage media and communication media, where the communication media includes any medium that facilitates the transfer of a computer program from one place to another. The storage media can be any available medium accessible by a general-purpose or special-purpose computer.
[0327] The above are only optional embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A control method for a virtual object, characterized in that, The method includes: displaying a first virtual object located in a virtual environment; in response to the presence of a friendly virtual object of the virtual camp where the first virtual object is located in an evacuation area, starting the timer for timing, the timer timing at a first rate, the timer being used to indicate the time required for the friendly virtual object to complete an evacuation operation in the virtual environment; in the case where there is an enemy virtual object in the evacuation area, displaying that the timer pauses timing or the timer times at a second rate; and in the case where the enemy virtual object exits the evacuation area, displaying that the timer resumes timing at the first rate, the first rate being greater than the second rate; in response to the timing duration of the timer reaching a first duration threshold, displaying that the friendly virtual object completes the evacuation operation in the virtual environment.
2. The method according to claim 1, characterized in that, The displaying that the timer pauses timing or the timer times at a second rate in the case where there is an enemy virtual object in the evacuation area; and the displaying that the timer resumes timing at the first rate in the case where the enemy virtual object exits the evacuation area includes: in the case where there is the enemy virtual object in the evacuation area, displaying that the timing duration of the timer pauses to a first duration, or the timer times at the second rate based on the first duration, the first duration being used to indicate the time interval between the first moment when the timer starts and the second moment when there is the enemy virtual object in the evacuation area; in the case where the enemy virtual object exits the evacuation area, displaying that the timer resumes timing at the first rate.
3. The method according to claim 2, characterized in that, The displaying that the timer resumes timing at the first rate in the case where the enemy virtual object exits the evacuation area includes at least one of the following: in the case where the enemy virtual object is defeated in the evacuation area, displaying that the timer resumes timing at the first rate based on the second duration, the second duration being obtained by correcting the first duration; in the case where the enemy virtual object leaves the evacuation area based on a human-computer interaction operation, displaying that the timer resumes timing at the first rate based on the third duration, the third duration being obtained by correcting the first duration; wherein, the second duration is greater than the third duration.
4. The method according to any one of claims 1 to 3, characterized in that The method further includes: displaying the activation duration of the evacuation area, the activation duration being used to indicate the time required for the evacuation area to switch from an unactivated state to an activated state; in the case where the activation duration reaches an activation threshold, displaying the remaining duration of the evacuation area being in the activated state.
5. The method according to claim 4, characterized in that, The starting the timer for timing in response to the presence of a friendly virtual object of the virtual camp where the first virtual object is located in an evacuation area includes: in response to the presence of the friendly virtual object of the virtual camp where the first virtual object is located in the evacuation area, switching the display of the remaining duration to the starting of the timer for timing; wherein, the timer is displayed on a head-up display layer, and the head-up display layer is superimposed on the observation screen of the virtual environment.
6. The method according to claim 5, wherein The method further includes: In response to the timing duration of the timer reaching a second duration threshold, display the timer in a visually prominent manner, and display a prompt message for the evacuation operation; wherein, when the first virtual object is within the evacuation area, the prompt message is used to indicate the moment approaching the completion of the evacuation operation; when the first virtual object is outside the evacuation area, the prompt message is used to prompt the first virtual object to move into the evacuation area; the second duration threshold is less than the first duration threshold.
7. The method according to claim 4, wherein The method further includes: In response to the timing duration of the timer reaching the first duration threshold, or the remaining duration of the activation state of the evacuation area being emptied, display the evacuation area switching from the activation state to the non-activation state.
8. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Display a distance prompt message for the evacuation area, the distance prompt message being used to indicate the distance between the first virtual object and the evacuation area; wherein, the distance prompt message is displayed on a head-up display layer, and the head-up display layer is superimposed on the observation screen of the virtual environment.
9. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Obtain first object information of the friendly virtual object, and determine the first rate according to the first object information. The timing duration of the timer timing at the first rate is the product of the first rate and a first time interval, and the first time interval is the interval between the start time of the timer and the current time.
10. The method according to claim 9, wherein, The first object information includes the number of friendly virtual objects, and there is a positive correlation between the first rate and the number of friendly virtual objects; and / or, the first object information includes the number of virtual resources obtained by the friendly virtual object in the virtual environment, and there is a negative correlation between the first rate and the number of virtual resources; and / or, the first object information includes the virtual experience value of the friendly virtual object performing a virtual activity in the virtual environment, and there is a positive correlation between the first rate and the virtual experience value.
11. According to the method described in any one of claims 1 to 3, characterized in that, The method further includes: Obtain second object information of the enemy virtual object, and determine the second rate according to the second object information. The timing duration of the timer timing at the second rate is the product of the second rate and a second time interval, and the second time interval is the interval between the moment when there is an enemy virtual object in the evacuation area and the current time.
12. The method according to claim 11, wherein, The second object information includes the number of enemy virtual objects, and there is a negative correlation between the second rate and the number of enemy virtual objects; and / or, the second object information includes the first position where the enemy virtual object is located, and there is a positive correlation between the second rate and the interval distance, and the interval distance is the distance between the first position and a second position in the virtual area; And / or, the second object information includes virtual attribute information of the enemy virtual object, and there is a negative correlation between the second rate and the virtual attribute information, where the virtual attribute information includes at least one of virtual health value, virtual magic value, and virtual experience value.
13. The method according to any one of claims 1 to 3, characterized in that, The case where, when the enemy virtual object exits the evacuation area, it is displayed that the timer resumes timing at the first rate includes at least one of the following: When the enemy virtual object is defeated by the friendly virtual object, it is displayed that the timer resumes timing at the first rate; When the friendly virtual object is defeated by the enemy virtual object, it is displayed that the evacuation area is split into a first sub-area and a second sub-area, and it is displayed that the timer corresponding to the first sub-area resumes timing at the first rate, where the first sub-area is the area where the friendly virtual object is located; the area ratio between the first sub-area and the second sub-area is positively correlated with the quantity ratio between the friendly virtual objects in a surviving state and the enemy virtual objects in a surviving state, and the first rate is positively correlated with the area of the first sub-area.
14. The method according to claim 13, wherein The maximum number of virtual objects accommodated in the first sub-area is positively correlated with the area of the first sub-area.
15. The method according to any one of claims 1 to 3, characterized in that, The virtual combat items permitted to be used in the first combat mode between the friendly virtual object and the enemy virtual object are a subset of the second combat mode, and / or the first virtual attack frequency permitted to be used in the first combat mode is less than the second virtual attack frequency permitted to be used in the second combat mode; Wherein, the first combat mode is a combat mode executed within the evacuation area, and the second combat mode is a combat mode executed outside the evacuation area.
16. A control device for a virtual object, characterized in that, The device includes: A display module for displaying a first virtual object located in a virtual environment; The display module is further configured to, in response to the presence of a friendly virtual object of the virtual camp where the first virtual object is located in the evacuation area, display that a timer starts timing, and the timer times at a first rate, where the timer is used to indicate the time required for the friendly virtual object to complete an evacuation operation in the virtual environment; The display module is further configured to, when there is an enemy virtual object in the evacuation area, display that the timer pauses timing or the timer times at a second rate; and when the enemy virtual object exits the evacuation area, display that the timer resumes timing at the first rate, where the first rate is greater than the second rate; The display module is further configured to, in response to the timing duration of the timer reaching a first duration threshold, display that the friendly virtual object completes the evacuation operation in the virtual environment.
17. A computer device, characterized in that, The computer device includes: a processor and a memory, and at least one program is stored in the memory; the processor is configured to execute the at least one program in the memory to implement the control method of the virtual object as described in any one of claims 1 to 15 above.
18. A computer-readable storage medium, characterized in that, The readable storage medium stores executable instructions, which are loaded and executed by a processor to implement the control method of the virtual object as described in any one of claims 1 to 15 above.
19. A computer program product, characterized in that, The computer program product includes computer instructions, which are stored in a computer-readable storage medium, and the processor reads and executes the computer instructions to implement the control method of the virtual object as described in any one of claims 1 to 15 above.