Interaction control method, apparatus, device, and storage medium
By presenting the consumption process of virtual resources in a virtual scene, the problem of inaccurate virtual resource consumption in existing technologies is solved, and the accuracy of user control over virtual objects and the interactive experience are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2023-10-20
- Publication Date
- 2026-06-19
AI Technical Summary
Existing technologies struggle to accurately and in real-time present and control the consumption of virtual resources in virtual scenarios, resulting in imprecise user manipulation of virtual objects.
By presenting interface elements associated with the target object in a virtual scene, the amount of virtual resources is indicated, and the consumption of virtual resources is controlled at different stages of the action, including presenting the unconsumed portion in the target style in the first stage of the action, and controlling the consumption of virtual resources in the second stage of the action.
It provides an intuitive presentation of the virtual resource consumption process, helping users to control virtual objects more accurately and enriching their interactive experience and control methods.
Smart Images

Figure CN117414574B_ABST
Abstract
Description
Technical Field
[0001] The exemplary embodiments disclosed herein generally relate to the field of computers, and particularly to interactive control methods, apparatuses, devices, and storage media. Background Technology
[0002] With the development of computer technology, users can interact with computers and other users through computers and in scenarios provided by computers (such as simulation environments, virtual environments, etc.), and obtain interactive experiences that cannot be achieved or are difficult to achieve in the physical environment. Summary of the Invention
[0003] In a first aspect of this disclosure, an interactive control method is provided. The method includes: presenting interface elements associated with a target object based on a first operation associated with the target object in a virtual scene, the interface elements indicating an amount of virtual resources for the target object; controlling the target object to perform a first action corresponding to the second operation in the virtual scene based on a second operation associated with the target object; in a first stage of the first action, presenting a first portion of the interface elements corresponding to the first action in a target style to indicate that a first amount of virtual resources corresponding to the first portion has not yet been consumed; and controlling the first amount of virtual resources to be consumed in a second stage of the first action.
[0004] In a second aspect of this disclosure, an interactive control device is provided. The device includes: a first presentation module configured to present interface elements associated with a target object based on a first operation associated with the target object in a virtual scene, the interface elements indicating an amount of virtual resources for the target object; a first control module configured to control the target object to perform a first action corresponding to the second operation in the virtual scene based on a second operation associated with the target object; a second presentation module configured to present a first portion of the interface elements corresponding to the first action in a target style during a first stage of the first action, indicating that a first amount of virtual resources corresponding to the first portion has not yet been consumed; and a first consumption module configured to control the first amount of virtual resources to be consumed during a second stage of the first action.
[0005] In a third aspect of this disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method of the first aspect when executed by the at least one processing unit.
[0006] In a fourth aspect of this disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program that can be executed by a processor to implement the method of the first aspect.
[0007] It should be understood that the content described in this content section is not intended to limit the key or essential features of the embodiments of this disclosure, nor is it intended to restrict the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0008] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. In the drawings, the same or similar reference numerals denote the same or similar elements, wherein:
[0009] Figure 1 A schematic diagram of an example environment in which embodiments of the present disclosure can be implemented is shown;
[0010] Figures 2A to 2G Example interfaces according to some embodiments of this disclosure are shown;
[0011] Figure 3 A flowchart of an interactive control method according to some embodiments of the present disclosure is shown;
[0012] Figure 4 A block diagram of an interactive control device according to some embodiments of the present disclosure is shown; and
[0013] Figure 5 A block diagram of an apparatus capable of implementing several embodiments of the present disclosure is shown. Detailed Implementation
[0014] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0015] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0016] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, which can display the prompt message in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0017] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0018] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.
[0019] The term "in response to" as used herein refers to a state in which a corresponding event occurs or a condition is satisfied. It will be understood that the timing of subsequent actions performed in response to such event or condition is not necessarily strongly correlated with the time when the event occurs or the condition is met. For example, in some cases, subsequent actions may be performed immediately upon the occurrence of the event or the fulfillment of the condition; while in others, they may be performed some time after the occurrence of the event or the fulfillment of the condition.
[0020] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0021] It should be noted that the headings of any section / subsection provided herein are not limiting. Various embodiments are described throughout this document, and embodiments of any type may be included under any section / subsection. Furthermore, embodiments described in any section / subsection may be combined in any way with any other embodiments described in the same section / subsection and / or different sections / subsections.
[0022] In the description of embodiments of this disclosure, the term "comprising" and similar terms should be understood as open-ended inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below. The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0023] As used herein, a “unit,” “operation unit,” or “subunit” can consist of any suitable machine learning model or network. As used herein, a set of elements or similar expressions can include one or more such elements. For example, “a set of convolutional units” can include one or more convolutional units.
[0024] As briefly mentioned earlier, users can interact with various types of target objects through computers in virtual environments provided by computers. During the control of virtual objects in a virtual scene, the virtual objects perform different types of actions, such as consuming corresponding virtual resources. Therefore, people hope to more accurately and in real-time understand the consumption process of virtual resources and to use this consumption process to more precisely manipulate virtual objects.
[0025] Therefore, embodiments of this disclosure propose an interactive control method. According to various embodiments of this disclosure, based on a first operation associated with a target object in a virtual scene, interface elements associated with the target object are presented, the interface elements indicating the amount of virtual resources for the target object; based on a second operation associated with the target object, the target object is controlled to perform a first action corresponding to the second operation in the virtual scene; in a first stage of the first action, a first portion of the interface elements corresponding to the first action is presented in a target style to indicate that a first amount of virtual resources corresponding to the first portion has not yet been consumed; and the first amount of virtual resources is controlled to be consumed in a second stage of the first action.
[0026] In this way, on the one hand, the embodiments of this disclosure can intuitively present the consumption process of virtual resources of objects in a virtual scene, making it easier for users to manipulate objects more accurately. On the other hand, by delaying the consumption of virtual resources, the embodiments of this disclosure can enrich the user's means of controlling objects, thereby improving the user's interactive experience.
[0027] Example embodiments of this disclosure are described below with reference to the accompanying drawings.
[0028] Figure 1 A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. Example environment 100 may include an electronic device 110. Electronic device 110 may, for example, include a suitable type of portable device that can be held by a user's hands for various interactive operations. Such electronic device 110 may include, for example, but is not limited to: smartphones, tablets, PDAs, portable gaming terminals, etc.
[0029] Such an electronic device 110 may include, for example, appropriate types of sensors for detecting user gestures. For example, the electronic device 110 may include a touchscreen for detecting various types of gestures made by the user on the touchscreen. Additionally or alternatively, the electronic device 110 may also include other appropriate types of sensing devices, such as proximity sensors, to detect various types of gestures made by the user within a predetermined distance above the screen.
[0030] It should be understood that, although electronic device 110 is in Figure 1 The device is shown as a portable device, but this is only illustrative. In some other embodiments, the electronic device 110 may also be other suitable forms. For example, the electronic device 110 may include a display device for display and a computing device for computing, and the display device and the computing device may, for example, be physically coupled or decoupled.
[0031] For example, electronic device 110 may include a display screen for displaying images and a game console for image rendering and game control.
[0032] In this scenario, electronic device 110 can achieve interaction by utilizing other suitable input devices, such as a keyboard, mouse, joystick, or game controller.
[0033] Continue to refer to Figure 1 The electronic device 110 can present a user interface 120, which may, for example, present a corresponding virtual environment. For example, the user interface 120 may be a game application interface to present a corresponding game scene. Alternatively, the user interface 120 may be other suitable types of interactive interfaces that allow the user to control a target object in the interface to perform corresponding actions in the virtual environment.
[0034] It should be understood that the user interface 120 may be generated locally on the electronic device 110 or may be based on an image received by the electronic device 110 from a remote device (e.g., a cloud gaming console).
[0035] To illustrate the principles and ideas of the embodiments of this disclosure, some descriptions below will refer to the gaming industry. However, it will be understood that this is merely exemplary and not intended to limit the scope of this disclosure. Embodiments of this disclosure can be applied to various fields such as simulation, modeling, virtual reality, and augmented reality.
[0036] Figures 2A to 2GExample interfaces 200A to 200G according to some embodiments of the present disclosure are shown. In some embodiments, the electronic device 110 may present interfaces 200A to 200G upon receiving an interaction request for a target object. As described above, such interfaces 200A to 200G may, for example, include graphical interfaces associated with a virtual scene. Such virtual scenes may include, but are not limited to, various types of game scenes, simulation scenes, and so on.
[0037] As an example, interfaces 200A to 200G may be interactive interfaces that control target objects in a virtual scene to perform various types of actions. Such target objects may include various types of interactive objects in the virtual scene. Taking a game scene as an example of a virtual scene, such target objects may include virtual characters that the user can control. Accordingly, such various types of actions may include, but are not limited to: movement, normal attacks, releasing skills, using items, etc.
[0038] like Figure 2A As shown, interface 200A can, for example, be derived from... Figure 1 The illustrated electronic device 110 is provided. As an example, the interface 200A could be, for example, the interface of a game application. The interface 200A can display a target object 210 to be controlled in a virtual scene. Such a target object 210 could, for example, be a virtual character controlled by the user.
[0039] Furthermore, the interface 200A can also display another object 240 that the target object 210 can interact with. The object 240 may be, for example, a virtual character operated by other users in a virtual scene, or a neutral character, such as an NPC.
[0040] Additionally, the interface 200A may also provide a set of controls 220 for controlling the target object 210. Such controls 220 can, for example, be used to control the target object 210 to perform corresponding actions in a virtual scene. Examples of such actions may include, but are not limited to: normal attacks, casting skills, using items, moving positions, etc.
[0041] It should be understood that the electronic device 110 may also support appropriate user operation methods other than control 220 to control the target object 210 to perform corresponding actions. This disclosure is not intended to limit this.
[0042] In some embodiments, the electronic device 110 may, for example, support the target object 210 in consuming specific virtual resources to perform corresponding actions in a virtual scene. For instance, upon receiving a first user operation, the electronic device 110 may control the target object 210 to switch to a target state.
[0043] For example, with Figure 2A and Figure 2B As an example, Figure 2A For example, it could be the initial state of the target object 210. Furthermore, after receiving a preset operation from the user (e.g., for a specific user), the electronic device 110 can present, as follows: Figure 2B The interface shown is 200B.
[0044] and Figure 2A The states shown are different. Figure 2B The target object 210 shown, for example, allows the performance of specific actions by consuming virtual resources. In some embodiments, the electronic device 110 may also change the display style of the target object 210 to indicate a change in the state of the target object 210. In some specific scenarios, such a state change may also be referred to as a "transformation".
[0045] Additionally, such as Figure 2B As shown, the electronic device 110 may also display interface elements 230 associated with the target object 210. Interface elements 230 may, for example, display the amount of a specific virtual resource for the target object 210. In some scenarios, the target object 210 needs to consume corresponding virtual resources when performing a specific type of action. In some scenarios, such virtual resources may also be referred to as "virtual energy."
[0046] In some embodiments, interface element 230 may be displayed based on a user triggering a change in the state of target object 210. Alternatively, interface element 230 may be activated based on a user triggering a change in the state of target object 210 to present the amount of virtual resources available for target object 210.
[0047] like Figure 2B As shown, when the target object 210 first enters this other state, the amount of its corresponding virtual resources can be a preset value. Correspondingly, the interface element 230 can be fully filled, for example, to indicate that the virtual resources used for the target object 210 have not yet been consumed.
[0048] Furthermore, such as Figure 2C As shown, when the target object 210 is in this specific state, the electronic device 110 will allow the target object 210 to consume the virtual resources indicated by the interface element 230 to perform the corresponding action.
[0049] For example, electronic device 110 can receive a second operation associated with target object 210. Such a second operation can be used to control target object 210 to perform a first action corresponding to the second operation in a virtual scene.
[0050] For example, a user can trigger the target object 210 to release the corresponding skill in the virtual scene by clicking the release control of a specific skill. In some cases, different skills may require the consumption of corresponding virtual resources.
[0051] For example, a user can trigger the target object 210 to perform the first action, namely, release the "A skill", by clicking the release button of the "A skill".
[0052] In some embodiments, such as Figure 2C As shown, unlike the virtual resources that are consumed immediately, the electronic device 110 can present the first part 235 of the interface element 230 corresponding to the first action in the first stage of the first action, in a target style, to indicate that the first amount of virtual resources corresponding to the first part 235 has not yet been consumed.
[0053] For example, if skill A requires the consumption of virtual resources "X points", the electronic device 110 can change the first part 235 of the interface element 230 corresponding to the virtual resource "X points" to another display style to indicate that the virtual resource "X points" has not yet been consumed. For example, the first part 235 can have relatively higher transparency.
[0054] Taking a skill release action as an example of the first action, such a first phase could correspond to the skill release phase. The first phase can also be divided differently depending on the type of the first action. For example, if the first action is an item use action, the first phase could be the preparation phase for the item use action.
[0055] Furthermore, the electronic device 110 can control the consumption of the first amount of virtual resources during the second phase of the first action.
[0056] Taking the skill release action as an example, the second stage could be the post-cast animation phase. The post-cast animation phase refers to the state where the target is in, for example, "stiffened" after the skill release phase is completed, preventing the character from performing actions such as movement.
[0057] Continuing with the example of "Skill A" requiring "X points" of virtual resources, these "X points" of virtual resources can be consumed during the skill's recovery animation. In some embodiments, the electronic device 110 can control the consumption of these virtual resources at a uniform rate during the second phase of the first action. For example, the electronic device 110 can determine the consumption rate of the virtual resources in this phase based on the amount of virtual resources to be consumed and the duration of the skill's recovery animation.
[0058] like Figure 2DAs shown, after the virtual resource of "X point" is consumed, the display style of the first part 235 can be changed, for example, to indicate that the virtual resource of "X point" has been consumed.
[0059] Based on this approach, the embodiments of this disclosure can intuitively present the consumption status of virtual resources, thereby helping users to more accurately control target objects.
[0060] In some embodiments, the electronic device 110 may also support the user to perform a specific operation to prevent the consumption of virtual resources in the second phase of the first action.
[0061] Specifically, during the second phase of the first action, if a third operation associated with the target object 210 is received, the electronic device 110 can control the target object to perform the second action and can control at least a portion of the first amount of virtual resources to stop being consumed. In some embodiments, the type of the second action is different from the first action.
[0062] Continuing with the example of releasing "Skill A" as the first action, if during the recovery phase of releasing "Skill A", electronic device 110 receives an operation to control target object 210 to perform different types of actions, then electronic device 110 can prevent the consumption of the unconsumed portion of the "X point" virtual resource.
[0063] In some embodiments, such a second action may be, for example, the target object 210's basic attack action, i.e., a normal attack action. That is, during the skill release animation phase, if the user successfully controls the target object 210 to chain a basic attack action, the virtual resource consumption process of the skill release action can be prevented.
[0064] For example, if the aftercast delay of "Skill A" is 50 milliseconds and it requires 100 virtual energy points, then during the aftercast delay, target 210 will actually consume 2 energy points per millisecond. If the user controls target 210 to perform a basic attack at the 10th millisecond of the aftercast delay, target 210 will actually consume 20 energy points, and the remaining 80 energy points will not be consumed.
[0065] Based on this approach, embodiments of this disclosure enable users to more rationally control the consumption of virtual resources, thereby controlling the target object to perform more actions as needed.
[0066] In some embodiments, the electronic device 110 may also aggregate the consumption of virtual resources triggered by multiple actions.
[0067] Specifically, during the second phase of the first action, if a fourth operation associated with the target object is received, the electronic device 110 can control the target object to perform a third action and can control at least a portion of the first amount of virtual resources to stop being consumed during the second phase of the first action. In some embodiments, the type of the third action is the same as the first action.
[0068] Continuing with the example of releasing "Skill A" as the first action, if during the recovery phase of releasing "Skill A", electronic device 110 receives an operation to control target object 210 to perform the same type of action (e.g., release "Skill B"), then electronic device 110 can prevent the unconsumed portion of the "X point" virtual resource from being consumed during the recovery phase of "Skill A".
[0069] Furthermore, such as Figure 2E As shown, in interface 200E, in the first stage of the third action, electronic device 110 can present the second part 245 of interface element 230 in the target style to indicate that the second quantity of virtual resources corresponding to the second part 245 has not been consumed yet, wherein the second quantity includes the unconsumed part of the first quantity and the third quantity corresponding to the third action.
[0070] For example, if the aftercast delay of "Skill A" is 50 milliseconds and it requires 100 points of virtual resources, then during the aftercast delay, target 210 will actually consume 2 points of energy per millisecond. If the user controls target 210 to release "Skill B," which requires 50 points of energy, at the 10th millisecond of the aftercast delay, then target 210 will actually consume 20 points of energy, and the second part 245 can correspond to 130 points of energy to be consumed, that is, including the 80 points of unconsumed energy corresponding to "Skill A" and the 50 points of energy corresponding to "Skill B."
[0071] It should be understood that the “80 points” of unconsumed energy is determined based on the duration (e.g., 10 milliseconds) that has elapsed in the second phase of the first action when the fourth action is received, or based on the remaining duration (e.g., 30 milliseconds) of the second phase of the first action.
[0072] Furthermore, electronic device 110 can control the second amount of virtual resources to be consumed during the second phase of the third action. Continuing with the example of releasing the "B" skill, electronic device 110 can control the "130" energy points corresponding to the second part 245 to be consumed during the aftercast phase of the "B" skill.
[0073] It should be understood that such virtual resource consumption can be aggregated iteratively. For example, if target object 210 releases "Skill C" during the aftercast phase of "Skill B", the virtual resource consumption corresponding to "Skill A", "Skill B", and "Skill C" can be further aggregated. Such aggregation can be, for example, unlimited.
[0074] In some embodiments, the electronic device 110 may also support a user in preventing the virtual resources corresponding to the second part 245 from being actually consumed by controlling the execution of different types of actions. Specifically, during the second phase of the third action, if a fifth operation associated with the target object is received, the electronic device 110 may control the target object to execute a fourth action and may control at least a portion of the second amount of virtual resources to stop being consumed. In some embodiments, the type of the fourth action is different from the first or third action.
[0075] For example, the fourth action may be of the same type as the second action, for example, both may be a basic attack action of the target object 210.
[0076] Continuing with the previous example, if the user controls target 210 to perform a basic attack during the recovery phase of the "B" skill, then the "130" energy points corresponding to Part 245 will not be actually consumed.
[0077] In this way, embodiments of the present disclosure can further support users in controlling the consumption of virtual resources by performing specific operations.
[0078] In some embodiments, the electronic device 110 may also support users switching between more states. For example, as referenced Figures 2B to 2E The corresponding state can be the first state of the target object. The electronic device 110 can also support switching the target object 210 to more transformation states, such as... Figure 2F The second state is shown.
[0079] In some embodiments, the target object 210 may correspond to different abilities in different states, for example, it may be able to unleash different skills, or the same skill may have different effects. Additionally, the target object 210 in different states (e.g., different transformation states) may have different display styles.
[0080] In some embodiments, the electronic device 110 may also support users to increase virtual resources for a target object by aggregating the virtual resource consumption of multiple actions performed in different states.
[0081] Specifically, if the third action target 210 is switched to the second state for execution, the electronic device 110 can increase the amount of virtual resources for the target based on the fifth operation (e.g., the operation that triggers a basic attack action).
[0082] like Figure 2G As shown, let's continue with the example of releasing "Skill A" and "Skill B" as the first and third actions, respectively. If "Skill A" is released in the first transformation state and "Skill B" is released in the second transformation state, then as follows... Figure 2G As shown, the electronic device 110 will no longer consume the amount of virtual resources corresponding to the second part 245, and can add a certain amount of virtual resources to the target object 210 (e.g., corresponding to the third part 250).
[0083] In other embodiments, if the first action and the third action have different action attributes, the electronic device 110 will no longer consume the amount of virtual resources corresponding to the second part 245, and can add a certain amount of virtual resources to the target object 210.
[0084] Continuing with the example of releasing "Skill A" and "Skill B" as the first and third actions, respectively, the action attributes can refer to the skill categories corresponding to "Skill A" and "Skill B," such as "Fire Skill" or "Wind Skill." Therefore, when a user connects other skill categories during the aftercast animation of a skill, the user is allowed to trigger a basic attack to stop the corresponding virtual resource consumption and can increase their virtual resources by a certain amount.
[0085] In some embodiments, the amount of virtual resources added is determined based on the number of actions associated with the second amount. For example, if the virtual resource consumption corresponding to more actions is aggregated and the consumption is prevented due to a basic attack action, the electronic device 110 may add a greater amount of virtual resources.
[0086] Based on this approach, embodiments of this disclosure can also support users in obtaining virtual resources through reasonable operations, thereby enriching the user's operating experience.
[0087] In some embodiments, the first state and the second state mentioned above can both be associated with virtual resources, such that the amount of virtual resources used for the target object does not change with the state transition between the first state and the second state.
[0088] For example, such as Figure 2F As shown, when the target object 210 switches from the first state to the second state, the amount of virtual resources it can consume will not change.
[0089] In some other embodiments, the electronic device 110 may also control the amount of virtual resources used for the target object to be consumed at least at a preset rate, wherein the preset rate is independent of the actions performed by the target object.
[0090] For example, after the target object enters the first or second state, it may have a preset amount of virtual resources. Furthermore, regardless of whether the target object 210 performs a specific action, the amount of virtual resources may always be consumed at a fixed rate (e.g., 1 point of energy per second).
[0091] Accordingly, when the virtual resources are actually consumed due to the target object 210 performing a specific action, the consumption rate of the virtual resources will be the sum of the two rates.
[0092] In some other embodiments, when the amount of virtual resources used for the target object falls below a threshold, the electronic device 110 will control the target object to exit the target state, such as the first or second state discussed above. For example, when the amount of virtual resources is reduced to zero, the target object 210 will exit the "transformation state," making it impossible for the target object 210 to perform actions that can be performed in the "transformation state," such as releasing a specific skill.
[0093] Based on the virtual resource consumption and increase mechanism described above, the embodiments of this disclosure can enrich the user's control over the target object and support the user to manage the consumption of virtual resources through operation, thereby improving the interactive experience.
[0094] Example process
[0095] Figure 3 A flowchart of an interactive control method according to some embodiments of the present disclosure is shown. Method 300 can be implemented at electronic device 110. Reference is made below. Figure 3 Description method 300.
[0096] In box 310, electronic device 110 presents interface elements associated with a target object based on a first operation associated with the target object in the virtual scene. In box 320, electronic device 110 controls the target object to perform a first action corresponding to the second operation in the virtual scene based on a second operation associated with the target object. In box 330, in the first stage of the first action, electronic device 110 presents a first portion of the interface elements corresponding to the first action in the target style. In box 340, electronic device 110 controls a first amount of virtual resources to be consumed in the second stage of the first action.
[0097] In some embodiments, during the second phase of the first action, in response to receiving a third operation associated with the target object, the target object is controlled to perform a second action, the type of which is different from the first action; and at least a portion of a first amount of virtual resources is controlled to stop being consumed.
[0098] In some embodiments, the second action includes the target's basic attack action.
[0099] In some embodiments, during the second phase of the first action, in response to receiving a fourth operation associated with the target object, the target object is controlled to perform a third action, wherein the type of the third action is the same as the first action; during the first phase of the third action, a second portion of the interface element is presented in the target style to indicate that a second quantity of virtual resources corresponding to the second portion has not yet been consumed, wherein the second quantity includes the unconsumed portion of the first quantity and the third quantity corresponding to the third action; and the second quantity of virtual resources is controlled to be consumed during the second phase of the third action.
[0100] In some embodiments, the unconsumed portion of the first quantity is determined based on a target duration, wherein the target duration indicates: the duration that the second phase of the first action has elapsed when the fourth action is received, or the remaining duration of the second phase of the first action.
[0101] In some embodiments, during the second phase of the third action, in response to receiving a fifth operation associated with the target object, the target object is controlled to perform a fourth action, the type of which is different from the first or third action; and at least a portion of a second amount of virtual resources is controlled to stop being consumed.
[0102] In some embodiments, the first operation is used to switch the target object to a first state, the first action is performed in the first state, and the method further includes: in response to the third action being performed in the second state of the target object, increasing the amount of virtual resources for the target object based on the fifth operation, the second state being different from the first state.
[0103] In some embodiments, both the first state and the second state are associated with virtual resources such that the amount of virtual resources available for the target object does not change as the state transitions between the first state and the second state.
[0104] In some embodiments, the first action has a first action attribute, the third action has a second action attribute, and the process 300 further includes: in response to the first action attribute being different from the second action attribute, increasing the amount of virtual resources for the target object based on the fifth operation.
[0105] In some embodiments, the amount by which the virtual resource is increased is determined based on the number of actions associated with the second amount.
[0106] In some embodiments, the first operation is used to switch the target object to a target state, and the method further includes: controlling the target object to exit the target state in response to the amount of virtual resources used for the target object being lower than a threshold.
[0107] In some embodiments, the consumption of a first amount of virtual resources during the second phase of the first action includes: the consumption of a first amount of virtual resources at a constant rate during the second phase.
[0108] In some embodiments, the amount of virtual resources used for the target object is controlled to be consumed at least at a preset rate, wherein the preset rate is independent of the actions performed by the target object.
[0109] In some embodiments, the first action includes a skill release action of the target object, the first phase is the skill release phase of the skill release action, and the second phase is the aftercast phase of the skill release action.
[0110] Example devices and equipment
[0111] Figure 4 A block diagram of an interactive control device according to some embodiments of the present disclosure is shown. Device 400 may be implemented as or included in electronic device 110. Various modules / components in device 400 may be implemented by hardware, software, firmware, or any combination thereof.
[0112] like Figure 3 As shown, the device 400 includes a first presentation module 410 configured to present interface elements associated with a target object based on a first operation associated with the target object in a virtual scene, the interface elements indicating the amount of virtual resources for the target object; a first control module 420 configured to control the target object to perform a first action corresponding to the second operation in the virtual scene based on a second operation associated with the target object; a second presentation module 430 configured to present a first part of the interface elements corresponding to the first action in a target style during the first stage of the first action, to indicate that a first amount of virtual resources corresponding to the first part has not yet been consumed; and a first consumption module 440 configured to control the first amount of virtual resources to be consumed during the second stage of the first action.
[0113] In some embodiments, the apparatus 400 further includes a second control module configured to: during a second phase of a first action, in response to receiving a third operation associated with the target object, control the target object to perform a second action, the type of which is different from the first action; and control at least a portion of a first amount of virtual resources to stop being consumed.
[0114] In some embodiments, the second action includes the target's basic attack action.
[0115] In some embodiments, the device 400 further includes a third control module configured to: during the second phase of the first action, in response to receiving a fourth operation associated with the target object, control the target object to perform a third action, wherein the type of the third action is the same as the first action; the device 400 further includes a third presentation module configured to: during the first phase of the third action, present a second portion of an interface element in a target style to indicate that a second quantity of virtual resources corresponding to the second portion has not yet been consumed, wherein the second quantity includes the unconsumed portion of the first quantity and the third quantity corresponding to the third action; and the device 400 further includes a second consumption module configured to: control the second quantity of virtual resources to be consumed during the second phase of the third action.
[0116] In some embodiments, the unconsumed portion of the first quantity is determined based on a target duration, wherein the target duration indicates: the duration that the second phase of the first action has elapsed when the fourth action is received, or the remaining duration of the second phase of the first action.
[0117] In some embodiments, the apparatus 400 further includes a fourth control module configured to: during the second phase of the third action, in response to receiving a fifth operation associated with the target object, control the target object to perform a fourth action, the type of which is different from the first or third action; and control at least a portion of a second amount of virtual resources to stop being consumed.
[0118] In some embodiments, the first operation is used to switch the target object to a first state, the first action is performed in the first state, and the device 400 further includes a first addition module configured to: in response to the third action being performed in the second state of the target object, increase the amount of virtual resources for the target object based on the fifth operation, the second state being different from the first state.
[0119] In some embodiments, both the first state and the second state are associated with virtual resources such that the amount of virtual resources available for the target object does not change as the state transitions between the first state and the second state.
[0120] In some embodiments, the first action has a first action attribute, the third action has a second action attribute, and the apparatus 400 further includes a first adding module configured to: in response to the first action attribute being different from the second action attribute, increase the amount of virtual resources for the target object based on a fifth operation.
[0121] In some embodiments, the amount by which the virtual resource is increased is determined based on the number of actions associated with the second amount.
[0122] In some embodiments, the first operation is used to switch the target object to the target state, and the device 400 further includes a fifth control module configured to control the target object to exit the target state in response to the amount of virtual resources for the target object being lower than a threshold.
[0123] In some embodiments, the first consumption module 440 is further configured to control a first amount of virtual resources to be consumed at a constant rate during the second phase.
[0124] In some embodiments, the apparatus 400 further includes a third consumption module configured to control the amount of virtual resources used for the target object to be consumed at least at a preset rate, wherein the preset rate is independent of the action performed by the target object.
[0125] In some embodiments, the first action includes a skill release action of the target object, the first phase is the skill release phase of the skill release action, and the second phase is the aftercast phase of the skill release action.
[0126] Figure 5 A block diagram of an electronic device 500 in which one or more embodiments of the present disclosure may be implemented is shown. It should be understood that... Figure 5 The electronic device 500 shown is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. Figure 5 The electronic device 500 shown can be used to achieve Figure 1 Electronic devices 110.
[0127] like Figure 5 As shown, electronic device 500 is in the form of a general-purpose electronic device. Components of electronic device 500 may include, but are not limited to, one or more processors or processing units 510, memory 520, storage device 530, one or more communication units 540, one or more input devices 550, and one or more output devices 560. Processing unit 510 may be a physical or virtual processor and is capable of performing various processes according to programs stored in memory 520. In a multiprocessor system, multiple processing units execute computer-executable instructions in parallel to improve the parallel processing capability of electronic device 500.
[0128] Electronic device 500 typically includes multiple computer storage media. Such media can be any accessible media that is accessible to electronic device 500, including but not limited to volatile and non-volatile media, removable and non-removable media. Memory 520 can be volatile memory (e.g., registers, cache, random access memory (RAM)), non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. Storage device 530 can be a removable or non-removable medium and can include machine-readable media, such as flash drives, disks, or any other media that can be used to store information and / or data (e.g., training data for training) and can be accessed within electronic device 500.
[0129] Electronic device 500 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not explicitly stated... Figure 5 As shown, disk drives for reading from or writing to removable, non-volatile disks (e.g., "floppy disks") and optical disk drives for reading from or writing to removable, non-volatile optical disks can be provided. In these cases, each drive can be connected to a bus (not shown) via one or more data media interfaces. Memory 520 may include computer program product 525 having one or more program modules configured to perform various methods or actions of various embodiments of this disclosure.
[0130] Communication unit 540 enables communication with other electronic devices via a communication medium. Additionally, the functionality of components of electronic device 500 can be implemented using a single computing cluster or multiple computing machines capable of communicating via communication connections. Therefore, electronic device 500 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network node.
[0131] Input device 550 can be one or more input devices, such as a mouse, keyboard, trackball, etc. Output device 560 can be one or more output devices, such as a monitor, speaker, printer, etc. Electronic device 500 can also communicate with one or more external devices (not shown) via communication unit 540 as needed. These external devices include storage devices, display devices, etc., and can communicate with one or more devices that enable user interaction with electronic device 500, or with any device that enables electronic device 500 to communicate with one or more other electronic devices (e.g., network card, modem, etc.). Such communication can be performed via input / output (I / O) interface (not shown).
[0132] According to an exemplary implementation of this disclosure, a computer-readable storage medium is provided that stores computer-executable instructions thereon, wherein the computer-executable instructions are executed by a processor to implement the methods described above. According to an exemplary implementation of this disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, which are executed by a processor to implement the methods described above.
[0133] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0134] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processing unit of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0135] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions that execute on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0136] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0137] Various implementations of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is chosen to best explain the principles, practical applications, or improvements to technology in the market, or to enable others skilled in the art to understand the various implementations disclosed herein.
Claims
1. An interactive control method, comprising: Based on a first operation associated with a target object in a virtual scene, interface elements associated with the target object are presented, the interface elements being used to indicate the amount of virtual resources for the target object; Based on a second operation associated with the target object, the target object is controlled to perform a first action corresponding to the second operation in the virtual scene; In the first stage of the first action, the first part of the interface element corresponding to the first action is presented in the target style to indicate that the first amount of the virtual resource corresponding to the first part has not been consumed yet. as well as The first amount of control over the virtual resource is consumed during the second phase of the first action.
2. The method according to claim 1, further comprising: During the second phase of the first action, in response to receiving a third operation associated with the target object, the target object is controlled to perform a second action, the type of which is different from the first action; as well as At least a portion of the first amount of the virtual resource is stopped being consumed.
3. The method according to claim 2, wherein the second action includes the target object's basic attack action.
4. The method according to claim 1, further comprising: During the second phase of the first action, in response to receiving a fourth operation associated with the target object, the target object is controlled to perform a third action, wherein the type of the third action is the same as the first action; In the first stage of the third action, the second part of the interface element is presented in the target style to indicate that the second quantity of the virtual resource corresponding to the second part has not been consumed yet, wherein the second quantity includes the unconsumed part of the first quantity and the third quantity corresponding to the third action; as well as The second amount controlling the virtual resource is consumed during the second phase of the third action.
5. The method of claim 4, wherein the unconsumed portion of the first quantity is determined based on a target duration. in, The target duration indicates the duration that has elapsed in the second phase of the first action when the fourth operation is received, or the remaining duration of the second phase of the first action.
6. The method according to claim 4, further comprising: During the second phase of the third action, in response to receiving a fifth operation associated with the target object, the target object is controlled to perform a fourth action, the type of which is different from the first action or the third action; as well as At least a portion of the second amount of the virtual resource is stopped being consumed.
7. The method according to claim 6, wherein the first operation is used to switch the target object to a first state, the first action is performed in the first state, and the method further comprises: In response to the third action being performed in the second state of the target object, based on the fifth operation, the amount of the virtual resources for the target object is increased, the second state being different from the first state.
8. The method of claim 7, wherein both the first state and the second state are associated with the virtual resource such that the amount of the virtual resource for the target object does not change with state switching between the first state and the second state.
9. The method according to claim 6, wherein the first action has a first action attribute, the third action has a second action attribute, and the method further comprises: In response to the difference between the first action attribute and the second action attribute, the amount of the virtual resource for the target object is increased based on the fifth operation.
10. The method according to any one of claims 7 to 9, wherein the amount by which the virtual resource is increased is determined based on the number of actions associated with the second amount.
11. The method according to claim 1, wherein the first operation is used to switch the target object to a target state, the method further comprising: In response to the amount of virtual resources used for the target object falling below a threshold, the target object is controlled to exit the target state.
12. The method of claim 1, wherein controlling the first amount of the virtual resource to be consumed during the second phase of the first action comprises: The first amount of the virtual resource is controlled to be consumed at a constant rate during the second phase.
13. The method according to claim 1, further comprising: The amount of virtual resources used for the target object is controlled to be consumed at least at a preset rate, wherein the preset rate is independent of the actions performed by the target object.
14. The method according to claim 1, wherein the first action includes the skill release action of the target object, the first stage is the skill release stage of the skill release action, and the second stage is the aftercast stage of the skill release action.
15. An interactive control device, comprising: The first presentation module is configured to present interface elements associated with the target object based on a first operation associated with the target object in the virtual scene, the interface elements being used to indicate the amount of virtual resources for the target object; A first control module is configured to control the target object to perform a first action in the virtual scene corresponding to the second operation based on a second operation associated with the target object; The second presentation module is configured to present the first part of the interface element corresponding to the first action in a target style during the first stage of the first action, so as to indicate that the first amount of the virtual resource corresponding to the first part has not been consumed. as well as The first consumption module is configured to control the first amount of the virtual resource to be consumed during the second phase of the first action.
16. An electronic device comprising: At least one processing unit; as well as At least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 14 when executed by the at least one processing unit.
17. A computer-readable storage medium having a computer program stored thereon, the computer program being executable by a processor to implement the method according to any one of claims 1 to 14.