Virtual Object Control Method, Device, Equipment and Storage Medium in Virtual Scenes
By introducing virtual object control methods in virtual scenes, virtual props are allowed to accumulate effects on virtual objects and trigger target effects, the problem of single effect of virtual props in the prior art is solved, and the interaction efficiency and effect between users and virtual scenes is improved.
Patent Information
- Application Number
- CN202111659925.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-09-30
- Filing Date
- 2021-12-30
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2041-12-30
AI Technical Summary
In the prior art, the effect of virtual props in virtual scenes is relatively single, which limits the way users control virtual objects to use virtual props, and affects the interaction efficiency and interaction effect between users and virtual scenes.
By introducing virtual object control methods in the virtual scene, virtual props are allowed to accumulate effects on virtual objects, update the props' action status, and trigger the target effect in the virtual scene when the triggering condition is reached, expanding the effect of virtual props and user operation methods.
The role and effect of virtual props in virtual scenes is expanded, the way users control virtual objects to use virtual props is increased, and the interaction efficiency and interaction effect between users and virtual scenes is improved.
Smart Images

Figure CN114191818B_ABST
Abstract
Description
[0001] This application claims the priority of a Chinese patent application with the application number 202111160556.3 and the invention title "Virtual Object Control Method, Device, Equipment and Storage Medium in Virtual Scenes" filed on September 30, 2021, the entire content of which is incorporated herein by reference. Technical Field
[0002] Embodiments of this application relate to the technical field of virtual scenes, and particularly to a virtual object control method, device, equipment and storage medium in virtual scenes. Background Art
[0003] In many application programs for constructing virtual scenes (such as virtual reality application programs, three-dimensional map programs, first-person shooter games, multiplayer online battle arena games, etc.), virtual props are provided to enrich the interaction methods between virtual objects and virtual scenes or other virtual objects.
[0004] In related technologies, the use of virtual props by virtual objects is often one-time. When the virtual prop exerts its effect in the virtual scene, the effect of the virtual prop will also become invalid accordingly.
[0005] However, in the above related technologies, the effect of virtual props in the virtual scene is relatively single, which limits the way users control virtual objects to use virtual props, and thus affects the interaction efficiency and interaction effect between users and virtual objects. Summary of the Invention
[0006] Embodiments of this application provide a virtual object control method, device, equipment and storage medium in virtual scenes, which can expand the effect of virtual props in the virtual scene, and thus expand the way users control virtual objects to use virtual props, improving the interaction efficiency and interaction effect between users and virtual scenes. The technical solution is as follows:
[0007] On the one hand, a virtual object control method in virtual scenes is provided, and the method includes:
[0008] Display a virtual scene picture of the virtual scene, where the virtual scene picture includes a first virtual object;
[0009] In response to a target prop acting on the first virtual object, update the prop action state of the first virtual object; the prop action state is used to indicate the cumulative action situation of the first virtual object being affected by virtual props of a target type; the target type is the prop type of the target prop;
[0010] In response to the prop action state satisfying the trigger condition, a target effect is triggered in the virtual scene; the target effect is used to act on virtual objects within a first range; the first range is a regional range centered on the position where the first virtual object is located.
[0011] On the other hand, a virtual object control device in a virtual scene is provided, and the device includes:
[0012] A screen display module for displaying a virtual scene screen of the virtual scene, where the virtual scene screen includes a first virtual object;
[0013] A state update module for updating the prop action state of the first virtual object in response to a target prop acting on the first virtual object; the prop action state is used to indicate the cumulative action situation of the first virtual object being affected by a virtual prop of a target type; the target type is the prop type of the target prop;
[0014] An effect trigger module for triggering a target effect in the virtual scene in response to the prop action state satisfying the trigger condition; the target effect is used to act on virtual objects within a first range; the first range is a regional range centered on the position where the first virtual object is located.
[0015] In a possible implementation manner, the state update module is used to update the prop action state of the first virtual object in response to the target prop taking effect in the virtual scene and the first virtual object being located within a second range; the second range is an action range centered on the target prop.
[0016] In a possible implementation manner, the target prop is a continuously acting virtual prop; the device further includes:
[0017] A first attribute value reduction module for continuously reducing the attribute value of the first attribute of the first virtual object at a first gradient in response to the target prop acting on the first virtual object until the first virtual object moves out of the second range, or the attribute value of the first attribute of the first virtual object is 0.
[0018] In a possible implementation manner, the device further includes:
[0019] A second attribute value reduction module for continuously reducing the attribute value of the first attribute of the first virtual object at a second gradient within a first duration in response to the first virtual object moving out of the second range until the first duration ends, or the attribute value of the first attribute of the first virtual object is 0.
[0020] In a possible implementation, the second gradient is equal to the first gradient;
[0021] Or, the second gradient is less than the first gradient;
[0022] Or, the second gradient takes the first gradient as the initial value and gradually decreases over time until it reaches 0.
[0023] In a possible implementation, the status update module is configured to update a prop effect flag in response to a target prop acting on the first virtual object, where the prop effect flag is used to represent the prop effect status of the first virtual object;
[0024] Wherein, the display position of the prop effect flag corresponds to the display position of the first virtual object in the virtual scene screen.
[0025] In a possible implementation, the prop effect flag has a display attribute, and the display attribute is used to represent the prop effect status;
[0026] The display attribute includes at least one of the flashing frequency of the prop effect flag, the display size of the prop effect flag, and the display shape of the prop effect flag.
[0027] In a possible implementation, the device further includes:
[0028] A cancellation display module, configured to cancel the display of the prop effect flag in response to the attribute value of the second attribute of the first virtual object being 0, where the second attribute is used to represent the health status of the virtual object in the virtual scene.
[0029] In a possible implementation, the trigger condition includes that the cumulative effect situation indicated by the prop effect status reaches a cumulative effect threshold.
[0030] In a possible implementation, the cumulative effect situation includes: the cumulative number of times the first virtual object is affected by the virtual prop of the target type;
[0031] Or, the cumulative attribute value of the first attribute of the first virtual object reduced by the virtual prop of the target type;
[0032] Or, the cumulative duration for which the virtual prop of the target type acts on the first virtual object.
[0033] In a possible implementation, the effect trigger module is configured to trigger a target effect in the virtual scene in response to the attribute value of the second attribute of the first virtual object being greater than 0 and the prop application state satisfying the trigger condition, where the second attribute is used to characterize the health state of the virtual object in the virtual scene.
[0034] In a possible implementation, the effect trigger module is configured to reduce the attribute value of the second attribute of the first virtual object to 0 in response to the prop application state satisfying the trigger condition, and reduce the attribute value of the second attribute of other virtual objects in the first range except the first virtual object, where the second attribute is used to characterize the health state of the virtual object in the virtual scene.
[0035] In a possible implementation, the target effect acts on other virtual objects in the first range that are in the same camp as the first virtual object.
[0036] On the other hand, a computer device is provided, which 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, and 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 virtual object control method in the virtual scene described above.
[0037] On the other hand, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and 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 virtual object control method in the virtual scene described above.
[0038] On the other hand, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the virtual object control method provided in the above various optional implementations.
[0039] The technical solution provided in this application may include the following beneficial effects:
[0040] The virtual object control method in the virtual scene provided by the embodiment of the present application accumulates the influence of the target prop received by the virtual object to update the prop action state of the first virtual object, and when the prop action state meets the trigger condition, a target effect is generated within the first range centered on the first virtual object and acts on the virtual objects within the first range; thus, when using virtual props in the virtual scene, it is not limited to the action effect of the virtual prop itself, but can also trigger further action effects based on the prop action state of the virtual prop on the first virtual object, thereby expanding the action effect of the virtual prop in the virtual scene, and further expanding the way for the user to control the virtual object to use the virtual prop, improving the interaction efficiency and interaction effect between the user and the virtual scene.
[0041] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application and used together with the specification to explain the principles of the present application.
[0043] Figure 1 is a schematic diagram of the display interface of the virtual scene shown according to an exemplary embodiment;
[0044] Figure 2 is a schematic diagram of the structure of a virtual scene service system shown according to an exemplary embodiment of the present application;
[0045] Figure 3 shows a flowchart of the virtual object control method in the virtual scene shown according to an exemplary embodiment of the present application;
[0046] Figure 4 shows a flowchart of the virtual object control method in the virtual scene shown according to an exemplary embodiment of the present application;
[0047] Figure 5 shows a schematic diagram of the virtual scene picture shown according to an exemplary embodiment of the present application;
[0048] Figure 6 shows a schematic diagram of the prop equipment interface shown according to an exemplary embodiment of the present application;
[0049] Figure 7 shows a schematic diagram of the movement path shown according to an exemplary embodiment of the present application;
[0050] Figure 8 shows a schematic diagram of the picture of the target prop acting on the first virtual object shown according to an exemplary embodiment of the present application;
[0051] Figure 9 Shows a schematic diagram of a virtual scene picture shown in an exemplary embodiment of the present application;
[0052] Figure 10 Shows a schematic diagram of a prop function identifier shown in an exemplary embodiment of the present application;
[0053] Figure 11 Shows a schematic diagram of a virtual scene picture shown in an exemplary embodiment of the present application;
[0054] Figure 12 Shows a flowchart of a virtual object control method in a virtual scene shown in an exemplary embodiment of the present application;
[0055] Figure 13 Shows a block diagram of a virtual object control device in a virtual scene shown in an exemplary embodiment of the present application;
[0056] Figure 14 Is a block diagram of a computer device shown according to an exemplary embodiment;
[0057] Figure 15 Is a block diagram of a computer device shown according to an exemplary embodiment. Detailed implementation manners
[0058] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0059] In a virtual scene, in order to increase the fun and strategic nature of the operation in the virtual scene, virtual props that can be used in the virtual scene are often provided to affect the virtual objects in the virtual scene. In order to enrich the effects of virtual props in the virtual scene and improve the interaction efficiency between the user and the virtual scene, the embodiment of the present application provides a method for controlling virtual objects in a virtual scene. The virtual scene in the embodiment of the present application refers to a virtual scene environment generated by a computer, which can provide a multimedia virtual world. The user can control the operable virtual objects in the virtual scene through an operating device or an operating interface, observe objects, characters, scenery, etc. in the virtual scene from the perspective of the virtual object, or interact with virtual objects and objects, characters, scenery or other virtual objects in the virtual scene, for example, by operating a virtual character to attack the target virtual object. The virtual scene is usually generated by an application in a computer device such as a terminal and displayed based on the hardware (such as a screen) in the terminal. The terminal can be a mobile terminal such as a smart phone, a tablet computer or an e-book reader; or, the terminal can also be a personal computer device such as a laptop or a fixed computer. Among them, the virtual scene can be a three-dimensional virtual scene, or, the virtual scene can also be a two-dimensional virtual scene. Taking a three-dimensional virtual scene as an example, Figure 1 FIG. 1 is a schematic diagram of a display interface of a virtual scene according to an exemplary embodiment. Figure 1 As shown, the display interface 100 of the virtual scene includes a virtual object 110, a three-dimensional virtual scene environment screen 120, at least one group of virtual control buttons 130, and a virtual object 140. Among them, the virtual object 110 can be the current control object of the user account corresponding to the terminal, and the virtual control button 130 is an optional control element, that is, the user can control the virtual object 110 through the virtual control button 130; and the virtual object 140 can be a non-user controlled object, that is, the virtual object 140 is controlled by the application itself, or the virtual object 140 can also be a virtual object controlled by a user account corresponding to other terminals, and the user can interact with the virtual object 140 by controlling the virtual object 110, for example, controlling the virtual object 110 to attack the virtual object 140.
[0060] exist Figure 1 In the embodiment, the virtual object 110 and the virtual object 140 are three-dimensional models, and the three-dimensional virtual scene environment picture displayed in the display interface 100 is an object observed from the perspective of the virtual object 110, for example, Figure 1 As shown, from the perspective of the virtual object 110 , the displayed three-dimensional virtual scene environment picture 120 includes the earth 124 , the sky 125 , the horizon 123 , the hill 121 and the factory building 122 .
[0061] The virtual object 110 can move instantaneously under the control of the user. For example, Figure 1 The virtual control button 130 shown is a virtual button for controlling the movement of the virtual object 110. When the user touches the virtual control button 130, the virtual object 110 can move in the virtual scene in the direction of the touch point relative to the center of the virtual control button 130.
[0062] A virtual object refers to an active object in a virtual scene. The active object can be at least one of a virtual character, a virtual animal, and an anime character. Optionally, when the virtual scene is a three-dimensional virtual scene, the virtual object can be a three-dimensional solid model. Each virtual object has its own shape and volume in the three-dimensional virtual scene and occupies a part of the space in the three-dimensional virtual scene. Optionally, the virtual character is a three-dimensional character constructed based on three-dimensional human bone technology, and the virtual character can achieve different external images by wearing different skins. In some implementation manners, the virtual character can also be implemented using a 2.5D or 2D model, and the embodiments of the present application do not limit this.
[0063] Figure 2 is a schematic structural diagram of a virtual scene service system shown in an exemplary embodiment according to the present application. As Figure 2 shown, the system includes: a terminal 210, a terminal 220, and a server 230;
[0064] Among them, the terminal 210 can be the control terminal corresponding to the virtual object that releases the target item in the embodiments of the present application. The terminal 210 can be a mobile phone, a tablet computer, an e-book reader, smart glasses, a smart watch, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV) player, and so on.
[0065] The terminal 220 can be the control terminal corresponding to other virtual objects except the virtual object that releases the target item in the embodiments of the present application. The terminal 220 can be a mobile phone, a tablet computer, an e-book reader, smart glasses, a smart watch, an MP3 player, an MP4 player, and so on.
[0066] An application program supporting the virtual scene can be installed in the terminal 210 and the terminal 220. Correspondingly, the server 230 can be the server corresponding to the application program supporting the virtual scene.
[0067] The server 230 can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0068] The terminal and the server are connected through a communication network. Optionally, the communication network is a wired network or a wireless network.
[0069] Optionally, the system may further include a management device 240 (not shown in the figure), and the management device 240 is connected to the server 230 through a communication network. Optionally, the communication network is a wired network or a wireless network.
[0070] Optionally, the above-mentioned wireless network or wired network uses standard communication technologies and / or protocols. The network is usually the Internet, but can also be any network, including but not limited to any combination of a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a private network or a virtual private network. In some embodiments, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent the data exchanged through the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. can be used to encrypt all or some of the links. In other embodiments, customized and / or dedicated data communication technologies can be used to replace or supplement the above data communication technologies.
[0071] Figure 3 The flowchart of the virtual object control method in the virtual scenario shown in an exemplary embodiment of the present application is shown. This method can be executed by a computer device, which can be a terminal and / or a server. Schematically, the computer device can be implemented as the Figure 2 shown terminal and / or server, asFigure 3 As shown, the method for controlling virtual objects in the virtual scene may include the following steps:
[0072] Step 310, display the virtual scene picture of the virtual scene, which includes a first virtual object.
[0073] Optionally, the virtual scene picture may be a scene picture obtained by observing the virtual scene from the first-person perspective of the first virtual object, or the virtual scene picture may also be a scene picture obtained by observing the virtual scene from the third-person perspective. This application does not limit this.
[0074] Step 320, in response to the target prop acting on the first virtual object, update the prop acting state of the first virtual object; the prop acting state is used to indicate the cumulative acting situation of the first virtual object being affected by virtual props of the target type; the target type is the prop type of the target prop.
[0075] Among them, the target prop may be a virtual prop with any acting effect. Schematically, the target prop may be any one of virtual props such as grenades, landmines, incendiary bombs, flash bombs, smoke bombs, bullets, etc.; virtual props of the same type have the same acting effect.
[0076] In the embodiment of this application, for the first virtual object in the virtual scene, whenever it is affected by the acting effect of a target once, the prop acting state of the first virtual object will be updated; Schematically, when the first virtual object in the virtual scene is affected by the acting effect of an incendiary bomb (target prop), that is, when the incendiary bomb in the virtual scene causes damage to the first virtual object, the prop acting state of the first virtual object is updated; if the first virtual object is not eliminated, during the subsequent activities of the first virtual object in the virtual scene, when it is affected by the acting effect of another incendiary bomb again, the prop acting state of the first virtual object is updated again. When the target prop is a bullet, it can be determined that the first virtual object is hit by a bullet once as the target prop acting on the first virtual object, and based on this, the prop acting state of the first virtual object is updated.
[0077] Step 330, in response to the prop acting state satisfying the trigger condition, trigger a target effect in the virtual scene, and the target effect is used to act on virtual objects within a first range; the first range is an area range centered on the position where the first virtual object is located.
[0078] The acting object of the target effect is determined based on the position of the first virtual object in the virtual scene, and the acting object of the target effect may be virtual objects within the first range centered on the first virtual object.
[0079] The target effect may be the same as the effect of the target item, or the target effect may be different from the effect of the target item. The target effect may include: reducing the attribute value of the target attribute of the second virtual object (the target effect object) at one time, or continuously reducing the attribute value of the target attribute of the second virtual object, or causing visual shielding of the target duration to the second virtual object, or superimposing a negative state of the target duration on the second virtual object, etc. The present application does not limit the implementation method of the target effect. Schematically, taking the target item as a firebomb and the target effect as an explosion effect as an example, when the first virtual object is affected by multiple firebombs in the virtual scene and reaches the trigger condition, in the virtual scene, with the first virtual object as the center, an explosion effect is generated, and the second virtual object in the first range is affected, that is, the second virtual object is affected by the explosion effect, and the attribute value of the target attribute is reduced. The target attribute may be the action power, defense power, attack power and vitality of the second virtual object, etc.
[0080] In summary, the virtual object control method in the virtual scene provided by the embodiment of the present application provides a method of accumulating the influence of the target props on the virtual object to update the prop action state of the first virtual object, and when the prop action state meets the trigger condition, a target effect is generated within a first range centered on the first virtual object, and acts on the virtual object within the first range; thereby, when the virtual props are used in the virtual scene, it is not limited to the effect of the virtual props themselves, but further effects can be triggered based on the prop action state of the virtual props on the first virtual object, thereby expanding the effect of the virtual props in the virtual scene, and further expanding the way in which users control virtual objects to use virtual props, thereby improving the interaction efficiency and interaction effect between users and virtual scenes.
[0081] Figure 4 A flowchart of a method for controlling a virtual object in a virtual scene according to an exemplary embodiment of the present application is shown. The method can be executed by a computer device, which can be a terminal and / or a server. Schematically, the computer device can be implemented as follows: Figure 2 The terminal and / or server shown, such as Figure 4 As shown, the virtual object control method in the virtual scene may include the following steps:
[0082] Step 410: Display a virtual scene picture of a virtual scene, wherein the virtual scene picture includes a first virtual object.
[0083] The first virtual object may be a virtual object in a different camp from the virtual object that releases the target prop, or the first virtual object may be any virtual object in the virtual scene.
[0084] In a possible implementation, the virtual scene image may further include a virtual object that releases the target item, that is, a third virtual object. The third virtual object may hold the target item or be equipped with other equipment for releasing the target item. Figure 5 FIG. shows a schematic diagram of a virtual scene image shown in an exemplary embodiment of the present application, such as Figure 5 shown. The virtual scene image includes a third virtual object 510 that holds a target item 520. Figure 5 The target item shown is a trigger mine. When the trigger mine is used, it can throw a Molotov cocktail, causing explosive damage to virtual objects within the range of action of the trigger mine and leaving a continuously burning flame on the ground. The flame can cause damage to virtual objects within the range of action of the trigger mine or virtual objects that subsequently enter the range of action of the trigger mine, and the flame extinguishes after a certain period of time.
[0085] In a possible implementation, before entering the virtual scene, the user needs to perform an equipment operation based on the item equipment interface to determine the type of item that the third virtual object controlled by the user can use in this round of the game. When the user selects the icon control corresponding to the target item, it is determined that the third virtual object can use the target item in this round of the game, so that after the third virtual object enters the virtual scene, it can call and use the target item. Figure 6 FIG. shows a schematic diagram of an item equipment interface shown in an exemplary embodiment of the present application, such as Figure 6 shown. The item equipment interface 600 includes icon controls corresponding to at least one selectable virtual item. Based on the user's click operation on the icon controls corresponding to each virtual item, the display form 610 of the virtual item and the function description 620 of the virtual item are displayed in the item equipment interface for the user to refer to for strategic planning.
[0086] In a possible implementation, the target item is a reward-type virtual item. That is, before using the target item, the third virtual object needs to reach a first task goal so that the target item is in a usable state. When the target item is in a usable state, the user can control the third virtual object to bring out and use the target item. Therefore, before releasing the target item, the method further includes:
[0087] Display an item bring-out control. The item bring-out control is used to bring out the target item when it is in an active state and receives the user's touch operation. Among them, the item bring-out control is in an inactive state when the third virtual object has not reached the first task goal, that is, it cannot give feedback to the user's touch operation; it is in an active state when the third virtual object reaches the first task goal, that is, it can give feedback to the user's touch operation, such as Figure 5As shown, the prop call-out control 530 can be highlighted when the target prop is in an activated state, such as being highlighted, or being magnified, to remind the user that the target prop is available.
[0088] Among them, the first task goal can be achieved by the number of virtual objects eliminated by the third virtual object reaching a first quantity threshold; or, the number of virtual objects eliminated continuously by the third virtual object reaches a second quantity threshold; or, the accumulated score of the third virtual object reaches a score threshold; or, the attribute value of the target attribute of the third virtual object reaches an attribute threshold, etc. This application does not limit the way to activate the prop call-out control. Furthermore, the prop call-out control can also display the task completion progress of the third virtual object, for example, by superimposing the percentage of the task progress on the upper layer of the prop call-out control, or by changing the fill area of the prop call-out control to reflect the task completion progress, etc. This application does not limit this.
[0089] In response to the target prop being a throwing type virtual prop, after the third virtual object calls out the target prop, in response to the release operation of the third virtual object on the target prop, the target prop is released into the virtual scene. In this process, the throwing direction of the target prop in the virtual scene can be determined based on the aiming operation of the third virtual object, and the moving path of the target prop is displayed in the virtual scene screen based on the throwing direction. Figure 7 A schematic diagram of a moving path shown in an exemplary embodiment of the present application is shown in FIG. Figure 7 As shown, the virtual scene displays a moving path 710 corresponding to the target prop to indicate the throwing direction and landing position of the target prop (i.e., the position where the target prop produces the effect). In this process, based on the initial throwing direction and initial position of the target prop, a parabolic trajectory can be calculated according to the preset gravity value and initial velocity, and a point is sampled at a certain interval on the parabolic trajectory, the obtained sampling points are gathered into a line, and each sampling point is assigned to the special effect line, so that the special effect first generates a visible flight trajectory according to these sampling points (such as Figure 7 The moving trajectory shown); wherein the throwing direction is related to the movement or rotation action of the third virtual object; in this process, the orientation of the third virtual object can be obtained in real time, and the moving trajectory is obtained by real-time calculation based on the orientation of the third virtual object.
[0090] Step 420, in response to the target prop being effective in the virtual scene and the first virtual object being located within a second range, updating the prop action state of the first virtual object; the second range is an action range centered on the target prop.
[0091] That is to say, the target object of the target prop is a virtual object within the action range determined with the target object as the center.
[0092] In a possible implementation, the target prop is a continuously acting virtual prop; the method further includes:
[0093] In response to the target prop acting on the first virtual object, continuously reduce the attribute value of the first attribute of the first virtual object according to the first gradient until the first virtual object moves out of the second range, or the attribute value of the first attribute of the first virtual object is 0.
[0094] That is to say, when the target prop is triggered in the virtual scene, a corresponding effect will be generated within the second range in the virtual scene. This effect is valid within the target duration. During this target duration, if there is a virtual object within the second range or enters the second range, this effect will affect the virtual object. For example, reduce the attribute value of the second attribute; where the second range is the action range centered on the target prop. Taking the target prop as a combustion bomb as an example, Figure 8 The schematic diagram of the screen showing the target prop acting on the first virtual object shown in an exemplary embodiment of the present application is as follows Figure 8 As shown, the virtual scene contains the triggered target prop, so that an effect is generated within the second range 830 in the virtual scene, as follows Figure 8 As shown, this effect is manifested as a combustion special effect 810 with a target duration being displayed within and around the second range 830. There is a virtual object 820 (the first virtual object) within the second range. This virtual object 820 will be affected by this effect, that is, continuously reduce the attribute value of the first attribute according to the first gradient; when the first virtual object leaves the second range, or when the attribute value of the first attribute of the first virtual object is reduced to 0, stop reducing the attribute value of the first attribute according to the first gradient.
[0095] In order to simulate the scenario where the virtual object is still affected by the target prop during the fire extinguishing process, in a possible implementation, in response to the first virtual object moving out of the second range, continuously reduce the attribute value of the first attribute of the first virtual object according to the second gradient within the first duration until the first duration ends, or the attribute value of the first attribute of the first virtual object is 0. That is to say, within the first duration after the first virtual object leaves the second range, the effect of the target prop will still act on the first virtual object.
[0096] It should be noted that the first attribute of the above first virtual object can be the health value of the first virtual object. In this case, when the attribute value of the first attribute of the first virtual object is 0, the first virtual object is eliminated. Figure 9 The schematic diagram of the virtual scene screen shown in an exemplary embodiment of the present application is as follows Figure 9As shown, within a period of time after the first virtual object 910 leaves the action range 920 of the target prop, the target prop will still cause damage to the first virtual object 910. That is, after the first virtual object 910 leaves the ground fire generated based on the target prop, it will continue to be attacked by the ground fire for a period of time. In addition, if a virtual object 930 that is not within the action range 920 enters the action range 920 within the effective time of the action effect of the target prop, the virtual object 930 will also be affected by the target prop and the prop action state will be updated.
[0097] In one possible implementation, the second gradient is equal to the first gradient;
[0098] Alternatively, the second gradient is less than the first gradient;
[0099] Alternatively, the second gradient is a value that takes the first gradient as the initial value and gradually decreases over time until it becomes 0. For example, for an incendiary bomb, as time passes after the first virtual object leaves the action range (the second range) of the incendiary bomb, the burning effect of the incendiary bomb on the first virtual object gradually decreases to simulate the process of extinguishing a fire.
[0100] In one possible implementation, the prop action state of the first virtual object can be reflected by a prop action identifier. Therefore, the method further includes:
[0101] In response to the target prop acting on the first virtual object, update the prop action identifier, and the prop action identifier is used to represent the prop action state of the first virtual object;
[0102] Wherein, the prop action state is used to indicate the cumulative action situation of the first virtual object being affected by the virtual prop of the target type; the target type is the prop type of the target prop.
[0103] To clarify the correspondence between the prop action identifier and the first virtual object, in the embodiments of the present application, the display position of the prop action identifier corresponds to the display position of the first virtual object in the virtual scene screen. Figure 10 shows a schematic diagram of the prop action identifier shown in an exemplary embodiment of the present application, such as Figure 10As shown, the virtual scene screen includes a virtual object 1010 and a virtual object 1020 that have been affected by a target prop. To enable the user to clearly determine whether a virtual object has been affected by a target prop, and at the same time, enable the user to clearly determine the cumulative effect of the virtual prop of the target type on the virtual object, prop effect identifiers 1030 and prop effect identifiers 1030 are displayed corresponding to each virtual object in the virtual scene screen. Among them, the display position of the prop effect identifier 1030 corresponds to the display position of the virtual object 1010, and is used to represent the cumulative effect of the virtual prop of the target type on the virtual object 1020. The display position of the prop effect identifier 1040 corresponds to the display position of the virtual object 1020 and is used to represent the cumulative effect of the virtual prop of the target type on the virtual object. It should be noted that Figure 10 The relative relationship between the target effect identifier shown and the display position of the virtual object is only illustrative, and this application does not limit this.
[0104] In the embodiments of this application, the prop effect identifier has a display attribute, and this display attribute is used to characterize the prop effect state;
[0105] Among them, this display attribute includes at least one of the flashing frequency of the prop effect identifier, the display size of the prop effect identifier, and the display shape of the prop effect identifier.
[0106] Illustratively, the closer the prop effect state is to the trigger condition, the faster the flashing frequency of the prop effect identifier, and / or the larger the display size of the prop effect identifier, and / or the closer the display shape of the prop effect identifier is to a circle, etc. In a possible implementation, relevant personnel can set prop effect identifiers of different shapes in stages based on the difference between the prop effect state and the trigger condition, so that as the prop effect state changes from deviating from the trigger condition to approaching the trigger condition, prop effect identifiers of different shapes are displayed respectively. For example, as the prop effect state changes from deviating from the trigger condition to approaching the trigger condition, a square, a hexagon, an octagon, and finally a circular prop effect identifier are displayed respectively, that is, the closer the prop effect state is to the trigger condition, the closer the shape of the prop effect identifier is to a circle; or, it is also possible to display an arc, a semicircle, and finally a circular prop effect identifier to reflect the process of the prop effect state changing from deviating from the trigger condition to approaching the trigger condition. This application does not limit the shape change of the prop effect identifier during the process of the prop effect state changing from deviating from the trigger condition to approaching the trigger condition.
[0107] In a possible implementation, the server accumulates the prop effect state, determines the difference between the prop state and the trigger condition, and based on this difference, instructs the terminal to display this prop effect identifier.
[0108] In a possible implementation, in response to the attribute value of the second attribute of the first virtual object being 0, the display of the prop effect identifier is cancelled, where the second attribute is used to represent the health state of the virtual object in the virtual scene.
[0109] That is to say, when the attribute value of the second attribute of the first virtual object is 0, the first virtual object is eliminated. At this time, the cumulative effect of the target prop received by the first virtual object can be cleared to 0. Therefore, the prop effect identifier corresponding to the first virtual object is cancelled from being displayed in the virtual scene screen.
[0110] Step 430, in response to the attribute value of the second attribute of the first virtual object being greater than 0 and the prop effect state satisfying the trigger condition, trigger a target effect in the virtual scene, where the second attribute is used to represent the health state of the virtual object in the virtual scene.
[0111] That is to say, when the first virtual object is in a surviving state in the virtual scene and the prop effect state satisfies the trigger condition, the target effect is triggered; if the first virtual object has been eliminated in the virtual scene, then the prop effect state is cleared to 0 and the target effect cannot be triggered.
[0112] Among them, the trigger condition includes that the cumulative effect indicated by the prop effect state reaches the cumulative effect threshold. Different cumulative effect thresholds can be set corresponding to different cumulative effect situations.
[0113] Among them, the cumulative effect situation includes: the cumulative number of times the first virtual object is affected by virtual props of the target type;
[0114] Or, the cumulative attribute value of the first attribute of the first virtual object reduced by virtual props of the target type;
[0115] Or, the cumulative duration for which virtual props of the target type act on the first virtual object.
[0116] Among them, in response to the target item being a non-defeating virtual item, that is, the attribute value of the second attribute of the virtual object that the target item can reduce is less than the maximum value of the attribute value of the second attribute of the virtual object, that is, the target item cannot eliminate the virtual object in one go. The item effect state can be the cumulative number of times the first virtual object is affected by the virtual item of the target type. At this time, the trigger condition can be that the cumulative number of times the first virtual object is affected by the virtual item of the target type reaches the number threshold. In a possible case, the number of times the first virtual object enters the range of the virtual item of the target type is equal to the cumulative number of times the first virtual object is affected by the virtual item of the target type. For example, in the scenario where the target item is a fire bomb, if the virtual object is within the range of the fire bomb, the cumulative number is determined to be incremented by 1. If the virtual object leaves the range and then enters the range again, the cumulative number is incremented by 1 again; or, in response to the effect of the target item being to reduce the attribute value of the first attribute of the virtual object, the item effect state can be the cumulative attribute value of the first attribute of the first virtual object reduced based on the virtual item of the target type, and the trigger condition can be that this cumulative attribute value reaches the attribute value threshold; or, in response to the target item being a continuously acting virtual item that is effective within a certain range, the item effect state can be the cumulative duration that the virtual item of the target type acts on the first virtual object, and the trigger condition can be that this cumulative duration reaches the duration threshold. It should be noted that different item effect states and the progress thresholds corresponding to these item effect states can be set based on different actual requirements, and this application does not limit this.
[0117] Among them, the cumulative number of times refers to that in a single-round game, the first virtual object is attacked by multiple target items, and the multiple target items have an impact on the first virtual object. Then, each time the first virtual object is attacked by a target item, the number of times is superimposed; schematically, when the first virtual object is moving in the virtual scene and is first attacked by a fire bomb and suffers the damage of the fire bomb, it has received one attack in total, that is, the cumulative number of times is 1; if the first virtual object is not eliminated and is attacked by a fire bomb for the second time and suffers the damage of the fire bomb, it has received two attacks in total, that is, the cumulative number of times is 2, and so on.
[0118] The first attribute of the first virtual object can be implemented as any one of various attributes such as mobility, defense, vitality, field of vision, etc.; when the target item is a non-defeating virtual item and the target item is used to reduce the value of the first attribute of the first virtual object, when the target item acts on the first virtual object, it will cause the value of the first attribute of the first virtual object to be reduced by the target attribute value at once, or continuously reduced. When the effect of the target item is to continuously reduce the value of the first attribute of the first virtual object, due to the different ways the first virtual object responds to different target items (such as movement patterns), the numerical values of the first attribute of the first virtual object that each target item can reduce are different. By way of illustration, the first target item reduces the value of the first attribute of the first virtual object by 200 points, the second target item reduces the value of the first attribute of the first virtual object by 50 points, and so on. Therefore, the cumulative attribute value can be the sum of the values of the first attribute of the first virtual object reduced by the virtual items of the target type respectively.
[0119] Optionally, the target item is a continuously acting virtual item, that is, within a certain range, the target item will cause continuous damage to the first virtual object within this range. However, as the first virtual object moves away from this range based on the user's movement operation, the first virtual object will not be affected by the target item, or the degree of influence of the target item on the first virtual object is reduced; due to the different ways the first virtual object responds to virtual items of the same type (such as movement patterns), the length of time that each virtual item can affect the first virtual object is different. By way of illustration, the first target item affects the first virtual object for 3 seconds, the second target item affects the first virtual object for 5 seconds, and so on. Therefore, the cumulative duration can be the sum of the durations that the virtual items of the target type affect the first virtual object respectively.
[0120] In a possible implementation, the virtual props of the target type are released into the virtual scene by the same virtual object; or, the virtual props of the target type are released into the virtual scene by different virtual objects. When the virtual props of the target type are released into the virtual scene by the same virtual object, when the first prop action state corresponding to the attack of the third virtual object on the first virtual object based on the target prop meets the trigger condition, the target effect is triggered, and even if other virtual objects attack the first virtual object based on the target prop, it will not affect the first prop action state; accordingly, the corresponding prop action states can be set for different virtual objects that attack the first virtual object based on the target prop, and the prop action states can be counted and accumulated respectively. When the virtual props of the target type are released into the virtual scene by different virtual objects, when the first virtual object receives the attack of the target prop released by any virtual object in the virtual scene, the prop action state of the first virtual object is updated.
[0121] In one possible implementation, after the prop action state of the first virtual object meets the trigger condition, the target effect triggered in the virtual scene is to reduce the attribute value of the second attribute of the first virtual object to 0, and to reduce the attribute value of the second attribute of other virtual objects except the first virtual object within the first range, where the second attribute is used to characterize the health status of the virtual object in the virtual scene; that is, the target effect is used to eliminate the first virtual object and cause damage to other virtual objects other than the first virtual object within the first range centered on the first virtual object. Figure 11 A schematic diagram of a virtual scene screen shown in an exemplary embodiment of the present application is shown. Figure 11 As shown, the virtual scene includes a first virtual object 1110, and the prop action state of the first virtual object 1110 has satisfied the triggering condition. The target effect is triggered in the virtual scene, which can be shown as follows Figure 11 As shown, an explosion effect centered on the first virtual object is generated, and the second virtual object 1120 within a certain range centered on the first virtual object will be affected by the explosion effect. In this case, reducing the attribute value of the second attribute of the second virtual object within the first range means reducing the target attribute value based on the current attribute value of the second attribute of the second virtual object, and the target attribute value may be a value preset by a relevant person; or, in another possible implementation, the closer the virtual object within the first range is to the first virtual object, the more the attribute value of its second attribute decreases, or the greater the decrease gradient; the farther the virtual object within the first range is from the first virtual object, the less the attribute value of its second attribute decreases, or the smaller the decrease gradient.
[0122] In a possible implementation, the target effect acts on other virtual objects within the first range that are in the same camp as the first virtual object; that is, the target effect is effective for virtual objects in the same camp as the first virtual object and ineffective for virtual objects in a different camp from the first virtual object.
[0123] In summary, the method for controlling virtual objects in a virtual scene provided by the embodiments of the present application accumulates the influence of a target prop received by a virtual object to update the prop effect state of the first virtual object, and when the prop effect state meets the trigger condition, a target effect is generated within the first range centered on the first virtual object and acts on the virtual objects within the first range; thereby, when using virtual props in a virtual scene, it is not limited to the effect of the virtual prop itself, but can also trigger further effect based on the prop effect state of the virtual prop on the first virtual object, thereby expanding the effect of the virtual prop in the virtual scene, and further expanding the way for users to control virtual objects to use virtual props, improving the interaction efficiency and interaction effect between users and the virtual scene.
[0124] Taking the target prop as a trigger mine as an example, after the trigger mine is triggered in the virtual scene, it can cause explosion damage to virtual objects within its range of effect and generate burning damage within this range of effect. The explosion damage can refer to reducing the health value of a virtual object by a certain amount at one time (the health value is used to indicate the health state of the virtual object in the virtual scene), and the burning damage can continuously reduce the health value of the virtual object according to a certain gradient until the virtual object is eliminated or leaves the range of effect of the trigger mine. Figure 12 The flowchart of the method for controlling virtual objects in a virtual scene shown in an exemplary embodiment of the present application is shown as Figure 12 As shown, the method for controlling objects in the virtual scene may include the following steps:
[0125] S1201, the third virtual object equips the trigger mine.
[0126] Among them, the process of equipping the trigger mine can be carried out before the third virtual object enters the virtual scene.
[0127] S1202, determine whether the trigger mine is activated. If not, return to the state corresponding to S1201. If so, execute S1203.
[0128] The trigger mine is a virtual prop activated after the third virtual object completes the first task objective, that is, after the third virtual object completes the first task objective, the third virtual object can retrieve and use the trigger mine.
[0129] S1203, highlight the prop retrieval control.
[0130] The prop call control is used to call the trigger mine in the virtual scene. The highlighting can refer to highlighting, or increasing the display area, etc.
[0131] S1204, determine whether a selection operation based on the prop call control is received. If so, execute S1205; otherwise, return to the state corresponding to S1203.
[0132] S1205, switch out the trigger mine.
[0133] S1206, determine whether a selection operation based on the release control is received. If so, execute S1207; otherwise, return to the state corresponding to S1205.
[0134] The release control can be implemented as a firing key corresponding to the trigger mine.
[0135] S1207, throw the trigger mine.
[0136] S1208, determine whether the trigger mine collides with the virtual model. If so, execute S1209; otherwise, return to S1207.
[0137] Among them, the virtual model can be implemented as any model in the virtual scene, such as a virtual object model, a virtual vehicle model, and a scene model. Optionally, the trigger mine can be set to trigger after colliding with the ground model in the virtual scene. In this case, this step can be implemented as determining whether the trigger mine lands.
[0138] S1209, explode and generate ground fire.
[0139] S1210, determine whether there is a first virtual object within the explosion range. If so, execute S1211; otherwise, return to the state corresponding to S1209.
[0140] The first virtual object can be a virtual object in a different camp from the third virtual object, or the first virtual object can also be any virtual object in the virtual scene.
[0141] S1211, continuously reduce the value of the target attribute of the first virtual object and update the prop effect state of the first virtual object.
[0142] S1212, determine whether the prop effect state of the first virtual object meets the trigger condition. If so, execute S1213; otherwise, return to the state corresponding to S1211.
[0143] S1213, the first virtual object self-destructs and causes damage to the second virtual objects around the first virtual object.
[0144] The second virtual object can be a virtual object within a certain range centered on the first virtual object.
[0145] It should be noted that the relevant content of S1201 to S1213 above can be referred to Figure 3 or Figure 4 the corresponding description content, which will not be elaborated here.
[0146] In summary, the method for controlling virtual objects in a virtual scene provided by the embodiments of the present application accumulates the influence of a target prop on a virtual object to update the prop action state of the first virtual object, and when the prop action state meets the trigger condition, a target effect is generated within a first range centered on the first virtual object and acts on the virtual objects within the first range; thus, when using virtual props in a virtual scene, it is not limited to the action effect of the virtual prop itself, but can also trigger further action effects based on the prop action state of the virtual prop on the first virtual object, thereby expanding the action effect of the virtual prop in the virtual scene, and further expanding the way for users to control virtual objects to use virtual props, improving the interaction efficiency and interaction effect between users and the virtual scene.
[0147] Figure 13 The block diagram of the virtual object control device in the virtual scene shown in an exemplary embodiment of the present application is shown as Figure 13 shown, and the device may include:
[0148] A screen display module 1310 for displaying a virtual scene screen of the virtual scene, where the virtual scene screen includes a first virtual object;
[0149] A state update module 1320 for updating the prop action state of the first virtual object in response to a target prop acting on the first virtual object; the prop action state is used to indicate the cumulative action situation of the first virtual object being affected by a virtual prop of a target type; the target type is the prop type of the target prop;
[0150] An effect trigger module 1330 for triggering a target effect in the virtual scene in response to the prop action state meeting the trigger condition; the target effect is used to act on virtual objects within a first range; the first range is an area range centered on the position where the first virtual object is located.
[0151] In a possible implementation manner, the state update module 1320 is configured to update the prop action state of the first virtual object in response to the target prop taking effect in the virtual scene and the first virtual object being located within a second range; the second range is an action range centered on the target prop.
[0152] In a possible implementation, the target prop is a continuously acting virtual prop; the device further includes:
[0153] A first attribute value reduction module, configured to, in response to the target prop acting on the first virtual object, continuously reduce the attribute value of the first attribute of the first virtual object according to a first gradient until the first virtual object moves out of the second range, or the attribute value of the first attribute of the first virtual object becomes 0.
[0154] In a possible implementation, the device further includes:
[0155] A second attribute value reduction module, configured to, in response to the first virtual object moving out of the second range, continuously reduce the attribute value of the first attribute of the first virtual object according to a second gradient within a first time period until the end of the first time period, or the attribute value of the first attribute of the first virtual object becomes 0.
[0156] In a possible implementation, the second gradient is equal to the first gradient;
[0157] Alternatively, the second gradient is less than the first gradient;
[0158] Alternatively, the second gradient takes the first gradient as an initial value and gradually decreases over time until it becomes 0.
[0159] In a possible implementation, the status update module 1320 is configured to, in response to a target prop acting on the first virtual object, update a prop action identifier, where the prop action identifier is used to characterize the prop action status of the first virtual object;
[0160] wherein, the display position of the prop action identifier corresponds to the display position of the first virtual object in the virtual scene picture.
[0161] In a possible implementation, the prop action identifier has a display attribute, and the display attribute is used to characterize the prop action status;
[0162] The display attribute includes at least one of the blinking frequency of the prop action identifier, the display size of the prop action identifier, and the display shape of the prop action identifier.
[0163] In a possible implementation, the device further includes:
[0164] A cancellation display module, configured to, in response to the attribute value of the second attribute of the first virtual object being 0, cancel the display of the prop action identifier, where the second attribute is used to characterize the health status of the virtual object in the virtual scene.
[0165] In a possible implementation, the triggering condition includes that the cumulative effect situation indicated by the item effect state reaches a cumulative effect threshold.
[0166] In a possible implementation, the cumulative effect situation includes: the cumulative number of times the first virtual object is affected by the virtual item of the target type;
[0167] Or, the cumulative attribute value of the first attribute of the first virtual object reduced based on the virtual item of the target type;
[0168] Or, the cumulative duration for which the virtual item of the target type acts on the first virtual object.
[0169] In a possible implementation, the effect trigger module 1330 is configured to trigger a target effect in the virtual scene in response to the attribute value of the second attribute of the first virtual object being greater than 0 and the item effect state satisfying the triggering condition, where the second attribute is used to represent the health state of the virtual object in the virtual scene.
[0170] In a possible implementation, the effect trigger module 1330 is configured to reduce the attribute value of the second attribute of the first virtual object to 0 in response to the item effect state satisfying the triggering condition, and reduce the attribute value of the second attribute of other virtual objects in the first range except the first virtual object, where the second attribute is used to represent the health state of the virtual object in the virtual scene.
[0171] In a possible implementation, the target effect acts on other virtual objects within the first range that are in the same camp as the first virtual object.
[0172] In summary, the virtual object control device in the virtual scene provided by the embodiments of the present application accumulates the influence of the target item received by the virtual object to update the item effect state of the first virtual object, and when the item effect state satisfies the triggering condition, generates a target effect within the first range centered on the first virtual object and acts on the virtual objects within the first range; thereby enabling when using virtual items in the virtual scene, not being limited to the effect of the virtual item itself, but also being able to trigger further effect based on the item effect state of the virtual item on the first virtual object, thus expanding the effect of the virtual item in the virtual scene, and further expanding the way for the user to control the virtual object to use the virtual item, improving the interaction efficiency and interaction effect between the user and the virtual scene.
[0173] Figure 14The structure block diagram of a computer device 1400 shown in an exemplary embodiment of the present application is illustrated. The computer device may be implemented as the server in the above solution of the present application. The computer device 1400 includes a central processing unit (CPU) 1401, a system memory 1404 including a random access memory (RAM) 1402 and a read-only memory (ROM) 1403, and a system bus 1405 connecting the system memory 1404 and the central processing unit 1401. The computer device 1400 further includes a mass storage device 1406 for storing an operating system 1409, application programs 1410, and other program modules 1411.
[0174] The mass storage device 1406 is connected to the central processing unit 1401 through a mass storage controller (not shown) connected to the system bus 1405. The mass storage device 1406 and its associated computer-readable medium provide non-volatile storage for the computer device 1400. That is to say, the mass storage device 1406 may include a computer-readable medium (not shown) such as a hard disk or a compact disc read-only memory (CD-ROM) drive.
[0175] Without loss of generality, the computer-readable medium may include a computer storage medium and a communication medium. The computer storage medium includes volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. The computer storage medium includes RAM, ROM, erasable programmable read-only registers (EPROM), electrically erasable programmable read-only memories (EEPROM), flash memory or other solid-state storage technologies, CD-ROM, digital versatile discs (DVD) or other optical storage, magnetic tape cartridges, tapes, disk storage, or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage medium is not limited to the above several. The above system memory 1404 and mass storage device 1406 may be collectively referred to as a memory.
[0176] According to various embodiments of the present disclosure, the computer device 1400 may also operate by connecting to a remote computer on the network through a network such as the Internet. That is, the computer device 1400 may be connected to the network 1408 through the network interface unit 1407 connected to the system bus 1405. Or rather, the network interface unit 1407 may also be used to connect to other types of networks or remote computer systems (not shown).
[0177] The memory further includes at least one instruction, at least one program, a code set or an instruction set. The at least one instruction, at least one program, code set or instruction set is stored in the memory, and the central processing unit 1401 implements all or part of the steps in the virtual object control method in the virtual scenario shown in the above various embodiments by executing the at least one instruction, at least one program, code set or instruction set.
[0178] Figure 15 The structural block diagram of a computer device 1500 provided by an exemplary embodiment of the present application is shown. The computer device 1500 may be implemented as the above terminal, such as: a smart phone, a tablet computer, a notebook computer or a desktop computer. The computer device 1500 may also be referred to by other names such as a user device, a portable terminal, a laptop terminal, a desktop terminal, etc.
[0179] Generally, the computer device 1500 includes: a processor 1501 and a memory 1502.
[0180] The processor 1501 may include one or more processing cores, such as a 4-core processor, a 15-core processor, etc. The processor 1501 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 1501 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 1501 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 1501 may further include an AI (Artificial Intelligence) processor, and the AI processor is used to process the computational operations related to machine learning.
[0181] The memory 1502 may include one or more computer-readable storage media, which may be non-transitory. The memory 1502 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1502 is used to store at least one instruction for being executed by the processor 1501 to implement all or part of the steps in the virtual object control method in the virtual scenario provided in the method embodiments of this application.
[0182] In some embodiments, the computer device 1500 may further optionally include: a peripheral device interface 1503 and at least one peripheral device. The processor 1501, the memory 1502, and the peripheral device interface 1503 may be connected through a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 1503 through a bus, signal lines, or a circuit board. Specifically, the peripheral device includes at least one of: a radio frequency circuit 1504, a display screen 1505, a camera assembly 1506, an audio circuit 1507, and a power supply 1508.
[0183] The peripheral device interface 1503 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1501 and the memory 1502. In some embodiments, the processor 1501, the memory 1502, and the peripheral device interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1501, the memory 1502, and the peripheral device interface 1503 may be implemented on a separate chip or circuit board, and this embodiment does not limit this.
[0184] In some embodiments, the computer device 1500 further includes one or more sensors 1509. The one or more sensors 1509 include but are not limited to: an acceleration sensor 1510, a gyroscope sensor 1511, a pressure sensor 1512, an optical sensor 1513, and a proximity sensor 1514.
[0185] Those skilled in the art can understand that Figure 15 the structure shown in does not constitute a limitation on the computer device 1500, and it may include more or fewer components than shown in the figure, or combine certain components, or adopt different component arrangements.
[0186] In an exemplary embodiment, a computer-readable storage medium is further provided for storing at least one instruction, at least one segment of program, a code set or an instruction set, which is loaded and executed by a processor to implement all or part of the steps in the virtual object control method in the above virtual scenario. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0187] In an exemplary embodiment, a computer program product or a computer program is further provided. The computer program product or the computer program includes computer instructions that are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes all or part of the steps of the method shown in any of the above Figure 3 , Figure 4 or Figure 12 embodiments.
[0188] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include common general knowledge or conventional technical means in the technical field not disclosed in the present application. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present application are pointed out by the following claims.
[0189] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.
Claims
1. A method for controlling virtual objects in a virtual scene, characterized in that, the method includes: displaying a virtual scene picture of the virtual scene, where the virtual scene picture includes a first virtual object; responding to a target prop acting on the first virtual object, updating the prop acting state of the first virtual object, including: responding to the target prop acting on the first virtual object, updating a prop acting identifier, where the prop acting identifier is used to represent the prop acting state of the first virtual object; the prop acting state is used to indicate the cumulative acting situation of the first virtual object being affected by virtual props of a target type; the target type is the prop type of the target prop; responding to the prop acting state satisfying a trigger condition, triggering a target effect in the virtual scene; the target effect is used to have a negative effect on virtual objects within a first range; the first range is an area range centered on the position where the first virtual object is located; wherein, the display position of the prop acting identifier corresponds to the display position of the first virtual object in the virtual scene picture.
2. The method according to claim 1, characterized in that, responding to a target prop acting on the first virtual object, updating the prop acting state of the first virtual object, including: responding to the target prop taking effect in the virtual scene and the first virtual object being within a second range, updating the prop acting state of the first virtual object; the second range is an acting range centered on the target prop.
3. The method according to claim 2, characterized in that, the target prop is a continuously acting virtual prop, and the method further includes: responding to the target prop acting on the first virtual object, continuously reducing the attribute value of the first attribute of the first virtual object at a first gradient until the first virtual object moves out of the second range, or the attribute value of the first attribute of the first virtual object is 0.
4. The method according to claim 3, characterized in that, the method further includes: responding to the first virtual object moving out of the second range, continuously reducing the attribute value of the first attribute of the first virtual object at a second gradient within a first time period until the first time period ends, or the attribute value of the first attribute of the first virtual object is 0.
5. The method according to claim 4, characterized in that, the second gradient is equal to the first gradient; or, the second gradient is less than the first gradient; or, the second gradient takes the first gradient as an initial value and gradually decreases over time until it becomes 0.
6. The method according to claim 1, characterized in that, the prop acting identifier has a display attribute, and the display attribute is used to represent the prop acting state; the display attribute includes at least one of the blinking frequency of the prop acting identifier, the display size of the prop acting identifier, and the display shape of the prop acting identifier.
7. The method according to claim 1, characterized in that, the method further includes: In response to the attribute value of the second attribute of the first virtual object being 0, the display of the prop effect identifier is cancelled, and the second attribute is used to characterize the health state of the virtual object in the virtual scene.
8. The method according to claim 1, wherein, the triggering condition includes that the cumulative effect situation indicated by the prop effect state reaches a cumulative effect threshold.
9. The method according to claim 8, wherein, the cumulative effect situation includes: the cumulative number of times the first virtual object is affected by the virtual prop of the target type; alternatively, the cumulative attribute value of the first attribute of the first virtual object reduced based on the virtual prop of the target type; alternatively, the cumulative duration for which the virtual prop of the target type acts on the first virtual object.
10. The method according to claim 1, wherein, the triggering of the target effect in the virtual scene in response to the prop effect state satisfying the triggering condition includes: In response to the attribute value of the second attribute of the first virtual object being greater than 0 and the prop effect state satisfying the triggering condition, a target effect is triggered in the virtual scene, and the second attribute is used to characterize the health state of the virtual object in the virtual scene.
11. The method according to claim 1, wherein, the triggering of the target effect in the virtual scene in response to the prop effect state satisfying the triggering condition includes: In response to the prop effect state satisfying the triggering condition, the attribute value of the second attribute of the first virtual object is reduced to 0, and the attribute values of the second attributes of other virtual objects in the first range except the first virtual object are reduced, and the second attribute is used to characterize the health state of the virtual object in the virtual scene.
12. The method according to claim 1, wherein, the target effect acts on other virtual objects in the first range that are in the same camp as the first virtual object.
13. A virtual object control device in a virtual scene, wherein, the device includes: a screen display module for displaying a virtual scene screen of the virtual scene, the virtual scene screen including a first virtual object; a state update module for updating the prop effect state of the first virtual object in response to a target prop acting on the first virtual object, including: updating a prop effect identifier in response to the target prop acting on the first virtual object, the prop effect identifier being used to characterize the prop effect state of the first virtual object; the prop effect state being used to indicate the cumulative effect situation of the first virtual object being affected by the virtual prop of the target type; the target type being the prop type of the target prop; an effect trigger module for triggering a target effect in the virtual scene in response to the prop effect state satisfying the triggering condition; the target effect being used to have a negative effect on the virtual objects in the first range; the first range being an area range centered on the position where the first virtual object is located; Wherein, the display position of the prop function identifier corresponds to the display position of the first virtual object in the virtual scene picture.
14. A computer device, characterized in that the computer device includes a processor and a memory, the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the virtual object control method in the virtual scene according to any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that the computer-readable storage medium stores at least one computer program, and the computer program is loaded and executed by a processor to implement the virtual object control method in the virtual scene according to any one of claims 1 to 12.
16. A computer program product, characterized in that the computer program product includes at least one computer program, and the computer program is loaded and executed by a processor to implement the virtual object control method in the virtual scene according to any one of claims 1 to 12.
Citation Information
Patent Citations
Virtual object interaction method in virtual scene and related device
CN111803962A