Virtual object dynamic change method, apparatus, and device, and storage medium
View Patent ↗This application provides a virtual object dynamic change method performed by a computer device. The method includes: obtaining a target region displayed by a virtual scene on a current interface; determining an environmental element associated with the target region, and an operation to a virtual object displayed in the target region; determining a dynamic change parameter of the virtual object according to the environmental element and the operation; updating the virtual object in the target region according to the dynamic change parameter, to obtain a updated virtual object; and causing a display of the updated virtual object on the current interface.
1 . A virtual object dynamic change method performed by a terminal or a server based on a cloud platform, the method comprising:
obtaining a target region displayed by a virtual scene of a multiplayer game, wherein the virtual scene is stored in a cloud memory by using cloud storage technology;
determining an environmental element associated with the target region, and an interaction operation on a virtual object displayed in the target region by a player of the multiplayer game, wherein the virtual object is a non-playable character (NPC) AI of the multiplayer game, wherein the terminal sends the operation of the player on the terminal and region data corresponding to the displayed target region to the server, wherein the data is synchronized between the terminal and the server;
determining a plurality of dynamic change parameters of the virtual object according to the environmental element and the player's interaction operation on the virtual object by learning through a machine learning technology, wherein a parameter of the virtual object in the target region is dynamically adjusted, the plurality of dynamic change parameters including an object behavior parameter of the virtual object and a refresh parameter of the virtual object;
updating the target region in the virtual scene according to the environmental element;
causing the virtual object to perform a predefined behavior in the updated target region according to the object behavior parameter of the virtual object; and
updating the predefined behavior performed by the virtual object in the virtual scene according to the refresh parameter of the virtual object when a refreshment condition is met,
wherein the interaction operation comprises a speed of killing the virtual object, and the refresh parameter is updated when the speed of killing reaches a threshold,
wherein the determining the plurality of dynamic change parameters of the virtual object according to the environmental element and the player's interaction operation on the virtual object comprises:
mapping, based on a preset mapping rule, the interaction operation to the refresh parameter of the virtual object,
wherein the mapping comprises:
determining the killing speed in each preset period;
changing a dynamic refresh count when the killing speed in any preset period is less than a speed threshold;
determining, according to the preset mapping rule and the dynamic refresh count, the refresh parameter of the virtual object;
resetting the dynamic refresh count when the killing speed in any preset period is greater than or equal to the speed threshold; and
refreshing the virtual object in the target region based on a default refresh parameter, and
wherein the determining the environmental element associated with the target region and the determining the dynamic change parameter according to the environmental element comprise performing image recognition and analysis on the target region in the virtual scene using image recognition processing technology.
2 . The method according to claim 1 , wherein the environmental element comprises at least one of: time, weather, and existence of a facility in proximity of the virtual object.
3 . The method according to claim 1 , wherein the object behavior parameter comprises a behavior and a motion parameter, and the causing the virtual object to perform the predefined behavior comprises:
causing the virtual object to perform the behavior based on the motion parameter.
4 . The method according to claim 3 , wherein the behavior comprises at least one of: patrolling, sitting, sleeping, hiding, and interacting with the facility, and the motion parameter comprises at least one of moving speed, moving distance, patrolling route, climbing height, and alert range.
5 . The method according to claim 1 , wherein the refresh parameter comprises at least one of: virtual object type and association with a facility.
6 . The method according to claim 1 , wherein the virtual object belongs to a virtual object cluster, and the refresh parameter comprises at least one of: group quantity and distribution region.
7 . The method according to claim 1 , wherein the refreshment condition is at least one of:
the virtual object is killed; and
a time period is over.
8 . A computer device, comprising:
a memory, configured to store executable instructions; and a processor, configured to execute the executable instructions and cause the computer device to perform a virtual object dynamic change method based on a cloud platform, the method including:
obtaining a target region displayed by a virtual scene of a multiplayer game, wherein the virtual scene is stored in a cloud memory by using cloud storage technology;
determining an environmental element associated with the target region, and an interaction operation on a virtual object displayed in the target region by a player of the multiplayer game, wherein the virtual object is a non-playable character (NPC) AI of the multiplayer game, wherein the computer device sends the operation of the player on the terminal and region data corresponding to the displayed target region to a server, wherein the data is synchronized between the terminal and the server;
determining a plurality of dynamic change parameters of the virtual object according to the environmental element and the player's interaction operation on the virtual object by learning through a machine learning technology, wherein a parameter of the virtual object in the target region is dynamically adjusted, the plurality of dynamic change parameters including an object behavior parameter of the virtual object and a refresh parameter of the virtual object;
updating the target region in the virtual scene according to the environmental element;
causing the virtual object to perform a predefined behavior in the updated target region according to the object behavior parameter of the virtual object; and
updating the predefined behavior performed by the virtual object in the virtual scene according to the refresh parameter of the virtual object when a refreshment condition is met,
wherein the interaction operation comprises a speed of killing the virtual object, and the refresh parameter is updated when the speed of killing reaches a threshold,
wherein the determining the plurality of dynamic change parameters of the virtual object according to the environmental element and the player's interaction operation on the virtual object comprises:
mapping, based on a preset mapping rule, the interaction operation to the refresh parameter of the virtual object;
wherein the mapping comprises:
determining the killing speed in each preset period;
changing a dynamic refresh count when the killing speed in any preset period is less than a speed threshold;
determining, according to the preset mapping rule and the dynamic refresh count, the refresh parameter of the virtual object;
resetting the dynamic refresh count when the killing speed in any preset period is greater than or equal to the speed threshold; and
refreshing the virtual object in the target region based on a default refresh parameter, and
wherein the determining the environmental element associated with the target region and the determining the dynamic change parameter according to the environmental element comprise performing image recognition and analysis on the target region in the virtual scene using image recognition processing technology.
9 . The computer device according to claim 8 , wherein the environmental element comprises at least one of: time, weather, and existence of a facility in proximity of the virtual object.
10 . A non-transitory computer-readable storage medium, storing executable instructions, the executable instructions, when executed by a processor of a computer device, causing the computer device to perform a virtual object dynamic change method based on a cloud platform, the method including:
obtaining a target region displayed by a virtual scene of a multiplayer game, wherein the virtual scene is stored in a cloud memory by using cloud storage technology;
determining an environmental element associated with the target region, and an interaction operation on a virtual object displayed in the target region by a player of the multiplayer game, wherein the virtual object is a non-playable character (NPC) AI of the multiplayer game, wherein the computer device sends the operation of the player on the terminal and region data corresponding to the displayed target region to a server, wherein the data is synchronized between the terminal and the server;
determining a plurality of dynamic change parameters of the virtual object according to the environmental element and the player's interaction operation on the virtual object by learning through a machine learning technology, wherein a parameter of the virtual object in the target region is dynamically adjusted, the plurality of dynamic change parameters including an object behavior parameter of the virtual object and a refresh parameter of the virtual object;
updating the target region in the virtual scene according to the environmental element;
causing the virtual object to perform a predefined behavior in the updated target region according to the object behavior parameter of the virtual object; and
updating the predefined behavior performed by the virtual object in the virtual scene according to the refresh parameter of the virtual object when a refreshment condition is met,
wherein the interaction operation comprises a speed of killing the virtual object, and the refresh parameter is updated when the speed of killing reaches a threshold,
wherein the determining the plurality of dynamic change parameters of the virtual object according to the environmental element and the player's interaction operation on the virtual object comprises:
mapping, based on a preset mapping rule, the interaction operation to the refresh parameter of the virtual object;
wherein the mapping comprises:
determining the killing speed in each preset period;
changing a dynamic refresh count when the killing speed in any preset period is less than a speed threshold;
determining, according to the preset mapping rule and the dynamic refresh count, the refresh parameter of the virtual object;
resetting the dynamic refresh count when the killing speed in any preset period is greater than or equal to the speed threshold; and
refreshing the virtual object in the target region based on a default refresh parameter, and
wherein the determining the environmental element associated with the target region and the determining the dynamic change parameter according to the environmental element comprise performing image recognition and analysis on the target region in the virtual scene using image recognition processing technology.
11 . The non-transitory computer-readable storage medium according to claim 10 , wherein the environmental element comprises at least one of: time, weather, and existence of a facility in proximity of the virtual object.