CN112604304B - Interaction control method and device for virtual objects - Google Patents

Interaction control method and device for virtual objects Download PDF

Info

Publication number
CN112604304B
CN112604304B CN202011561676.XA CN202011561676A CN112604304B CN 112604304 B CN112604304 B CN 112604304B CN 202011561676 A CN202011561676 A CN 202011561676A CN 112604304 B CN112604304 B CN 112604304B
Authority
CN
China
Prior art keywords
interactive
virtual object
interaction
controller
expression
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011561676.XA
Other languages
Chinese (zh)
Other versions
CN112604304A (en
Inventor
倪铁
赵博强
张子石
杨其帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Digital Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Kingsoft Digital Network Technology Co Ltd filed Critical Zhuhai Kingsoft Digital Network Technology Co Ltd
Priority to CN202011561676.XA priority Critical patent/CN112604304B/en
Publication of CN112604304A publication Critical patent/CN112604304A/en
Application granted granted Critical
Publication of CN112604304B publication Critical patent/CN112604304B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8058Virtual breeding, e.g. tamagotchi
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8082Virtual reality
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides an interaction control method and device for a virtual object, wherein the method comprises the following steps: acquiring a first interaction controller according to a first logic requirement corresponding to a virtual object in a virtual scene; sequentially calling at least one interactive expression through the first interactive controller, and enabling the virtual object to execute corresponding interactive actions according to each interactive expression; under the condition that switching to a second interactive controller is needed according to a second logic requirement corresponding to the virtual object, sending an exit instruction to the first interactive controller or the interactive performance corresponding to the virtual object according to the current corresponding interactive state of the virtual object; and exiting the first interactive controller according to the exit instruction, sequentially calling at least one interactive expression through the second interactive controller, and enabling the virtual object to execute each interactive expression.

Description

Interaction control method and device for virtual objects
Technical Field
The present application relates to the field of computer technologies, and in particular, to an interaction control method and apparatus for a virtual object, a computing device, and a computer-readable storage medium.
Background
In the existing game, a player can usually interact with a virtual object in a virtual scene, for example, a virtual pet or a virtual ride in the game, however, the existing interaction methods are often a plurality of fixed interaction methods that are preset, the virtual object cannot generate a specific interaction process according to the state of the virtual object, and cannot generate a substitution feeling for the player, so that the player feels boring and boring after a certain game time, and the game experience is reduced.
Disclosure of Invention
In view of this, embodiments of the present application provide an interaction control method and apparatus for a virtual object, a computing device, and a computer-readable storage medium, so as to solve technical defects in the prior art.
According to a first aspect of embodiments of the present specification, there is provided an interaction control method for a virtual object, including:
acquiring a first interaction controller according to a first logic requirement corresponding to a virtual object in a virtual scene;
sequentially calling at least one interactive expression through the first interactive controller, and enabling the virtual object to execute corresponding interactive actions according to each interactive expression;
under the condition that switching to a second interactive controller is needed according to a second logic requirement corresponding to the virtual object, sending an exit instruction to the first interactive controller or the interactive performance corresponding to the virtual object according to the current corresponding interactive state of the virtual object;
and exiting the first interactive controller according to the exit instruction, sequentially calling at least one interactive expression through the second interactive controller, and enabling the virtual object to execute each interactive expression.
According to a second aspect of embodiments of the present specification, there is provided an interaction control apparatus for a virtual object, including:
the demand response module is configured to acquire a first interaction controller according to a first logic demand corresponding to a virtual object in a virtual scene;
the interaction calling module is configured to call at least one interaction expression in sequence through the first interaction controller, and enable the virtual object to execute corresponding interaction actions according to each interaction expression;
the requirement response module is further configured to send an exit instruction to the first interaction controller or the interaction representation corresponding to the virtual object at present according to the interaction state corresponding to the virtual object at present when switching to a second interaction controller is required according to a second logic requirement corresponding to the virtual object;
and the interactive quitting module is configured to quit the first interactive controller according to the quitting instruction, sequentially call at least one interactive expression through the second interactive controller and enable the virtual object to execute each interactive expression.
According to a third aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the interaction control method for the virtual object when executing the instructions.
According to a fourth aspect of embodiments herein, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the interaction control method for virtual objects.
According to the method and the device, different interaction performances can be called through different interaction controllers according to the logic requirements of the virtual objects corresponding to the virtual scenes, so that the virtual objects can actively carry out different interaction processes with players according to different conditions, and the substitution feeling of the players and the richness of games are greatly improved. Meanwhile, the hierarchical structure among different interactive controllers is clear, and the interaction expression hierarchy called by the interactive controller is used for exiting step by step, so that when another interactive controller is switched, the correct exiting of the previous interactive controller is ensured, and the consistency of the interactive state and the logic data is ensured. In addition, various interactive representations of the method and the device can be multiplexed, so that the interactive process of the virtual object is greatly expanded.
Drawings
FIG. 1 is a block diagram of a computing device provided by an embodiment of the present application;
fig. 2 is a flowchart of an interaction control method for a virtual object according to an embodiment of the present application;
FIG. 3 is another flowchart of an interaction control method for a virtual object according to an embodiment of the present disclosure;
FIG. 4 is another flowchart of an interaction control method for a virtual object according to an embodiment of the present disclosure;
FIG. 5 is another flowchart of an interaction control method for a virtual object according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of an interaction control method for a virtual object according to an embodiment of the present disclosure;
FIG. 7 is another flowchart of an interaction control method for a virtual object according to an embodiment of the present disclosure;
FIG. 8 is another flowchart of an interaction control method for a virtual object according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an interaction control apparatus for virtual objects according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit and scope of this application, and thus this application is not limited to the specific implementations disclosed below.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can be termed a second and, similarly, a second can be termed a first without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
First, the noun terms to which one or more embodiments of the present invention relate are explained.
Virtual scene: is a virtual environment that is displayed (or provided) when an application is run on the terminal. The virtual environment may be a simulation environment of a real world, a semi-simulation semi-fictional environment, or a pure fictional environment. The virtual scene may be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment, which is not limited in this application.
Virtual object: refers to a movable object in a virtual environment. The movable object can be a virtual character, a virtual animal, an animation character, etc., such as: the virtual object is a three-dimensional stereo model created based on an animation skeleton technology, and each virtual object has a shape and a volume in the three-dimensional virtual scene and occupies a part of space in the three-dimensional virtual scene.
In the present application, a method and an apparatus for controlling interaction of virtual objects, a computing device and a computer-readable storage medium are provided, which are described in detail in the following embodiments one by one.
FIG. 1 shows a block diagram of a computing device 100, according to an embodiment of the present description. The components of the computing device 100 include, but are not limited to, memory 110 and processor 120. The processor 120 is coupled to the memory 110 via a bus 130 and a database 150 is used to store data.
Computing device 100 also includes access device 140, access device 140 enabling computing device 100 to communicate via one or more networks 160. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 140 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present description, the above-described components of computing device 100 and other components not shown in FIG. 1 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 1 is for purposes of example only and is not limiting as to the scope of the description. Those skilled in the art may add or replace other components as desired.
Computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 100 may also be a mobile or stationary server.
Wherein the processor 120 may perform the steps of the method shown in fig. 2. Fig. 2 is a schematic flow chart diagram illustrating an interaction control method of a virtual object according to an embodiment of the present application, including step 202 to step 208.
Step 202: and acquiring a first interaction controller according to a first logic requirement corresponding to a virtual object in the virtual scene.
In the embodiment of the present application, an application program including a virtual scene, such as a stand-alone game, a network game, or another application program, is run in a client of the present application, where the virtual scene may be an in-game scene or an application scene included in the application program, and the virtual scene includes a virtual object that can interact with a Player or a user, such as a virtual pet in the game, a virtual ride, and a Non-Player Character (Non-Player Character).
Under the logic control of upper Artificial Intelligence (AI) of a client, the client determines interactive behaviors to be executed by a virtual object according to a first logic requirement corresponding to the virtual object in a virtual scene, for example, the interactive behaviors of a pet cat such as eating, playing or sleeping, and acquires a first interactive controller corresponding to the first logic requirement.
Step 204: and sequentially calling at least one interactive expression through the first interactive controller, and enabling the virtual object to execute corresponding interactive actions according to each interactive expression.
In an embodiment of the present application, a plurality of single interactive expressions are pre-stored in a database of a client of the present application, and after a first interactive controller corresponding to the first logic requirement is obtained, the client may sequentially invoke at least one interactive expression according to the first interactive controller, and then control a virtual object to execute a corresponding interactive action according to each interactive expression, thereby completing an interactive behavior of the virtual object under the current logic requirement.
Step 206: and under the condition that switching to a second interactive controller is required according to a second logic requirement corresponding to the virtual object, sending an exit instruction to the first interactive controller or the interactive performance corresponding to the virtual object according to the current corresponding interactive state of the virtual object.
In the embodiment of the application, in the course of executing or after the execution of the first interactive controller is completed, the virtual object of the application needs to be switched to the second interactive controller to execute a new interactive behavior according to the instruction of the player or according to the self state corresponding to the virtual object, and at this time, the client sends an exit instruction to the interactive performance of the first interactive controller or the virtual object under the current logic requirement according to the current interactive state corresponding to the virtual object.
Step 208: and exiting the first interactive controller according to the exit instruction, sequentially calling at least one interactive expression through the second interactive controller, and enabling the virtual object to execute each interactive expression.
In an embodiment of the present application, the client terminal of the present application finally exits the first interactive controller and switches to the second interactive controller according to the exit instruction, so as to call at least one interactive representation again according to the second interactive controller, so that the virtual object executes each interactive representation, completes a new interactive behavior of the virtual object, and finally realizes that the virtual object executes unspecific interactive behaviors under different conditions on a representation level
The virtual object can call different interactive performances through different interactive controllers according to the logic requirements of the virtual object in the virtual scene, so that the virtual object can actively carry out different interactive processes with players according to different conditions, and the substitution feeling of the players and the richness of games are greatly improved.
In an embodiment of the application, as shown in fig. 3, in a case that a switch to a second interactive controller is required according to a second logic requirement corresponding to the virtual object, the step 206 specifically includes steps 302 to 306.
Step 302: judging whether the virtual object is currently executing interactive representation or not according to the current corresponding interactive state of the virtual object; if yes, go to step 304; if not, go to step 306.
Step 304: and sending an exit instruction to the interactive expression currently executed by the virtual object.
Step 306: and sending an exit instruction to the first interaction controller.
In the above embodiment, when the server sends the quit instruction to the virtual object, if the virtual object is executing the interactive expression called by the first interactive controller or is executing other interactive expressions derived through the first interactive controller, the server may send the quit instruction to the interactive expression currently being executed by the virtual object at this time. If the interactive representation called by the first interactive controller is completely executed and the virtual object only carries out other logic operations, the server sends an exit instruction to the first interactive controller at this time.
In one embodiment of the present application, as shown in fig. 4, exiting the first interactive controller according to the exit instruction includes steps 402 to 408.
Step 402: and exiting the n-th interactive expression currently executed by the virtual object according to the exit instruction, wherein n is a positive integer greater than 1.
Specifically, in step 402, exiting the nth interactive expression currently executed by the virtual object according to the exit instruction includes:
under the condition that the quit instruction is obtained, immediately stopping the nth interactive expression currently executed by the virtual object and quitting; alternatively, the first and second electrodes may be,
and under the condition of acquiring the quitting instruction, quitting after the nth interactive expression currently executed by the virtual object is executed.
That is, the client of the present application may select to immediately stop the nth interactive expression currently being executed by the virtual object and quit the nth interactive expression currently being executed by the virtual object according to the logical continuity between the (n + 1) th interactive expressions to be executed, or quit the nth interactive expression currently being executed by the virtual object after the nth interactive expression is completely executed by the virtual object, for example, the virtual object pet cat is in the "eating" interactive expression, at this time, if the server invokes a new "delicate" interactive expression, the virtual object pet cat may directly quit the "eating" interactive expression and switch to the "delicate" interactive expression, or may wait for the "eating" interactive expression to quit and switch to the "delicate" interactive expression after the "eating" interactive expression is completely executed.
Step 404: judging whether the nth interactive expression is the interactive expression called by the first interactive controller; if yes, go to step 406; if not, then n is decremented by 1 and step 408 is performed.
Step 406: and after exiting the nth interactive expression according to the exit instruction, exiting the first interactive controller according to the exit instruction.
And under the condition that the nth interactive expression is the interactive expression called by the first interactive controller, the virtual object exits the nth interactive expression according to an exit instruction and indicates that only the first interactive controller is left in an interactive expression stack for processing the interactive expression, and at this time, the whole first interactive controller exits according to the exit instruction, so that the interactive expression does not exist in the interactive expression stack any more.
Step 408: and acquiring the nth interactive expression of which the virtual object execution is finished, and executing the step 404 again.
And in this case, exiting to the interactive performance called by the first interactive controller layer by layer according to an exit instruction, and then exiting according to the method described in step 406.
In the above embodiment, the method further comprises:
and in the process of exiting the first interactive controller according to the exit instruction, reserving or processing the logic data of the virtual object according to the attribute corresponding to the logic data of the virtual object.
Specifically, the logical data of the virtual object refers to the inherent attributes configured for the virtual object by the developer in the process of constructing the virtual object and the whole game, and the increasing or decreasing or changing rule of the numerical values is set in advance, for example, for the virtual object pet cat, the corresponding logical data may be "hunger data", "thirst data", "intimacy data" or "age data", and the corresponding numerical values may be increased or decreased, or only increased or not increased, according to the different interactive expressions of the virtual object pet in the virtual scene.
According to the method and the device, the clear hierarchical structure is arranged among different interactive controllers, and the interaction expression hierarchy called by the interactive controllers is used for exiting step by step, so that when another interactive controller is switched, the correct exiting of the previous interactive controller is ensured, and the consistency of the interactive state and the logic data is ensured.
In an embodiment of the present application, as shown in fig. 5, in a case that a switch to a third interactive controller is required according to a third logic requirement corresponding to the virtual object, the method further includes steps 502 to 504.
Step 502: and sending an exit instruction to the second interaction controller or the interactive representation currently executed by the virtual object according to the current corresponding interaction state of the virtual object.
Step 504: and exiting the second interactive controller according to the exit instruction, sequentially calling at least one interactive expression through the third interactive controller, and enabling the virtual object to execute each interactive expression.
Specifically, as shown in fig. 6, the running mechanism of the interactive presentation stack of the present application is: on the basis of one interactive controller, other interactive expressions can be called in the execution process of any one interactive expression, and after calling, the newly called interactive expression is only needed to be pressed into an interactive expression stack, so that a serial interactive expression chain is formed.
Therefore, when the interactive controllers are continuously switched, the interaction controllers need to sequentially exit to the second interactive controller at the innermost layer according to the interactive expression chain and then switch to the third interactive controller, so that a complete exiting-switching process is completed. Various interactive representations of the method can be multiplexed, so that the interactive process of the virtual object is greatly expanded.
In an embodiment of the present application, as shown in fig. 7, after causing the virtual object to perform the corresponding interactive action according to each interactive representation, steps 702 to 704 are further included.
Step 702: and sending an interaction finishing instruction for finishing the interaction execution to the first interaction controller.
In the above embodiment, after the virtual object causes the virtual object to execute the corresponding interaction action according to each of the interaction representations, the virtual object actively sends an interaction completion instruction for completing the interaction execution to the first interaction controller.
Step 704: and the first interaction controller acquires a new logic requirement according to the interaction finishing instruction request.
In the above embodiment, the first interaction controller, in response to the interaction completion instruction, requests the client to acquire a new logic requirement, so as to actively explore new influences and changes caused by each interaction, thereby greatly enriching diversity and unpredictability of interaction behaviors of the virtual object, increasing the experience of the player or the user, and being closer to the real-world reality.
Fig. 8 shows an interaction control method for a virtual object according to an embodiment of the present specification, which is described by taking the virtual object "pet cat" as an example, and includes steps 802 to 816.
Step 802: and acquiring the food intake interaction controller through the management layer according to the food intake logic requirement corresponding to the pet cat.
Step 804: and sequentially calling a mobile interactive expression, a chewing interactive expression and a tail-shaking interactive expression through the food-intake interactive controller, and enabling the virtual object to execute corresponding mobile action, chewing action and tail-shaking action according to each interactive expression.
Step 806: under the condition that switching to a sleep interaction controller is needed according to the sleep logic requirement corresponding to the pet cat, judging whether the virtual object is currently executing a mobile interaction expression, a chewing interaction expression or a wagging tail interaction expression according to the current corresponding interaction state of the virtual object;
step 808: if so, sending an exit instruction to the mobile interactive expression, the chewing interactive expression or the tail-shaking interactive expression which is executed by the virtual object;
step 810: sequentially quitting the mobile interactive expression, the chewing interactive expression and the tail shaking interactive expression according to the quitting instruction;
step 812: and if not, sending an exit instruction to the food interaction controller.
Step 814: and in the process of exiting the food intake interaction controller according to the exit instruction, reserving or processing the logic data of the pet cat according to the attribute corresponding to the logic data of the pet cat.
Step 816: and sequentially calling a moving interactive expression, an extending interactive expression and a curling interactive expression through the sleeping interactive controller, and enabling the pet cat to execute corresponding moving actions, extending actions and curling actions according to each interactive expression.
Corresponding to the above method embodiment, the present specification further provides an embodiment of an interaction control device for a virtual object, and fig. 9 shows a schematic structural diagram of the interaction control device for a virtual object according to an embodiment of the present specification. As shown in fig. 9, the apparatus includes:
a requirement response module 901, configured to obtain a first interaction controller according to a first logic requirement corresponding to a virtual object in a virtual scene;
an interaction invoking module 902 configured to invoke at least one interactive expression in sequence through the first interactive controller, and enable the virtual object to execute a corresponding interactive action according to each interactive expression;
the requirement response module 901 is further configured to send an exit instruction to the first interaction controller or the interaction representation corresponding to the virtual object according to the current interaction state of the virtual object when switching to a second interaction controller is required according to a second logic requirement corresponding to the virtual object;
and the interactive exit module 903 is configured to exit the first interactive controller according to the exit instruction, sequentially call at least one interactive expression through the second interactive controller, and enable the virtual object to execute each interactive expression.
Optionally, the demand response module 901 includes:
the interaction judging unit is configured to judge whether the virtual object is currently performing interactive representation or not according to the current corresponding interaction state of the virtual object; if yes, executing a first sending unit; if not, executing a second sending unit;
the first sending unit is configured to send an exit instruction to the interactive expression currently executed by the virtual object;
the second sending unit is configured to send an exit instruction to the first interaction controller.
Optionally, in a case of sending an exit instruction to the interactive representation currently being executed by the virtual object, the interactive exit module 903 is configured to execute the following steps, including step S101 to step S104:
step S101: exiting the n-th interactive expression currently executed by the virtual object according to the exit instruction, wherein n is a positive integer greater than 1;
step S102: judging whether the nth interactive expression is the interactive expression called by the first interactive controller; if yes, go to step S103; if not, n is subtracted from 1 and step S104 is executed.
Step S103: after quitting the nth interactive expression according to the quit instruction, quitting the first interactive controller according to the quit instruction;
step S104: and acquiring the nth interactive expression of the virtual object which is executed completely, and executing the step S102 again.
Optionally, the apparatus further comprises:
the data processing module is configured to reserve or process the logic data of the virtual object according to the attribute corresponding to the logic data of the virtual object in the process of exiting the first interactive controller according to the exit instruction;
optionally, the interaction exit module 903 is further configured to:
under the condition that the quit instruction is obtained, immediately stopping the currently executed nth interactive expression of the virtual object and quitting; alternatively, the first and second electrodes may be,
and under the condition of acquiring the quitting instruction, quitting after the nth interactive expression currently executed by the virtual object is executed.
Optionally, the interaction invoking module 902 is further configured to:
under the condition that switching to a third interactive controller is needed according to a third logic requirement corresponding to the virtual object, sending an exit instruction to the second interactive controller or an interactive expression currently executed by the virtual object according to the current corresponding interactive state of the virtual object;
and exiting the second interactive controller according to the exit instruction, sequentially calling at least one interactive expression through the third interactive controller, and enabling the virtual object to execute each interactive expression.
Optionally, the interaction invoking module 902 is further configured to:
sending an interaction completion instruction for completing the execution of the interaction to the first interaction controller;
and the first interaction controller acquires a new logic requirement according to the interaction finishing instruction request.
According to the method and the device, different interaction performances can be called through different interaction controllers according to the logic requirements of the virtual objects corresponding to the virtual scenes, so that the virtual objects can actively carry out different interaction processes with players according to different conditions, and the substitution feeling of the players and the richness of games are greatly improved. Meanwhile, the hierarchical structure among different interactive controllers is clear, and the interaction expression hierarchy called by the interactive controller is used for exiting step by step, so that when another interactive controller is switched, the correct exiting of the previous interactive controller is ensured, and the consistency of the interactive state and the logic data is ensured. In addition, various interactive representations of the method and the device can be multiplexed, so that the interactive process of the virtual object is greatly expanded.
It should be noted that the components in the device claims should be understood as functional blocks which are necessary to implement the steps of the program flow or the steps of the method, and each functional block is not actually defined by functional division or separation. The device claims defined by such a set of functional modules are to be understood as a functional module framework for implementing the solution mainly by means of a computer program as described in the specification, and not as a physical device for implementing the solution mainly by means of hardware.
An embodiment of the present application further provides a computing device, including a memory, a processor, and computer instructions stored on the memory and executable on the processor, where the processor executes the instructions to implement the following steps:
acquiring a first interaction controller according to a first logic requirement corresponding to a virtual object in a virtual scene;
sequentially calling at least one interactive expression through the first interactive controller, and enabling the virtual object to execute corresponding interactive actions according to each interactive expression;
under the condition that switching to a second interactive controller is needed according to a second logic requirement corresponding to the virtual object, sending an exit instruction to the first interactive controller or the interactive performance corresponding to the virtual object according to the current corresponding interactive state of the virtual object;
and exiting the first interactive controller according to the exit instruction, sequentially calling at least one interactive expression through the second interactive controller, and enabling the virtual object to execute each interactive expression.
An embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions, and when the instructions are executed by a processor, the computer-readable storage medium implements the steps of the interaction control method for the virtual object.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the computer-readable storage medium and the technical solution of the above-mentioned interaction control method for virtual objects belong to the same concept, and details that are not described in detail in the technical solution of the computer-readable storage medium can be referred to the description of the technical solution of the above-mentioned interaction control method for virtual objects.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art will appreciate that the embodiments described in this specification are presently considered to be preferred embodiments and that acts and modules are not required in the present application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and the practical application, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (15)

1. An interaction control method for a virtual object, comprising:
acquiring a first interaction controller according to a first logic requirement corresponding to a virtual object in a virtual scene;
sequentially calling at least one interactive expression through the first interactive controller, and enabling the virtual object to execute corresponding interactive actions according to each interactive expression;
under the condition that switching to a second interactive controller is needed according to a second logic requirement corresponding to the virtual object, sending an exit instruction to the first interactive controller or an interactive expression currently executed by the virtual object according to the current corresponding interactive state of the virtual object;
according to the quitting instruction, immediately stopping the interactive expression currently executed by the virtual object and quitting the first interactive controller, or quitting the first interactive controller after the interactive expression currently executed by the virtual object is completely executed;
and sequentially calling at least one interactive expression through the second interactive controller, and enabling the virtual object to execute each interactive expression.
2. The method of claim 1, wherein sending an exit instruction to the first interaction controller or the interactive representation currently being executed by the virtual object according to the current corresponding interaction state of the virtual object, comprises:
judging whether the virtual object is currently executing interactive representation or not according to the current corresponding interactive state of the virtual object;
if yes, sending an exit instruction to the interactive expression currently executed by the virtual object;
and if not, sending an exit instruction to the first interaction controller.
3. The method according to claim 2, wherein in the case of sending an exit instruction to the interactive representation currently being executed by the virtual object, exiting the first interactive controller according to the exit instruction comprises steps S101 to S104:
step S101: exiting the n-th interactive expression currently executed by the virtual object according to the exit instruction, wherein n is a positive integer greater than 1;
step S102: judging whether the nth interactive expression is the interactive expression called by the first interactive controller or not; if yes, go to step S103; if not, subtracting 1 from n and executing step S104;
step S103: after quitting the nth interactive expression according to the quit instruction, quitting the first interactive controller according to the quit instruction;
step S104: and acquiring the nth interactive expression of the virtual object which is executed completely, and executing the step S102 again.
4. The method of claim 3, further comprising:
and in the process of exiting the first interactive controller according to the exit instruction, reserving or processing the logic data of the virtual object according to the attribute corresponding to the logic data of the virtual object.
5. The method of claim 1, further comprising:
under the condition that switching to a third interactive controller is needed according to a third logic requirement corresponding to the virtual object, sending an exit instruction to the second interactive controller or an interactive expression currently executed by the virtual object according to the current corresponding interactive state of the virtual object;
and exiting the second interactive controller according to the exit instruction, sequentially calling at least one interactive expression through the third interactive controller, and enabling the virtual object to execute each interactive expression.
6. The method of claim 1, after causing the virtual object to perform the corresponding interactive action according to each of the interactive presentations, further comprising:
sending an interaction completion instruction for completing the interaction execution to the first interaction controller;
and the first interaction controller acquires a new logic requirement according to the interaction finishing instruction request.
7. An interactive control apparatus for a virtual object, comprising:
the demand response module is configured to acquire a first interaction controller according to a first logic demand corresponding to a virtual object in a virtual scene;
the interaction calling module is configured to call at least one interaction expression in sequence through the first interaction controller, and enable the virtual object to execute corresponding interaction actions according to each interaction expression;
the requirement response module is further configured to send an exit instruction to the first interaction controller or the interaction representation corresponding to the virtual object at present according to the interaction state corresponding to the virtual object at present when switching to a second interaction controller is required according to a second logic requirement corresponding to the virtual object;
and the interactive quitting module is configured to immediately stop the interactive expression currently executed by the virtual object and quit the first interactive controller according to the quitting instruction, or quit the first interactive controller after the interactive expression currently executed by the virtual object is executed, sequentially call at least one interactive expression through the second interactive controller, and enable the virtual object to execute each interactive expression.
8. The apparatus of claim 7, wherein the demand response module comprises:
the interaction judging unit is configured to judge whether the virtual object is currently performing interactive representation or not according to the current corresponding interaction state of the virtual object; if yes, executing a first sending unit; if not, executing a second sending unit;
the first sending unit is configured to send an exit instruction to the interactive representation currently executed by the virtual object;
the second sending unit is configured to send an exit instruction to the first interaction controller.
9. The apparatus according to claim 8, wherein in case of sending an exit instruction to the interactive representation currently being executed by the virtual object, the interactive exit module is configured to perform the following steps, including step S101 to step S104:
step S101: exiting the n-th interactive expression currently executed by the virtual object according to the exit instruction, wherein n is a positive integer greater than 1;
step S102: judging whether the nth interactive expression is the interactive expression called by the first interactive controller; if yes, go to step S103; if not, subtracting 1 from n and executing step S104;
step S103: after quitting the nth interactive expression according to the quit instruction, quitting the first interactive controller according to the quit instruction;
step S104: and acquiring the nth interactive expression of which the execution of the virtual object is finished, and executing the step S102 again.
10. The apparatus of claim 9, further comprising:
and the data processing module is configured to reserve or process the logic data of the virtual object according to the attribute corresponding to the logic data of the virtual object in the process of exiting the first interactive controller according to the exit instruction.
11. The apparatus of claim 9, wherein the interaction exit module is further configured to:
under the condition that the quit instruction is obtained, immediately stopping the nth interactive expression currently executed by the virtual object and quitting; alternatively, the first and second electrodes may be,
and under the condition of acquiring the quitting instruction, quitting after the nth interactive expression currently executed by the virtual object is executed.
12. The apparatus of claim 7, wherein the interaction invocation module is further configured to:
under the condition that a third interaction controller needs to be switched to according to a third logic requirement corresponding to the virtual object, according to the current corresponding interaction state of the virtual object, sending an exit instruction to the second interaction controller or the interaction representation currently executed by the virtual object;
and exiting the second interactive controller according to the exit instruction, sequentially calling at least one interactive expression through the third interactive controller, and enabling the virtual object to execute each interactive expression.
13. The apparatus of claim 7, wherein the interaction invocation module is further configured to:
sending an interaction completion instruction for completing the interaction execution to the first interaction controller;
and the first interaction controller acquires a new logic requirement according to the interaction finishing instruction request.
14. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-6 when executing the instructions.
15. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 6.
CN202011561676.XA 2020-12-25 2020-12-25 Interaction control method and device for virtual objects Active CN112604304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011561676.XA CN112604304B (en) 2020-12-25 2020-12-25 Interaction control method and device for virtual objects

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011561676.XA CN112604304B (en) 2020-12-25 2020-12-25 Interaction control method and device for virtual objects

Publications (2)

Publication Number Publication Date
CN112604304A CN112604304A (en) 2021-04-06
CN112604304B true CN112604304B (en) 2022-09-02

Family

ID=75245080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011561676.XA Active CN112604304B (en) 2020-12-25 2020-12-25 Interaction control method and device for virtual objects

Country Status (1)

Country Link
CN (1) CN112604304B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104423785A (en) * 2013-09-05 2015-03-18 腾讯科技(深圳)有限公司 View switching method and terminal
CN111228813A (en) * 2020-01-22 2020-06-05 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9953694B2 (en) * 2016-06-06 2018-04-24 Intel Corporation Memory controller-controlled refresh abort

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104423785A (en) * 2013-09-05 2015-03-18 腾讯科技(深圳)有限公司 View switching method and terminal
CN111228813A (en) * 2020-01-22 2020-06-05 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112604304A (en) 2021-04-06

Similar Documents

Publication Publication Date Title
RU2331918C2 (en) Proactive user interface containing evolving agent
CN110298907B (en) Virtual character action control method and device, computing equipment and storage medium
US11989814B2 (en) Image processing method and apparatus, electronic device, and storage medium
WO2022033206A1 (en) Expression generation method and apparatus for animation object, storage medium, and electronic device
CN112604287B (en) Virtual role state control method and device
CN112669194A (en) Animation processing method, device and equipment in virtual scene and storage medium
CN111111192A (en) Game role moving method and device
CN112604304B (en) Interaction control method and device for virtual objects
US11738271B2 (en) Method and apparatus for predicting game difficulty by using deep-learning based game play server
CN111145318B (en) Rendering method and device based on NGUI
CN111773668A (en) Animation playing method and device
CN115526967A (en) Animation generation method and device for virtual model, computer equipment and storage medium
CN112206531B (en) Game creation method and device
WO2022198971A1 (en) Virtual character action switching method and apparatus, and storage medium
CN111135580B (en) Game character standby animation generation method and device
CN113209625A (en) Data processing method and device
CN113064530A (en) Image processing method and device
WO2024021792A1 (en) Virtual scene information processing method and apparatus, device, storage medium, and program product
WO2024037139A1 (en) Method and apparatus for prompting information in virtual scene, electronic device, storage medium, and program product
CN113209621B (en) Virtual character control method and device, computing equipment and storage medium
CN113590334B (en) Method, device, medium and electronic equipment for processing character model
US20240123347A1 (en) Game interactive control method and apparatus, storage medium and electronic device
CN115738281A (en) Method and device for automatically grouping teams
EP4385592A1 (en) Computer-implemented method for controlling a virtual avatar
US20240037884A1 (en) Performance recording method and apparatus in virtual scenario, device, storage medium, and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Address before: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant