Interaction method, device and equipment in virtual scene and storage medium
By receiving interactive commands and consuming virtual resources to switch the state of virtual objects in a virtual scene, the problem of insufficient interactive experience in the virtual environment is solved, and a more efficient and interesting interactive experience is achieved.
Patent Information
- Application Number
- CN202510097507.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2045-01-21
AI Technical Summary
How to enrich the experience of manipulating virtual objects in a virtual environment and improve interaction efficiency and fun.
By receiving an interaction command associated with a first virtual object in the virtual scene, virtual resources in the target resource set are consumed to switch a second virtual object within the target range in the virtual scene from a first state to a second state. The second state is determined by the resource type of the target resource set, and the first and second states correspond to different interaction capabilities.
It improves the efficiency of interaction in virtual scenes, increases the fun and convenience of interaction in virtual environments, and enriches the user's interactive experience.
Smart Images

Figure CN119770983B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Example embodiments of the present disclosure generally relate to the field of computers, and in particular, to an interaction method, apparatus, device and computer readable storage medium in a virtual scene. BACKGROUND
[0002] With the development of computer technology, users can manipulate virtual objects in a scene (e.g., a simulation environment, a virtual environment, etc.) provided by a computer to achieve interaction with the computer, other users, and get an interactive experience that cannot be achieved or is not easy to achieve in a physical environment. SUMMARY
[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 a 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, the second state being determined based on a resource type corresponding to the target resource set, the first state and the second state corresponding to different interactive abilities, and different resource types corresponding to different second states.
[0004] In a second aspect of the present disclosure, an apparatus for interaction in a virtual scene is provided. The apparatus comprises: a receiving module configured to receive an interaction instruction associated with a first virtual object in a virtual scene; and a switching module configured to, in response to the interaction instruction, 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, the second state being determined based on a resource type corresponding to the target resource set, the first state and the second state corresponding to different interactive abilities, and different resource types corresponding to different second states.
[0005] In a third aspect of the present disclosure, an electronic device is provided. The device comprises 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, when executed by the at least one processing unit, cause the device to perform the method of the first aspect.
[0006] In a fourth aspect of the present disclosure, a computer readable storage medium is provided. The computer readable storage medium has stored thereon a computer program, which is executable by a processor to implement the method of the first aspect.
[0007] In a fifth aspect of the disclosure, a computer program product is provided. The computer program product is tangibly stored in a computer storage medium and includes computer- executable instructions, wherein the computer-executable instructions, when executed by a device, cause the device to implement the method of the first aspect.
[0008] It is to be understood that the details set forth herein are by way of example and not intended to limit the scope of the embodiments of the present disclosure, but rather to provide detailed descriptions of various embodiments of the disclosure. It should be noted that the sections and subsections herein are not intended to limit the scope of the embodiments of the present disclosure. Other features of the present disclosure will become apparent from the following detailed description, taken in conjunction with the accompanying drawings, which together serve to illustrate the principles of the disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0009] The above and other features, advantages and aspects of embodiments of the present disclosure will become more apparent from the following detailed description in conjunction with the accompanying drawings, in which like reference numerals refer to like elements. In the drawings:
[0010] FIG. 1 A schematic diagram illustrating an example environment in which embodiments according to the present disclosure can be implemented is shown;
[0011] FIGS. 2A-2E An example interaction according to some embodiments of the present disclosure is shown;
[0012] FIG. 3 A flowchart illustrating an example process for an interaction in a virtual scene according to some embodiments of the present disclosure is shown;
[0013] FIG. 4 A schematic block diagram illustrating an example apparatus for an interaction in a virtual scene according to some embodiments of the present disclosure is shown; and
[0014] FIG. 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 hereinafter with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be embodied in various forms and should not be construed as being limited to the embodiments set forth herein; rather, these embodiments are provided so as to thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of the present disclosure.
[0016] It is noted that the headings provided herein are not limitations of the embodiments described in any section / subsection. Various embodiments are described throughout this document and any type of embodiment can be included under any section / subsection. Furthermore, embodiments described in any section / subsection can be combined with any other embodiment described in the same section / subsection and / or in a different section / subsection in any manner.
[0017] In the description of the embodiments of the present disclosure, the term "comprising" and its conjugations should be understood as open-ended inclusion, i.e., "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". The following can also include other explicit and implicit definitions. The terms "first", "second", etc. can refer to different or the same objects. The following can also include other explicit and implicit definitions.
[0018] The embodiments of the present disclosure can involve data of users, acquisition and / or use of data, etc. These aspects all comply with the corresponding laws and regulations and relevant provisions. In the embodiments of the present disclosure, the collection, acquisition, processing, processing, forwarding, use, etc. of all data are carried out on the premise that the user is aware of and confirms. Accordingly, when implementing the embodiments of the present disclosure, the type of data or information that can be involved, the use range, the use scenario, etc. should be notified to the user and the authorization of the user should be obtained through appropriate means according to 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 the present specification and embodiments, if the scheme involves processing of personal information, it will be processed on the premise of legality (for example, obtaining the consent of the subject of personal information, or being necessary for the performance of a contract, etc.), and only within the prescribed or agreed range. The user refuses to process personal information other than the necessary information required for the basic function, which does not affect the user's use of the basic function.
[0020] As mentioned above, with the development of computer technology, users can manipulate virtual objects in a scenario provided by a computer (for example, a simulation environment, a virtual environment, etc.) to achieve interaction with the computer, other users, and get an interactive experience that cannot be achieved or is not easy to achieve in a physical environment. However, how to enrich the experience of manipulating virtual objects in a virtual environment and how to increase the interaction efficiency in a virtual environment have become urgent problems to be solved.
[0021] Embodiments of the present disclosure provide a scheme for interaction in a virtual scene. The scheme includes: receiving an interaction instruction associated with a first virtual object in a 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, the second state being determined based on a resource type corresponding to the target resource set, the first state and the second state corresponding to different interactive capabilities, and different resource types corresponding to different second states.
[0022] In this way, embodiments of the present disclosure can improve the efficiency of interaction in a virtual scene and increase the interest and convenience of interaction in a virtual environment.
[0023] Various example implementations of the approach are described in further detail below in conjunction with the drawings.
[0024] Example Environment
[0025] FIG. 1 A schematic diagram illustrating an example environment 100 in which embodiments of the present disclosure can be implemented is shown. As shown, the example environment 100 can include an electronic device 110. FIG. 1
[0026] In this example environment 100, the electronic device 110 can be running an application 120 that supports interaction in a virtual scene. The application 120 can be any suitable type of application for interaction in a virtual scene, examples of which can include, but are not limited to, a gaming application, a simulation application, or other suitable application. A user 140 can interact with the application 120 via the electronic device 110 and / or its attached devices.
[0027] In the example environment 100, if the application 120 is in an active state, the electronic device 110 can present an interface 150 for supporting interaction in a virtual scene through the application 120. FIG. 1
[0028] In some embodiments, the electronic device 110 communicates with a server 130 to implement the provision of services to the application 120. The electronic device 110 can be any type of mobile terminal, fixed terminal, or portable terminal including a mobile handset, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a palmtop computer, a portable gaming 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 broadcast receiver, an electronic book device, a game device, or any combination thereof, including an apparatus and peripherals or peripherals thereof or any combination thereof. In some embodiments, the electronic device 110 can also support any type of interface to a user (such as "wearable" circuitry, etc.).
[0029] The server 130 can be a standalone physical server, a server cluster composed of multiple physical servers, or a distributed system, and can also be a cloud server providing 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 basic cloud computing services such as big data and artificial intelligence platforms. The server 130 can include, for example, a computing system / server such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. The server 130 can provide background services for the application 120 in the electronic device 110 that supports interaction in a virtual scene.
[0030] A communication connection can be established between the server 130 and the electronic device 110. The communication connection can be established by wired or wireless means. The communication connection can include, but is not limited to, a Bluetooth connection, a mobile network connection, a Universal Serial Bus (USB) connection, a Wireless Fidelity (WiFi) connection, and the like, and embodiments of the present disclosure are not limited in this regard. In embodiments of the present disclosure, the server 130 and the electronic device 110 can achieve signaling interaction through the communication connection therebetween.
[0031] It should be understood that the structure and function of the various elements in the environment 100 are described for illustrative purposes only, without implying 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] FIGS. 2A-2E Example interactions 200A to 200E according to some embodiments of the present disclosure are shown. The example interactions 200A to 200E can be performed, for example, via the electronic device 110 shown. FIG. 1
[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 limited state, or an inactive state. The active state can include the regular state of the virtual object in the virtual environment, in which the virtual object has multiple interactive capabilities. However, if the virtual object is in the limited state, the interactive capabilities of the virtual object will be correspondingly reduced. In addition, a virtual object in the inactive state can have no interactive capabilities or have fewer interactive capabilities than a virtual object in the limited state.
[0036] In some embodiments, the electronic device 110 may receive an interaction instruction associated with a first virtual object in a virtual scene. This interaction instruction may, for example, include an instruction triggered by the fulfillment of certain conditions. In some examples, the virtual resource may include different types of resources.
[0037] In some embodiments, a virtual object may have virtual resources that can be obtained through the virtual object's interactions within a virtual environment. For example, a virtual object may interact with a resource acquisition point in the virtual environment to obtain a target resource. This target resource may be bound to the virtual object. In some examples, target resources may form a set of target resources, which may be bound to the virtual object.
[0038] In some embodiments, the electronic device 110 may present indicator elements corresponding to the target resource set in the interactive interface of the virtual scene, and the display style of the indicator elements is determined based on the resource type.
[0039] like FIG. 2A As shown, an indicator element 205 is displayed above the virtual object 202, indicating the set of target resources possessed by the virtual object 202. For example, FIG. 2A Indicator element 205 indicates 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 the indicator element may indicate different types of virtual resources in different styles (e.g., color, brightness, indicator shape, etc.). FIG. 2A The image also shows a virtual prop 210, and a virtual object 202 can obtain virtual resources by moving to the location of the virtual prop 210. After obtaining the virtual resources, the indicator element 205 will change accordingly, for example, the indicator element 205 will be filled to indicate that the target resource set contains the target resource.
[0040] like FIG. 2B As shown, another virtual object 220 is interacting with virtual object 202 (e.g., another virtual object 220 is attacking virtual object 202), and virtual object 202 can also acquire the target resource at this time. Furthermore, FIG. 2B The indicator element 205 shown indicates (two of the three slots in indicator element 205 are filled) a target resource with two units in the virtual resource set of virtual object 202.
[0041] In some examples, the virtual object may include, for instance, a virtual character, and the indicator element 205 may include a meter associated with the virtual character. This meter may represent the quantity of virtual resources possessed by the virtual character, or it may represent the virtual character's status information. For example, the indicator element 205 may represent the number of status effect layers possessed by the virtual character.
[0042] In some embodiments, the electronic device 110 can update the target resource set. For example, in some embodiments, the electronic device 110 can update the target resource set based on the interaction of the first virtual object with at least one interactive element in the virtual scene, the at least one interactive element corresponding to a predetermined type of virtual resource. For example, as shown in FIG. 2A If the first virtual object contacts 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, the virtual prop A can correspond to a first type of virtual resource, and the virtual prop B can correspond to a second type of virtual resource.
[0043] In some embodiments, the electronic device 110 can also update the target resource set in response to the virtual action acting on the first virtual object satisfying a second preset condition. For example, as shown in FIG. 2B The 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 can 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 can update the target resource set accordingly.
[0045] In some embodiments, before receiving the interaction instruction, the electronic device 110 can adjust the display style of the indication element to indicate that the interaction instruction is allowed to be triggered in response to the number of a group of virtual resources in the target resource set reaching a preset number.
[0046] As shown in FIG. 2C 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 indication element 230. For example, the electronic device 110 can apply a light-emitting special effect to the indication element 230 to highlight it, and the highlighted indication element 230 can indicate to the user that the interaction instruction can be triggered. The above-mentioned triggerable interaction instruction can be triggered automatically, for example, 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 can switch a second virtual object in 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 the target resource set associated with the first virtual object.
[0048] As shown in FIG. 2C , the electronic device 110 can consume a set of virtual resources in response to the interaction instruction. The virtual resources can be indicated by the indication element 230.
[0049] In some embodiments, the electronic device 110 can determine a target range when the electronic device 110 consumes the set of virtual resources in response to the interaction instruction. The virtual objects in the target range can be affected to switch states.
[0050] In some embodiments, the target range is determined based on a location of the first virtual object. For example, the electronic device 110 can determine the target range 250 based on the location of the virtual object 202. For example, the target range 250 can include a circular range with the location of the virtual object 202 as the center. In some examples, the virtual objects 202 and 204 in the target range 250 can be affected to switch states.
[0051] As shown in FIG. 2C , the virtual object 202 is in an active state and the virtual object 204 is in a restricted state, i.e. in this example the first state is the restricted state in which at least one first interaction ability corresponding to the active state is disabled in the restricted state. For example, a virtual object in the active state can use skills or perform attack actions and can move, whereas a virtual object in the restricted state cannot use skills or perform attack actions, but a virtual object in the restricted state can still have a movement ability, for example.
[0052] In some examples, a virtual object in the restricted state can still have a partial interaction ability, for example, can provide a field of view in the virtual environment for a team, for example, can be attacked, or share damage with a virtual object in the active state. It should be understood that a virtual object in the restricted state can also not have the ability to provide a field of view, it can also not be attacked, or in some additional examples, a virtual object in the restricted state only has a movement ability.
[0053] Alternatively or additionally, a virtual object in the restricted state can not have any interaction ability.
[0054] In some other examples, a virtual object in the restricted state can enter an inactive state after a preset time.
[0055] In some embodiments, the inactive state indicates that at least one second interaction ability corresponding to the restricted state is disabled in the inactive state. For example, the virtual object in the inactive state can not have a movement ability.
[0056] In some embodiments, after determining the target range, the electronic device 110 can perform the switching of the state for the virtual objects located in the target range. For example, as shown in FIGS. 2A and 2B, the electronic device 110 switches the virtual object 202 in the active state to the virtual object 202-1 in the limited state, and switches the virtual object 204 in the limited state to the virtual object 204-1 in the active state. FIG. 2C and FIG. 2D In some embodiments, the first virtual object and the second virtual object correspond to the same object group or different object groups. For example, as shown in FIGS. 2A and 2B, the virtual object 202 and the virtual object 204 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.
[0057] In some embodiments, the first virtual object and the second virtual object correspond to the same object group or different object groups. For example, as shown in FIGS. 2A and 2B, the virtual object 202 and the virtual object 204 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. FIG. 2C In some embodiments, the electronic device 110 can update the visual representation of the second virtual object in the virtual scene in response to the second virtual object being switched from the first state to the second state. For example, the virtual object 202 in the active state can have a visual representation in the form of a human, while the virtual object 202-1 in the limited state has a visual representation in the form of a ball. In some examples, the visual representations of the virtual objects in the active state can be different, while the visual representations of the virtual objects in the limited state can be the same.
[0058] In addition, the above-mentioned switching of the state can also be triggered by other conditions. In some embodiments, the electronic device 110 can switch a preset object from the active state to the limited state in response to a life attribute of the preset object satisfying a first preset condition. For example, the electronic device 110 can switch a virtual object from the active state to the limited state in response to the life value of the virtual object being reduced to 0 (or reduced to a preset threshold, such as 10%, below).
[0059] In some embodiments, the electronic device 110 can also switch at least one third virtual object in the target range from the active state to the limited state. For example, the above-mentioned third object can be the virtual object 202 as shown in FIG. 2A, and in addition, the above-mentioned third virtual object can 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 can switch at least one third virtual object in the target range from the active state to the limited state. The above-mentioned at least one third virtual object can include the first virtual object.
[0060] FIG. 2C In some embodiments, the electronic device 110 can also switch at least one third virtual object in the target range from the active state to the limited state. For example, the above-mentioned third object can be the virtual object 202 as shown in FIG. 2A, and in addition, the above-mentioned third virtual object can 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 can switch at least one third virtual object in the target range from the active state to the limited state. The above-mentioned at least one third virtual object can include the first virtual object.
[0061] In some embodiments, the second state is determined based on a resource type to which the target resource set corresponds, the first state and the second state correspond to different interaction capabilities. In addition, different resource types can correspond to different second states. For example, if the resource type is a first type, the second state can include an active state. In other examples, if the resource type is a second type, the second state can include an inactive state.
[0062] In some examples, as shown in FIG. 2C and FIG. 2D , the electronic device 110 can switch the second virtual object from the restricted state to the 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 the restricted state to the 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-mentioned state.
[0063] In some embodiments, as shown in FIG. 2C and FIG. 2E , the electronic device 110 can switch the second virtual object from the restricted state to the inactive state in response to the resource type being the second type. For example, as shown in FIG. 2C and FIG. 2E , the indication element 230 can use another color (e.g., red) to indicate that the resource type is the second type, and the electronic device 110 can switch the virtual object 204 to the inactive state (e.g., virtual object 204-2 in FIG. 2E ). The inactive state indicates that at least one second interaction 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 can not have the ability to move. The visual representation of the virtual object in the inactive state can 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 can also present visual effects or special effects 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 interest and convenience of the interaction in the virtual environment. Here, the embodiments of the present disclosure can also enrich the interaction experience in the virtual environment, give users more interaction options, and thus improve the user experience.
[0065] Example Process
[0066] FIG. 3A flowchart illustrating an example process 300 of interaction in a virtual scene according to some embodiments of the present disclosure is shown. The process 300 can be implemented at the electronic device 110. The process 300 is described below with reference to the electronic device 110, the virtual scene 200, and the virtual objects 210, 220, 230, 240, 250, 260, 270, 280, 290, 300, 310, 320, 330, 340, 350, 360, 370, 380, 390, 400, 410, 420, 430, 440, 450, 460, 470, 480, 490, 500, 510, 520, 530, 540, 550, 560, 570, 580, 590, 600, 610, 620, 630, 640, 650, 660, 670, 680, 690, 700, 710, 720, 730, 740, 750, 760, 770, 780, 790, 800, 810, 820, 830, 840, 850, 860, 870, 880, 890, 900, 910, 920, 930, 940, 950, 960, 970, 980, 990, 1000, 1010, 1020, 1030, 1040, 1050, 1060, 1070, 1080, 1090, 1100, 1110, 1120, 1130, 1140, 1150, 1160, 1170, 1180, 1190, 1200, 1210, 1220, 1230, 1240, 1250, 1260, 1270, 1280, 1290, 1300, 1310, 1320, 1330, 1340, 1350, 1360, 1370, 1380, 1390, 1400, 1410, 1420, 1430, 1440, 1450, 1460, 1470, 1480, 1490, 1500, 1510, 1520, 1530, 1540, 1550, 1560, 1570, 1580, 1590, 1600, 1610, 1620, 1630, 1640, 1650, 1660, 1670, 1680, 1690, 1700, 1710, 1720, 1730, 1740, 1750, 1760, 1770, 1780, 1790, 1800, 1810, 1820, 1830, 1840, 1850, 1860, 1870, 1880, 1890, 1900, 1910, 1920, 1930, 1940, 1950, 1960, 1970, 1980, 1990, and 2000 of FIGS. 1-1980 of the present disclosure. FIG. 1 A flowchart illustrating an example process 300 of interaction in a virtual scene according to some embodiments of the present disclosure is shown. The process 300 can be implemented at the electronic device 110. The process 300 is described below with reference to the electronic device 110, the virtual scene 200, and the virtual objects 210, 220, 230, 240, 250, 260, 270, 280, 290, 300, 310, 320, 330, 340, 350, 360, 370, 380, 390, 400, 410, 420, 430, 440, 450, 460, 470, 480, 490, 500, 510, 520, 530, 540, 550, 560, 570, 580, 590, 600, 610, 620, 630, 640, 650, 660, 670, 680, 690, 700, 710, 720, 730, 740, 750, 760, 770, 780, 790, 800, 810, 820, 830, 840, 850, 860, 870, 880, 890, 900, 910, 920, 930, 940, 950, 960, 970, 980, 990, 1000, 1010, 1020, 1030, 1040, 1050, 1060, 1070, 1080, 1090, 1100, 1110, 1120, 1130, 1140, 1150, 1160, 1170, 1180, 1190, 1200, 1210, 1220, 1230, 1240, 1250, 1260, 1270, 1280, 1290, 1300, 1310, 1320, 1330, 1340, 1350, 1360, 1370, 1380, 1390, 1400, 1410, 1420, 1430, 1440, 1450, 1460, 1470, 1480, 1490, 1500, 1510, 1520, 1530, 1540, 1550, 1560, 1570, 1580, 1590, 1600, 1610, 1620, 1630, 1640, 1650, 1660, 1670, 1680, 1690, 1700, 1710, 1720, 1730, 1740, 1750, 1760, 1770, 1780, 1790, 1800, 1810, 1820, 1830, 1840, 1850, 1860, 1870, 1880, 1890, 1900, 1910, 1920, 1930, 1940, 1950, 1960, 1970, 1980, 1990, and 2000 of FIGS. 1-1980 of the present disclosure.
[0067] As FIG. 3 shown, at block 310, the electronic device 110 receives an interaction instruction associated with a first virtual object in a virtual scene.
[0068] At block 320, the electronic device 110 switches 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 the interaction instruction, the second state being determined based on a resource type corresponding to the target resource set, the first state and the second state corresponding to different interactive capabilities, and different resource types corresponding to different second states.
[0069] In some embodiments, the process 300 further includes presenting, in an interaction interface of the virtual scene, an indication element corresponding to the target resource set, and a display style of the indication element being determined based on the resource type.
[0070] In some embodiments, the process 300 further includes, prior to receiving the interaction instruction, adjusting the display style of the indication element to indicate that the interaction instruction is allowed to be triggered in response to a number of the set of virtual resources in the target resource set reaching a preset number.
[0071] In some embodiments, the process 300 further includes updating a visual representation of the second virtual object in the virtual scene in response to the second virtual object being switched 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, the switching the second virtual object within the target range in the virtual scene from the first state to the second state includes switching the second virtual object from the restricted state to the active state in response to the resource type being a first type, or switching the second virtual object from the restricted state to an inactive state in response to the resource type being a second type, 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 switching the preset object from the active state to the restricted state in response to a life attribute of the preset object satisfying a first preset condition.
[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, at least one third virtual object includes a first virtual object.
[0077] In some embodiments, the target range is determined based on the location of the first virtual object.
[0078] In some embodiments, process 300 further 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, wherein the at least one interactive element corresponds to a virtual resource of a predetermined type; or updating the target resource set in response to a 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 object group or different object groups.
[0080] Example Devices and Apparatus
[0081] Embodiments of this disclosure also provide corresponding apparatus for implementing the above methods or processes. FIG. 4 A schematic structural block diagram of an example device 400 for interaction in a virtual scene according to certain 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.
[0082] like FIG. 4 As shown, the device 400 includes: a receiving module 410 configured to receive an interaction command associated with a first virtual object in a virtual scene; and a switching module 420 configured to, in response to the interaction command, 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 from a target resource set associated with the first virtual object. 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 interactive capabilities, and different resource types correspond to different second states.
[0083] In some embodiments, the device 400 further includes a presentation module configured to: present an indicator element corresponding to a target resource set in an interactive interface of a virtual scene, wherein the display style of the indicator element is determined based on the resource type.
[0084] In some embodiments, the apparatus 400 further includes an adjusting module configured to, prior to receiving the interaction instruction, in response to a number of the set of virtual resources in the target resource set reaching a preset number, adjust a 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, in response to the second virtual object switching from the first state to the second state, update a visual representation of the second virtual object in the virtual scene.
[0086] In some embodiments, the first state is a restricted state, wherein at least one first interaction 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 the restricted state to the active state, or in response to the resource type being the second type, switch the second virtual object from the restricted state to an inactive state, wherein the inactive state indicates that at least one second interaction 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 a 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 the active state to the 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 a position of the first virtual object.
[0092] In some embodiments, the updating module is further configured to, based on an interaction of the first virtual object with at least one interactive element in the virtual scene, update the target resource set, the at least one interactive element corresponding to a predetermined type of virtual resource, or in response to a virtual action acting on the first virtual object satisfying a second preset condition, update the target resource set, or in response to the first virtual object completing a preset event in the virtual scene, update the target resource set.
[0093] In some embodiments, the first virtual object and the second virtual object correspond to a same object group or different object groups.
[0094] As FIG. 5As shown, the electronic device 500 is in the form of a general electronic device. Components of the electronic device 500 can 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 can be a real or virtual processor and is capable of executing various processing in accordance with programs stored in the memory 520. In a multi-processing system, multiple processing units execute computer-executable instructions in parallel to improve the processing power of the electronic device 500.
[0095] The electronic device 500 typically includes a plurality of computer storage media. Such media can be any available media that is accessible by the electronic device 500 and includes both volatile and non-volatile media, removable and non-removable media. The 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. The storage device 530 can be a removable or non-removable media and can include machine-readable media such as a flash drive, a magnetic disk drive, or any other media that can be used to store information and / or data and that can be accessed by the electronic device 500.
[0096] The electronic device 500 can further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG. 5 FIG. 1, a magnetic disk drive for reading from or writing to a removable, non- volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk (e.g., a CD-ROM) can be provided. In such instances, each can be connected to the bus by one or more data media interfaces. The memory 520 can include a computer program product 525 having one or more program modules configured to carry out the various methods or actions of the various embodiments of the present disclosure.
[0097] The communication unit 540 enables communication with other electronic devices over communication media. Additionally, functionality of the components of the electronic device 500 can be implemented in a single computing cluster or a plurality of computer machines capable of communicating over a communication connection. As such, the 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 nodes in the networking environment.
[0098] The input device 550 can be one or more input devices, such as a mouse, a keyboard, a trackball, etc. The output device 560 can be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 500 can also communicate with one or more external devices (not shown), such as storage devices, display devices, etc., one or more devices that enable a user to interact with the electronic device 500, or any devices (e.g., a network card, a modem, etc.) that enable the electronic device 500 to communicate with one or more other electronic devices, as desired via the communication unit 540. Such communication can be carried out via an input / output (I / O) interface (not shown).
[0099] According to an example implementation of the present disclosure, a computer readable storage medium is provided having computer executable instructions stored thereon, where the computer executable instructions are executed by a processor to implement the method described above. According to an example implementation of the present disclosure, a computer program product is also provided that is tangibly stored on a non-transitory computer readable medium and includes computer executable instructions, where the computer executable instructions are executed by a processor to implement the method described above.
[0100] The computer readable program instructions can also 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 apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0101] The computer readable program instructions can also 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 apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0102] The computer readable program instructions can also 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 apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0103] The computer program product of the present disclosure can be a computer program product, which is a machine-readable medium (media) having instances of the software embodied thereon, such as computer software, firmware, wireless application protocol (WAP), middleware or microcode. For example, a computer program product can be a floppy disk, a CD-ROM, a DVD, a Blu-ray Disc™, a flash drive, a memory stick, a magnetic tape, or a hard disk drive. The machine-readable medium can be a single medium, or multiple media, of the same or different type. The computer program product can be one or more computer program components embodied in medium and / or transmission signals. The computer program product can have one or more computer program components embodied in medium and / or transmission signals.
[0104] The implementations of the disclosure have been described above with the intent to be illustrative rather than limiting. Although the implementations of the disclosure have been described with regard to one or more implementations, it will be recognized that a variety of modifications and changes can be made to these implementations without departing from the broader spirit and scope of the implementations as set forth in the preceding disclosure. For example, certain aspects of the implementations can be performed using hardware, software, and / or firmware, or any combination thereof. The above-described implementations should therefore be regarded as merely illustrative, and not as narrowing the scope of the disclosure, which is defined by the appended claims and their equivalents.
Claims
1. An interaction method in a virtual scene, comprising: Receive interaction commands associated with the first virtual object in the virtual scene; as well as In response to the interaction command, by consuming a set of virtual resources from the target resource set associated with the first virtual object, the second virtual object within the target range of the virtual scene is switched from a first state to a second state. The first virtual object and the second virtual object are virtual characters in the virtual scene. 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 interactive abilities of the virtual characters, and different resource types correspond to different second states. At least one first interactive ability corresponding to the active state is disabled in the first state.
2. The method according to claim 1, further comprising: In the interactive interface of the virtual scene, indicator elements corresponding to the target resource set are presented, and the display style of the indicator elements 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 set of virtual resources in the target resource set reaching a preset number, the display style of the indicator element is adjusted to indicate that the interaction instruction can 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, the visual representation of the second virtual object in the virtual scene is updated.
5. The method according to claim 1, wherein switching the second virtual object within the target range in the virtual scene from the first state to the second state comprises: In response to the resource type being the first type, the second virtual object is switched from the first state to the active state; or In response to the resource type being a second type, the second virtual object is switched from the first state to an inactive state, wherein the inactive state indicates that at least one second interactive capability corresponding to the first state is disabled in the inactive state.
6. The method according to claim 1, further comprising: In response to the preset object's life attributes satisfying a first preset condition, the preset object is switched from the active state to the first state.
7. The method according to claim 1, further comprising: Switch at least one third virtual object within the target range from the active state to the first state.
8. The method of claim 7, wherein the at least one third virtual object includes the first virtual object.
9. The method of claim 1, wherein the target range is determined based on the position of the first virtual object.
10. The method of claim 1, further comprising at least one of the following: Based on the interaction between the first virtual object and at least one interactive element in the virtual scene, the target resource set is updated, wherein the at least one interactive element corresponds to a virtual resource of a predetermined type; or In response to a virtual action acting on the first virtual object satisfying a second preset condition, the target resource set is updated; or In response to the first virtual object completing a preset event in the virtual scene, the target resource set is updated.
11. The method according to claim 1, wherein the first virtual object and the second virtual object correspond to the same object group or different object groups.
12. A device for interaction in a virtual scene, comprising: The receiving module is configured to receive interaction commands associated with a first virtual object in the virtual scene; as well as A switching module is configured to, in response to the interaction command, 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 from a target resource set associated with the first virtual object. The first virtual object and the second virtual object are virtual characters in the virtual scene. 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 interactive abilities of the virtual characters, and different resource types correspond to different second states. At least one first interactive ability corresponding to the active state is disabled in the first state.
13. 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, which, when executed by the at least one processing unit, cause the electronic device to perform the method according to any one of claims 1 to 11.
14. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method according to any one of claims 1 to 11.
15. A computer program product tangibly stored in a computer storage medium and comprising computer-executable instructions that, when executed by a device, cause the device to perform the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Display method and device of main body object and storage medium
CN115888096A