Interaction method and device in virtual scene, equipment and storage medium
By receiving interactive instructions in a virtual scene and consuming virtual resources to switch the state of the virtual object, the problems of insufficient interaction experience and low efficiency in the virtual environment are solved, and a more efficient, interesting and convenient interactive experience is achieved.
Patent Information
- Application Number
- CN202510097507.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2045-01-21
AI Technical Summary
The prior art is difficult to enrich the experience of manipulating virtual objects in a virtual environment and improve interaction efficiency.
By receiving interactive instructions associated with the first virtual object in the virtual scene, the virtual resources in the target resource set associated with the first virtual object are consumed, and the second virtual object in the virtual scene is switched from one state to another state, the second state is determined based on the resource type of the target resource set, and the first state and the second state correspond to different interaction capabilities.
It improves the interaction efficiency in virtual scenes, increases the fun and convenience of interaction in virtual environments, and enriches the interactive experience in virtual environments.
Smart Images

Figure CN119770983A_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly to interactive methods, devices, apparatuses, and computer-readable storage media in a virtual scene. Background Art
[0002] With the development of computer technology, users can use computers to manipulate virtual objects in scenes provided by computers (for example, simulation environments, virtual environments, etc.) to interact with computers and other users, and obtain interactive experiences that are impossible or difficult to achieve in physical environments. Summary of the invention
[0003] In a first aspect of the present disclosure, an interaction method in a virtual scene is provided. The method comprises: receiving an interaction instruction associated with a first virtual object in the virtual scene; and in response to the interaction instruction, switching a second virtual object within a target range in the virtual scene from a first state to a second state by consuming a set of virtual resources in a target resource set associated with the first virtual object, wherein the second state is determined based on a resource type corresponding to the target resource set, the first state and the second state correspond to different interaction capabilities, and different resource types correspond to different second states.
[0004] In a second aspect of the present disclosure, a device for interaction in a virtual scene is provided. The device includes: a receiving module configured to receive an interaction instruction associated with a first virtual object in the virtual scene; and a switching module configured to switch a second virtual object within a target range in the virtual scene from a first state to a second state in response to the interaction instruction by consuming a set of virtual resources in a target resource set associated with the first virtual object, wherein the second state is determined based on a resource type corresponding to the target resource set, the first state and the second state correspond to different interaction capabilities, and different resource types correspond to different second states.
[0005] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the device executes the method of the first aspect.
[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect.
[0007] In a fifth aspect of the present disclosure, a computer program product is provided, which is tangibly stored in a computer storage medium and includes computer executable instructions, wherein when the computer executable instructions are executed by a device, the device implements the method of the first aspect.
[0008] It should be understood that the contents described in this content section are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0010] Figure 1 A schematic diagram showing an example environment in which embodiments according to the present disclosure may be implemented;
[0011] FIG. 2A to FIG. 2E illustrates example interactions according to some embodiments of the present disclosure;
[0012] Figure 3 A flowchart illustrating an example process of interaction in a virtual scene according to some embodiments of the present disclosure;
[0013] Figure 4 A schematic structural block diagram showing an example apparatus for interaction in a virtual scene according to some embodiments of the present disclosure; and
[0014] Figure 5 A block diagram of an electronic device capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0015] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0016] It should be noted that the titles of any sections / subsections provided herein are not restrictive. Various embodiments are described throughout this article, and any type of embodiment may be included under any section / subsection. In addition, the embodiments described in any section / subsection may be combined in any manner with any other embodiments described in the same section / subsection and / or different sections / subsections.
[0017] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part 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 be included below. The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may be included below.
[0018] The embodiments of the present disclosure may involve user data, data acquisition and / or use, etc. These aspects are subject to the corresponding laws, regulations and relevant provisions. In the embodiments of the present disclosure, all data collection, acquisition, processing, processing, forwarding, use, etc. are carried out on the premise that the user knows and confirms. Accordingly, when implementing each embodiment of the present disclosure, the type, scope of use, usage scenario, etc. of the data or information that may be involved should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with the relevant laws and regulations. The specific notification and / or authorization method can vary according to the actual situation and application scenario, and the scope of the present disclosure is not limited in this respect.
[0019] In this specification and the embodiments, if personal information processing is involved, it will be processed on the premise of having a legal basis (such as obtaining the consent of the subject of personal information, or it is necessary to perform a contract, etc.), and will only be processed within the scope of regulations or agreements. If a user refuses to process personal information other than the necessary information for basic functions, it will not affect the user's use of basic functions.
[0020] As mentioned above, with the development of computer technology, users can use computers to manipulate virtual objects in scenes provided by computers (e.g., simulation environments, virtual environments, etc.) to interact with computers and other users, and obtain interactive experiences that are impossible or difficult to achieve in physical environments. However, how to enrich the experience of manipulating virtual objects in a virtual environment and how to increase the efficiency of interaction in a virtual environment have become issues that need to be addressed.
[0021] The embodiment of the present disclosure proposes a scheme for interaction in a virtual scene. The scheme includes: receiving an interaction instruction associated with a first virtual object in the virtual scene; and in response to the interaction instruction, switching a second virtual object within a target range in the virtual scene from a first state to a second state by consuming a set of virtual resources in a target resource set associated with the first virtual object, wherein the second state is determined based on a resource type corresponding to the target resource set, the first state and the second state correspond to different interaction capabilities, and different resource types correspond to different second states.
[0022] In this way, the embodiments of the present disclosure can improve the interaction efficiency in the virtual scene and increase the fun and convenience of the interaction in the virtual environment.
[0023] Various example implementations of the solution are described in detail below in conjunction with the accompanying drawings.
[0024] Example Environment
[0025] Figure 1 1 is a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. Figure 1 As shown, example environment 100 may include electronic device 110 .
[0026] In this example environment 100, the electronic device 110 may run an application 120 that supports interaction in a virtual scene. The application 120 may be any suitable type of application for interaction in a virtual scene, examples of which may include, but are not limited to, game applications, simulation applications, or other suitable applications. The user 140 may interact with the application 120 via the electronic device 110 and / or its attached devices.
[0027] exist Figure 1 In the environment 100 , if the application 120 is active, the electronic device 110 may present an interface 150 for supporting interaction in a virtual scene through the application 120 .
[0028] In some embodiments, the electronic device 110 communicates with the server 130 to provide services for the application 120. The electronic device 110 can be any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a handheld computer, a portable game terminal, a VR / AR device, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio receiver, an e-book device, a game device, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. In some embodiments, the electronic device 110 can also support any type of interface for the user (such as a "wearable" circuit, etc.).
[0029] The server 130 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data and artificial intelligence platforms. The server 130 may include, for example, a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, etc. The server 130 may provide background services for the application 120 in the electronic device 110 that supports interaction in a virtual scene.
[0030] A communication connection may be established between the server 130 and the electronic device 110. The communication connection may be established in a wired manner or a wireless manner. The communication connection may include, but is not limited to, a Bluetooth connection, a mobile network connection, a Universal Serial Bus (USB) connection, a Wireless Fidelity (WiFi) connection, etc., and the embodiments of the present disclosure are not limited in this respect. In the embodiments of the present disclosure, the server 130 and the electronic device 110 may implement signaling interaction through the communication connection between the two.
[0031] It should be understood that the structure and function of the various elements in the environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure.
[0032] Some example embodiments of the present disclosure will be described below with continued reference to the accompanying drawings.
[0033] Example Interaction
[0034] FIG. 2A to FIG. 2E Example interactions 200A to 200E according to some embodiments of the present disclosure are shown. Example interactions 200A to 200E can be performed, for example, via Figure 1 The electronic device 110 is shown to perform.
[0035] In some embodiments, the electronic device 110 can present one or more virtual objects in a virtual scene. These virtual objects have multiple states and virtual objects in different states have different interactive capabilities. For example, a virtual object can be in an active state, a restricted state, or an inactive state. The active state can include a regular state of a virtual object in a virtual environment, in which the virtual object has multiple interactive capabilities. However, if the virtual object is in a restricted state, the interactive capabilities of the virtual object will be reduced accordingly. In addition, a virtual object in an inactive state may not have any interactive capabilities or may have less interactive capabilities than a virtual object in a restricted state.
[0036] In some embodiments, the electronic device 110 may receive an interaction instruction associated with a first virtual object in a virtual scene. The interaction instruction may include, for example, an instruction triggered by satisfying some conditions. In some examples, the virtual resources may include different types of resources.
[0037] In some embodiments, a virtual object may have a virtual resource, which may be obtained through the interaction of the virtual object in the virtual environment. For example, the virtual object may interact with a resource acquisition point in the virtual environment to obtain a target resource. The target resource may be bound to the virtual object. In some examples, the target resource may constitute a target resource set, which may be bound to the virtual object.
[0038] In some embodiments, the electronic device 110 may present an indication element corresponding to the target resource set in the interactive interface of the virtual scene, and the display style of the indication element is determined based on the resource type.
[0039] like Figure 2A As shown, an indication element 205 is presented above the virtual object 202, and the indication element indicates the target resource set of the virtual object 202. For example, Figure 2A Indicator element 205 shows that there is no target resource in the target resource set of virtual object 202. Virtual resources may include first type virtual resources and second type virtual resources, and indicator elements may indicate different types of virtual resources in different styles (eg, color, brightness, indicator shape, etc.). Figure 2A Also shown is a virtual prop 210, and the virtual object 202 can obtain the virtual resource by moving to the position of the virtual prop 210. After obtaining the virtual resource, the indicator element 205 will change accordingly, for example, the indicator element 205 will be filled to indicate that the target resource set has the target resource.
[0040] like Figure 2B As shown, another virtual object 220 is interacting with the virtual object 202 (for example, another virtual object 220 is attacking the virtual object 202), and the virtual object 202 can also obtain the target resource at this time. Figure 2B The indicator element 205 shown in FIG. 2 shows that there are two units of the target resource in the virtual resource collection of the virtual object 202 (two of the three slots in the indicator element 205 are filled).
[0041] In some examples, the virtual object may include, for example, a virtual character, and the indicator element 205 may include a meter associated with the virtual character. The meter may indicate the number of virtual resources that the virtual character has, or may indicate status information of the virtual character. For example, the indicator element 205 may indicate the number of status effect layers that the virtual character has.
[0042] In some embodiments, the electronic device 110 may update the target resource set. For example, in some embodiments, the electronic device 110 may update the target resource set based on the interaction between the first virtual object and at least one interactive element in the virtual scene, where the at least one interactive element corresponds to a virtual resource of a predetermined type. Figure 2A As shown, if the first virtual object makes contact with the virtual prop 210 in the virtual environment, the electronic device 110 can update the target resource set accordingly. In addition, the virtual prop can correspond to a predetermined type of virtual resource, for example, virtual prop A can correspond to a first type of virtual resource, and virtual prop B can correspond to a second type of virtual resource.
[0043] In some embodiments, the electronic device 110 may also update the target resource set in response to the virtual action acting on the first virtual object satisfying the second preset condition. Figure 2B As shown, other virtual objects in the virtual environment attack the first virtual object, and the electronic device 110 can update the target resource set accordingly.
[0044] In some embodiments, the electronic device 110 may update the target resource set in response to the first virtual object completing a preset event in the virtual scene. For example, if the first virtual object triggers event A or is affected by an event in the virtual environment, the electronic device 110 may update the target resource set accordingly.
[0045] In some embodiments, before receiving the interaction instruction, the electronic device 110 may adjust the display style of the indication element in response to the number of a group of virtual resources in the target resource set reaching a preset number to indicate that the interaction instruction is allowed to be triggered.
[0046] like Figure 2C As shown, the number of a group of virtual resources of the virtual object 202 reaches a preset number, which can be three. In response to the number of the group of virtual resources reaching three, the electronic device 110 adjusts the display style of the indicator element 230. For example, the electronic device 110 can apply a luminous effect to the indicator element 230 to highlight it, and the indicator element 230 in the highlighted state can indicate to the user that the interaction instruction can be triggered. The triggerable interaction instruction can be automatically triggered, for example, automatically triggered after a preset time (for example, one second later), or triggered by an interaction operation received by the electronic device 110.
[0047] In some embodiments, the electronic device 110 may switch a second virtual object within a target range in the virtual scene from a first state to a second state by consuming a set of virtual resources in a target resource set associated with the first virtual object in response to an interaction instruction.
[0048] like Figure 2C As shown, the electronic device 110 may consume a set of virtual resources in response to the interactive instruction. The virtual resources may be indicated by the indication element 230.
[0049] In some embodiments, when the electronic device 110 consumes a group of virtual resources in response to an interaction instruction, the electronic device 110 may determine a target range, and virtual objects in the target range will be affected, thereby switching states.
[0050] In some embodiments, the target range is determined based on the position of the first virtual object. For example, the electronic device 110 may determine the target range 250 based on the position of the virtual object 202. For example, the target range 250 may include a circular range with the position of the virtual object 202 as the center. In some examples, the virtual objects 202 and 204 in the target range 250 may be affected so that the state is switched.
[0051] like Figure 2C As shown in FIG. 2 , virtual object 202 is in an active state and virtual object 204 is in a restricted state, that is, in this example, the first state is a restricted state, wherein at least one first interactive ability corresponding to the active state is disabled in the restricted state. For example, a virtual object in an active state can use skills or perform attack actions and can move, whereas a virtual object in a restricted state cannot use skills or perform attack actions, but the virtual object in the restricted state may, for example, still have the ability to move.
[0052] In some examples, a virtual object in a restricted state may still have some interactive capabilities, such as providing a field of view in the virtual environment for the team, being attacked, or sharing damage with a virtual object in an active state. It should be understood that a virtual object in a restricted state may not have the ability to provide a field of view, may not be attacked, or in some additional examples, a virtual object in a restricted state may only have the ability to move.
[0053] Alternatively or additionally, a virtual object in a limited state may not have any interactive capabilities.
[0054] In other examples, a virtual object in a restricted state may enter an inactive state after a preset time.
[0055] In some embodiments, the inactive state indicates that at least one second interactive capability corresponding to the limited state is disabled in the inactive state. For example, the virtual object in the inactive state may not have the ability to move.
[0056] In some embodiments, after determining the target range, the electronic device 110 may switch the state of the virtual objects located in the target range. Figure 2C and Figure 2D As shown in , the electronic device 110 switches the virtual object 202 in the active state to the virtual object 202 - 1 in the restricted state, and switches the virtual object 204 in the restricted state to the virtual object 204 - 1 in the active state.
[0057] In some embodiments, the first virtual object and the second virtual object correspond to the same object grouping or different object groupings. Figure 2C The virtual object 202 and the virtual object 204 shown in the figure can be virtual objects of the same team. In addition, the virtual object 202 and the virtual object 204 can also belong to different teams respectively.
[0058] In some embodiments, the electronic device 110 may update the visual representation of the second virtual object in the virtual scene in response to the second virtual object switching from the first state to the second state. For example, the virtual object 202 in the active state may have a visual representation of a human form, while the virtual object 202-1 in the restricted state may have a spherical visual representation. In some examples, the visual representations of multiple virtual objects in the active state may be different, while the visual representations of multiple virtual objects in the restricted state may be the same.
[0059] In addition, the switching of the above states may also be triggered by other conditions. In some embodiments, the electronic device 110 may switch the preset object from the active state to the restricted state in response to the life attribute of the preset object satisfying the first preset condition. For example, the electronic device 110 may switch the virtual object from the active state to the restricted state in response to the life value of the virtual object decreasing to 0 (or decreasing to a preset threshold, such as 10%, or less).
[0060] In some embodiments, the electronic device 110 may also switch at least one third virtual object within the target range from an active state to a restricted state. For example, the third object may be Figure 2C In addition, the third virtual object may include any virtual object having a set of virtual resources reaching a preset number. After the set of virtual resources of the third virtual object reaches the preset number, the electronic device 110 may switch at least one third virtual object within the target range from an active state to a restricted state. The at least one third virtual object may include the first virtual object.
[0061] In some embodiments, the second state is determined based on the resource type corresponding to the target resource set, and the first state and the second state correspond to different interactive capabilities. In addition, different resource types may correspond to different second states. For example, if the resource type is the first type, the second state may include an active state. In other examples, if the resource type is the second type, the second state may include an inactive state.
[0062] In some examples, such as Figure 2C and Figure 2D As shown, the electronic device 110 can switch the second virtual object from a restricted state to an active state in response to the resource type being the first type. The indication element 230 can indicate that the resource type is the first type. For example, the indication element 230 can use a specific color (e.g., yellow) to indicate that the resource type is the first type. If the resource type is the first type, the second virtual object (i.e., virtual object 204) can be switched from a restricted state to an active state (i.e., virtual object 204-1). The electronic device 110 can also present visual effects or special effects to indicate the switching of the above states.
[0063] In some embodiments, Figure 2C and Figure 2E As shown, the electronic device 110 may switch the second virtual object from a restricted state to an inactive state in response to the resource type being the second type. Figure 2C and Figure 2E As shown, the indication element 230 may use another color (eg, red) to indicate that the resource type is the second type, and the electronic device 110 may switch the virtual object 204 to an inactive state (eg, Figure 2E The inactive state indicates that at least one second interactive capability corresponding to the restricted state is disabled in the inactive state. For example, if the virtual object 204 in the restricted state can move, the virtual object 204-2 in the inactive state may not have the ability to move. The visual representation of the virtual object in the inactive state may be different from the visual representation of the virtual object in the active state and the visual representation of the virtual object in the restricted state. In addition, the electronic device 110 may also present a visual effect or special effect to indicate the switching of the state.
[0064] In this way, the embodiments of the present disclosure can improve the interaction efficiency in the virtual scene and increase the fun and convenience of the interaction in the virtual environment. Here, the embodiments of the present disclosure can also enrich the interactive experience in the virtual environment, giving users more abundant interaction options, thereby improving the user experience.
[0065] Example Process
[0066] Figure 31 is a flowchart showing an example process 300 of interaction in a virtual scene according to some embodiments of the present disclosure. Process 300 may be implemented at electronic device 110. Figure 1 The process 300 is described below.
[0067] like Figure 3 As shown, in box 310, the electronic device 110 receives an interaction instruction associated with a first virtual object in a virtual scene.
[0068] In box 320, the electronic device 110 responds to the interaction instruction by consuming a group of virtual resources in the target resource set associated with the first virtual object, switching the second virtual object within the target range in the virtual scene from a first state to a second state, wherein the second state is determined based on the resource type corresponding to the target resource set, the first state and the second state correspond to different interaction capabilities, and different resource types correspond to different second states.
[0069] In some embodiments, process 300 further includes: presenting an indication element corresponding to the target resource set in an interactive interface of the virtual scene, and the display style of the indication element is determined based on the resource type.
[0070] In some embodiments, the process 300 further includes: before receiving the interaction instruction, in response to the number of a group of virtual resources in the target resource set reaching a preset number, adjusting the display style of the indication element to indicate that the interaction instruction is allowed to be triggered.
[0071] In some embodiments, process 300 further includes updating a visual representation of the second virtual object in the virtual scene in response to the second virtual object switching from the first state to the second state.
[0072] In some embodiments, the first state is a restricted state, wherein at least one first interactive capability corresponding to the active state is disabled in the restricted state.
[0073] In some embodiments, switching a second virtual object within a target range in a virtual scene from a first state to a second state includes: in response to the resource type being the first type, switching the second virtual object from a restricted state to an active state; or in response to the resource type being the second type, switching the second virtual object from a restricted state to an inactive state, wherein the inactive state indicates that at least one second interactive capability corresponding to the restricted state is disabled in the inactive state.
[0074] In some embodiments, the process 300 further includes: in response to the life attribute of the preset object satisfying the first preset condition, switching the preset object from the active state to the restricted state.
[0075] In some embodiments, process 300 further includes switching at least one third virtual object within the target range from an active state to a restricted state.
[0076] In some embodiments, the at least one third virtual object includes the first virtual object.
[0077] In some embodiments, the target range is determined based on the position of the first virtual object.
[0078] In some embodiments, process 300 also includes at least one of the following: updating the target resource set based on the interaction between the first virtual object and at least one interactive element in the virtual scene, at least one interactive element corresponding to a virtual resource of a predetermined type; or updating the target resource set in response to the virtual action acting on the first virtual object satisfying a second preset condition; or updating the target resource set in response to the first virtual object completing a preset event in the virtual scene.
[0079] In some embodiments, the first virtual object and the second virtual object correspond to the same grouping of objects or different groupings of objects.
[0080] Example devices and equipment
[0081] The embodiments of the present disclosure also provide corresponding devices for implementing the above methods or processes. Figure 4 A schematic structural block diagram of an example apparatus 400 for interaction in a virtual scene according to some embodiments of the present disclosure is shown. The apparatus 400 may be implemented as or included in the electronic device 110. Each module / component in the apparatus 400 may be implemented by hardware, software, firmware, or any combination thereof.
[0082] like Figure 4 As shown, the device 400 includes: a receiving module 410, configured to receive an interaction instruction associated with a first virtual object in a virtual scene; and a switching module 420, configured to switch a second virtual object within a target range in the virtual scene from a first state to a second state in response to the interaction instruction by consuming a group of virtual resources in a target resource set associated with the first virtual object, wherein the second state is determined based on a resource type corresponding to the target resource set, the first state and the second state correspond to different interaction capabilities, and different resource types correspond to different second states.
[0083] In some embodiments, the apparatus 400 further includes a presentation module configured to present, in an interactive interface of the virtual scene, an indication element corresponding to the target resource set, and a display style of the indication element is determined based on the resource type.
[0084] In some embodiments, the apparatus 400 further includes an adjustment module configured to: before receiving the interaction instruction, in response to the number of a group of virtual resources in the target resource set reaching a preset number, adjust the display style of the indication element to indicate that the interaction instruction is allowed to be triggered.
[0085] In some embodiments, the apparatus 400 further includes an updating module configured to update a visual representation of the second virtual object in the virtual scene in response to the second virtual object switching from the first state to the second state.
[0086] In some embodiments, the first state is a restricted state, wherein at least one first interactive capability corresponding to the active state is disabled in the restricted state.
[0087] In some embodiments, the switching module 420 is further configured to: in response to the resource type being the first type, switch the second virtual object from a restricted state to an active state; or in response to the resource type being the second type, switch the second virtual object from a restricted state to an inactive state, wherein the inactive state indicates that at least one second interactive capability corresponding to the restricted state is disabled in the inactive state.
[0088] In some embodiments, the switching module 420 is further configured to: in response to the life attribute of the preset object satisfying the first preset condition, switch the preset object from the active state to the restricted state.
[0089] In some embodiments, the switching module 420 is further configured to: switch at least one third virtual object within the target range from an active state to a restricted state.
[0090] In some embodiments, the at least one third virtual object includes the first virtual object.
[0091] In some embodiments, the target range is determined based on the position of the first virtual object.
[0092] In some embodiments, the update module is further configured to: update the target resource set based on the interaction between the first virtual object and at least one interactive element in the virtual scene, at least one interactive element corresponding to a virtual resource of a predetermined type; or update the target resource set in response to the virtual action acting on the first virtual object satisfying a second preset condition; or update the target resource set in response to the first virtual object completing a preset event in the virtual scene.
[0093] In some embodiments, the first virtual object and the second virtual object correspond to the same grouping of objects or different groupings of objects.
[0094] like Figure 5As shown, the electronic device 500 is in the form of a general electronic device. The components of the electronic device 500 may include, but are not limited to, one or more processors or processing units 510, a memory 520, a storage device 530, one or more communication units 540, one or more input devices 550, and one or more output devices 560. The processing unit 510 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 520. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 500.
[0095] The electronic device 500 typically includes a plurality of computer storage media. Such media may be any accessible media that is accessible to the electronic device 500, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 520 may be a volatile memory (e.g., registers, caches, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 530 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data and may be accessed within the electronic device 500.
[0096] The electronic device 500 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 5 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 520 may include a computer program product 525 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.
[0097] The communication unit 540 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 500 can be implemented in a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 500 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0098] The input device 550 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 560 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 500 may also communicate with one or more external devices (not shown) through the communication unit 540 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 500, or communicate with any device that allows the electronic device 500 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0099] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
[0100] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0101] 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 device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0102] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0103] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0104] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.
Claims
1. An interactive method in a virtual scene, comprising: receiving an interaction instruction associated with a first virtual object in a virtual scene; as well as In response to the interaction instruction, a second virtual object within a target range in the virtual scene is switched from a first state to a second state by consuming a group of virtual resources in a target resource set associated with the first virtual object, wherein the second state is determined based on a resource type corresponding to the target resource set, the first state and the second state correspond to different interaction capabilities, and different resource types correspond to different second states.
2. The method according to claim 1, further comprising: In the interactive interface of the virtual scene, an indication element corresponding to the target resource set is presented, and a display style of the indication element is determined based on the resource type.
3. The method according to claim 2, further comprising: Before receiving the interaction instruction, in response to the number of the group of virtual resources in the target resource set reaching a preset number, adjusting the display style of the indication element to indicate that the interaction instruction is allowed to be triggered.
4. The method according to claim 1, further comprising: In response to the second virtual object switching from the first state to the second state, updating a visual representation of the second virtual object in the virtual scene. The method according to claim 1 , wherein the first state is a restricted state, wherein at least one first interactive capability corresponding to the active state is disabled in the restricted state.
6. The method according to claim 5, wherein switching the second virtual object within the target range in the virtual scene from a first state to a second state comprises: In response to the resource type being the first type, switching the second virtual object from the restricted state to the active state; or In response to the resource type being the second type, the second virtual object is switched from the restricted state to an inactive state, wherein the inactive state indicates that at least one second interactive capability corresponding to the restricted state is disabled in the inactive state.
7. The method according to claim 5, further comprising: In response to a life attribute of a preset object satisfying a first preset condition, the preset object is switched from the active state to the restricted state.
8. The method according to claim 1, further comprising: At least one third virtual object within the target range is switched from an active state to a restricted state. The method of claim 8 , wherein the at least one third virtual object comprises the first virtual object.
10. The method of claim 1, wherein the target range is determined based on a position of the first virtual object.
11. The method according to claim 1, further comprising at least one of the following: updating the target resource set based on an interaction between the first virtual object and at least one interactive element in the virtual scene, wherein the at least one interactive element corresponds to a virtual resource of a predetermined type; or In response to the virtual action acting on the first virtual object satisfying a second preset condition, updating the target resource set; or In response to the first virtual object completing a preset event in the virtual scene, the target resource set is updated. 12 . The method of claim 1 , wherein the first virtual object and the second virtual object correspond to the same object grouping or different object groupings.
13. A device for interaction in a virtual scene, comprising: A receiving module configured to receive an interaction instruction associated with a first virtual object in a virtual scene; as well as A switching module is configured to switch a second virtual object within a target range in the virtual scene from a first state to a second state in response to the interaction instruction by consuming a group of virtual resources in a target resource set associated with the first virtual object, wherein the second state is determined based on a resource type corresponding to the target resource set, the first state and the second state correspond to different interaction capabilities, and different resource types correspond to different second states.
14. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory being 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 12 when executed by the at least one processing unit.
15. A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method according to any one of claims 1 to 12 when executed by a processor.
16. A computer program product tangibly stored in a computer storage medium and comprising computer executable instructions which, when executed by a device, cause the device to perform the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Virtual object control method and device, terminal and storage medium
CN111686449A
Display method and device of main body object and storage medium
CN115888096A
Audio playing method and device, medium and electronic equipment
CN116755653A
Information processing system, a non-transitory storage medium having stored therein an information processing program, an information processing apparatus, and an information processing method
US20200391117A1