A method and device for adjusting a virtual object, an electronic device, and a storage medium
By displaying the attribute prompt control in the associated area of the virtual object and adjusting the attributes using continuous touch operations, the error touch problem of virtual object attribute adjustment on the small screen terminal is solved, and the operation efficiency is improved.
Patent Information
- Application Number
- CN202210824951.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-14
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-07-14
AI Technical Summary
When adjusting the properties of virtual objects in the game on a small screen terminal, it is easy to accidentally touch other attributes or virtual objects, resulting in inefficient operation.
By displaying attribute prompt controls in the associated area of the virtual object, area highlighting and adjustments are performed in response to touch operations, and attribute adjustments are completed using continuous touch operations to reduce click operations.
It avoids the problem of accidentally touching other attributes or objects, improves the efficiency of attribute adjustment, and reduces operation steps.
Smart Images

Figure CN115120963B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of games, and in particular, to a method and device for adjusting virtual objects, an electronic device, and a storage medium. Background Art
[0002] When a user needs to adjust the attributes of a virtual object in a game, the user can first click on the virtual object; at this time, multiple attribute adjustment controls can be displayed on the game interface.
[0003] Then, the user can click on the control corresponding to the attribute to be adjusted, so as to bring up the adjustment interface for the corresponding attribute, and adjust the attributes of the virtual object in the brought-up adjustment interface.
[0004] However, this way of adjusting attributes requires the user to perform multiple click operations; for a terminal with a small screen, it may accidentally touch the controls corresponding to other attributes or other virtual objects. Summary of the Invention
[0005] In view of the above problems, a method and device for adjusting virtual objects, an electronic device, and a storage medium are provided to overcome the above problems or at least partially solve the above problems, including:
[0006] A method for adjusting a virtual object, providing a graphical user interface through a terminal device, at least a part of a virtual scene is displayed in the graphical user interface, and the virtual scene includes a virtual object, the method includes:
[0007] Responding to a first touch operation on the virtual object, displaying an attribute prompt control in an associated area of the virtual object, the attribute prompt control includes more than two areas, and each area corresponds to an attribute of the virtual object respectively;
[0008] Responding to a second touch operation on an area outside the attribute prompt control, highlighting a first target area among the more than two areas according to the second touch operation, where the first target area corresponds to a first target attribute of the virtual object;
[0009] Responding to a third touch operation on an area outside the attribute prompt control, adjusting the first target attribute of the virtual object according to the third touch operation, where the third touch operation and the second touch operation are consecutive operations.
[0010] Optionally, the method further includes:
[0011] Responding to a fourth touch operation on the virtual object, selecting the virtual object;
[0012] When the virtual object is in a selected state, in response to a dragging operation on the virtual object, control the virtual object to move in the virtual scene.
[0013] Optionally, the dragging operation and the second touch operation are continuous operations, and / or
[0014] the dragging operation and the third touch operation are continuous operations.
[0015] Optionally, the first touch operation is a long-press operation.
[0016] Optionally, the method further includes:
[0017] In response to a fifth touch operation on an area outside the property prompt control, highlight a second target area among the two or more areas according to the fifth touch operation, and cancel the highlighted state of the first target area;
[0018] When the second target area is in a highlighted state, in response to a third touch operation on an area outside the property prompt control, adjust a second target property of the virtual object according to the third touch operation.
[0019] Optionally, the second touch operation is a vertical sliding operation or a long-press operation.
[0020] Optionally, the third touch operation is a horizontal sliding operation.
[0021] Optionally, the properties of the virtual object include size property and orientation property.
[0022] Optionally, the two or more areas are areas composed of two or more concentric circles.
[0023] Optionally, the displaying the property prompt control in the associated area of the virtual object includes:
[0024] Display the property prompt control at the bottom of the virtual object.
[0025] An embodiment of the present invention further provides an adjustment device for a virtual object. By means of a terminal device, an image user interface is provided, and at least a part of a virtual scene is displayed in the image user interface. The virtual scene includes a virtual object. The device includes:
[0026] A control display module, configured to, in response to a first touch operation on the virtual object, display a property prompt control in an associated area of the virtual object. The property prompt control includes two or more areas, and each area corresponds to a property of the virtual object respectively;
[0027] A first selection module, configured to respond to a second touch operation acting on an area outside the attribute prompt control, and highlight a first target area among the two or more areas according to the second touch operation, where the first target area corresponds to a first target attribute of the virtual object;
[0028] A first attribute adjustment module, configured to respond to a third touch operation acting on an area outside the attribute prompt control, and adjust the first target attribute of the virtual object according to the third touch operation, where the third touch operation and the second touch operation are continuous operations.
[0029] Optionally, the device further includes:
[0030] A movement module, configured to respond to a fourth touch operation on the virtual object to select the virtual object; when the virtual object is in a selected state, respond to a drag operation on the virtual object, and control the virtual object to move in the virtual scene.
[0031] Optionally, the drag operation and the second touch operation are continuous operations, and / or
[0032] the drag operation and the third touch operation are continuous operations.
[0033] Optionally, the first touch operation is a long-press operation.
[0034] Optionally, the device further includes:
[0035] A second selection module, configured to respond to a fifth touch operation acting on an area outside the attribute prompt control, highlight a second target area among the two or more areas according to the fifth touch operation, and cancel the highlighted state of the first target area;
[0036] A second attribute adjustment module, configured to, when the second target area is in a highlighted state, respond to a third touch operation acting on an area outside the attribute prompt control, and adjust a second target attribute of the virtual object according to the third touch operation.
[0037] Optionally, the second touch operation is a vertical sliding operation or a long-press operation.
[0038] Optionally, the third touch operation is a horizontal sliding operation.
[0039] Optionally, the attributes of the virtual object include a size attribute and an orientation attribute.
[0040] Optionally, the two or more areas are areas formed by two or more concentric circles.
[0041] Optionally, the control display module is configured to display the attribute prompt control at the bottom of the virtual object.
[0042] An embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, the adjustment method of the virtual object as described above is implemented.
[0043] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the adjustment method of the virtual object as described above is implemented.
[0044] The embodiment of the present invention has the following advantages:
[0045] In the embodiment of the present invention, a first touch operation on a virtual object may be responded to first, and an attribute prompt control is displayed in an associated area of the virtual object. The attribute prompt control includes two or more areas, and each area corresponds to an attribute of the virtual object respectively; a second touch operation on an area outside the attribute prompt control is responded to, and a first target area among the two or more areas is highlighted according to the second touch operation, where the first target area corresponds to a first target attribute of the virtual object; a third touch operation on an area outside the attribute prompt control is responded to, and the first target attribute of the virtual object is adjusted according to the third touch operation, where the third touch operation and the second touch operation are continuous operations. Through the embodiment of the present invention, when a user adjusts the attributes of a virtual object, there is no need to click on the control for adjusting the attributes, thereby avoiding the problem that other attributes or the virtual object may be accidentally touched when adjusting the attributes of the virtual object; and the adjustment of the attributes can be completed through a continuous operation, which can reduce the operations that the user needs to perform when adjusting the attributes of the virtual object; thus, the efficiency of adjusting the attributes of the virtual object is improved. Description of the Drawings
[0046] In order to more clearly illustrate the technical solutions of the present invention, the drawings required for the description of the present invention will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0047] Figure 1 is a flowchart of the steps of an adjustment method for a virtual object according to an embodiment of the present invention;
[0048] Figure 2a is a schematic diagram of an attribute prompt control according to an embodiment of the present invention;
[0049] Figure 2b It is a schematic diagram of another attribute prompt control in an embodiment of the present invention;
[0050] Figure 2c It is a schematic diagram of yet another attribute prompt control in an embodiment of the present invention;
[0051] Figure 3 It is a schematic diagram of an interaction process for performing a first touch operation in an embodiment of the present invention;
[0052] Figure 4a It is a schematic diagram of an interaction process for selecting a region in an attribute prompt control in an embodiment of the present invention;
[0053] Figure 4b It is a schematic diagram of an interaction process for adjusting the size attribute of a virtual object in an embodiment of the present invention;
[0054] Figure 4c It is a schematic diagram of yet another interaction process for adjusting the size attribute of a virtual object in an embodiment of the present invention;
[0055] Figure 5 It is a flowchart of the steps of yet another method for adjusting a virtual object in an embodiment of the present invention;
[0056] Figure 6 It is a schematic diagram of still another attribute prompt control in an embodiment of the present invention;
[0057] Figure 7a It is a schematic diagram of an interaction process for switching the selected region in an attribute prompt control in an embodiment of the present invention;
[0058] Figure 7b It is a schematic diagram of an interaction process for adjusting the orientation attribute of a virtual object in an embodiment of the present invention;
[0059] Figure 7c It is a schematic diagram of another interaction process for adjusting the orientation attribute of a virtual object in an embodiment of the present invention;
[0060] Figure 8 It is a block diagram of the structure of an adjustment device for a virtual object in an embodiment of the present invention. Detailed implementation manners
[0061] To make the above objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific implementation manners. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0062] The method of the embodiment of the present invention can run on a terminal device or a server. Among them, the terminal device can be a local terminal device. When the adjustment method of the virtual object runs on the server, the adjustment method of the virtual object can be implemented and executed based on a cloud interaction system, where the cloud interaction system includes a server and a client device.
[0063] In an optional implementation manner, various cloud applications can run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the running mode of cloud games, the running entity of the game program and the presenting entity of the game screen are separated. The storage and running of the adjustment method of the virtual object are completed on the cloud game server. The role of the client device is to receive and send data and present the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a television, a computer, a palm computer, etc.; however, the terminal device for the adjustment method of the virtual object is the cloud game server in the cloud. When playing a game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses data such as the game screen, returns it to the client device through the network, and finally, decodes and outputs the game screen through the client device.
[0064] In an optional implementation manner, the terminal device can be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present the game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally, the game program is downloaded and installed on an electronic device and run. The way the local terminal device provides the graphical user interface to the player can include various ways. For example, it can be rendered and displayed on the display screen of the terminal, or provided to the player through holographic projection. For example, the local terminal device can include a display screen and a processor. The display screen is used to present the graphical user interface, and the graphical user interface includes a game screen. The processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0065] Referring to Figure 1 , a step flowchart of an adjustment method for a virtual object according to an embodiment of the present invention is shown. An image user interface can be provided through a terminal device. At least part of a virtual scene can be displayed in the image user interface. The virtual scene can refer to a virtual scene provided by an application program (such as a character attribute setting scene, a prop placement setting scene); the virtual scene can include a virtual object, and the virtual object can be an object in the virtual scene, such as a character or an item in a game;
[0066] Specifically, it can include the following steps:
[0067] Step 101: In response to a first touch operation on a virtual object, display an attribute prompt control in the associated area of the virtual object. The attribute prompt control includes more than two areas, and each area corresponds to an attribute of the virtual object respectively.
[0068] Among them, the attribute prompt control may include more than two areas; the more than two areas may be areas composed of more than two concentric circles (such as Figure 2a ), or may be areas composed of more than two non-concentric circles (such as Figure 2b ); of course, it may also be areas of other shapes, such as areas composed of more than two squares (such as Figure 2c ), and the embodiments of the present invention do not limit this.
[0069] Each area in the attribute prompt control may correspond to an attribute of the virtual object; the attribute prompt control can be used to prompt the user which attribute of the virtual object is being adjusted currently; the attributes of the virtual object may include size attributes, orientation attributes, and may also include other attributes, such as: color attributes, and the embodiments of the present invention do not limit this.
[0070] When the user wants to adjust the attributes of a virtual object in a virtual scene, a first touch operation can be performed on the virtual object first; the first touch operation can be a click operation, a swipe operation, a long press operation, etc., and the embodiments of the present invention do not limit this.
[0071] Such as Figure 3 , the user can click on the virtual object 310 in the virtual scene 300 to perform a first touch operation on the virtual object.
[0072] After receiving the first touch operation on the virtual object, an attribute prompt control for the virtual object can be displayed in the pre-set associated area for the virtual object. For example: the attribute prompt control can be displayed around the virtual object, or the attribute prompt control can be displayed in a fixed area of the graphical user interface, and the embodiments of the present invention do not limit this.
[0073] Step 102: In response to a second touch operation on an area other than the attribute prompt control, highlight a first target area among the more than two areas according to the second touch operation, where the first target area corresponds to a first target attribute of the virtual object.
[0074] Among them, the second touch operation can be a vertical swipe operation or a long press operation.
[0075] In practical applications, when a user needs to adjust the attributes of a virtual object, the user can click on the control corresponding to the attribute. However, when the operable area is small, the user may click on the control corresponding to an attribute that does not need to be adjusted, or click on other virtual objects.
[0076] To avoid accidental touches by the user, embodiments of the present invention can complete the adjustment of the attributes of a virtual object through a coherent interaction operation.
[0077] Specifically, when a user needs to adjust an attribute of a virtual object, a second touch operation can be performed in an area outside the attribute prompt control.
[0078] During the second touch operation, the terminal device can sequentially highlight one area among two or more areas. For example, if the two or more areas include area A and area B, area A among the two or more areas can be highlighted first, then the highlighting of area A is cancelled, and area B is highlighted; then the highlighting of area B is cancelled, and area A is highlighted again...
[0079] When the attribute corresponding to the highlighted area is the area that the user wants to adjust for the virtual object, the user can complete the second touch operation. For example, when the second touch operation is a long-press operation, the long-press can be stopped to complete the second touch operation; when the second touch operation is a vertical sliding operation, the sliding can be stopped to complete the second touch operation.
[0080] At this time, the terminal device can respond to the second touch operation on the area outside the attribute prompt control and highlight the first target area among the two or more areas in the attribute prompt control, so as to let the user know which attribute of the virtual object is about to be adjusted currently.
[0081] For example, if the user wants to adjust the size of a virtual object, during the execution of the second touch operation, if the area corresponding to the size attribute is highlighted, the user can stop continuing to execute the second touch operation to complete the second touch operation. At this time, the area corresponding to the size attribute will be highlighted as the first target area, and the size attribute will also be the first target attribute.
[0082] Step 103: Respond to a third touch operation on the area outside the attribute prompt control, and adjust the first target attribute of the virtual object according to the third touch operation, where the third touch operation and the second touch operation are continuous operations.
[0083] Among them, the third touch operation can be a horizontal sliding operation; the horizontal direction and the vertical direction can be in a relationship of 90° to each other.
[0084] After selecting the first target attribute, the user can perform a third touch operation in the area outside the attribute prompt control to adjust the first target attribute of the virtual object.
[0085] Specifically, after the user performs the second touch operation / long presses the second touch operation in the vertical direction, the user can directly perform the third touch operation, which is a horizontal sliding operation, in the area outside the attribute prompt control, so as to complete attribute selection and attribute adjustment through a continuous operation.
[0086] Such as Figure 4a , by default, the attribute prompt control 400 does not highlight any area; after the user performs the second touch operation of sliding upward in the vertical direction, the first target area 410 is highlighted.
[0087] Such as Figure 4b , the first target attribute corresponding to the first target area 410 is the size attribute; when the first target area 410 is highlighted, perform the third touch operation of sliding left in the horizontal direction to shrink the virtual object 420.
[0088] Such as Figure 4c , the first target attribute corresponding to the first target area 410 is the size attribute; when the first target area 410 is highlighted, perform the third touch operation of sliding right in the horizontal direction to enlarge the virtual object 420.
[0089] In response to the third touch operation, the terminal device can adjust the first target attribute of the virtual object. Specifically, different orientations in the horizontal direction can be preset to correspond to different adjustment operations. For example: if the third touch operation is in the left horizontal direction, then perform an adjustment operation to increase the first target attribute of the virtual object; if the third touch operation is in the right horizontal direction, then perform an adjustment operation to decrease the first target attribute of the virtual object; the specific correspondence and adjustment ratio can be set according to the actual situation, and the embodiments of the present invention do not limit this.
[0090] In an embodiment of the present invention, a first touch operation on a virtual object may be responded to first, and an attribute prompt control is displayed in an associated area of the virtual object. The attribute prompt control includes more than two areas, and each area corresponds to an attribute of the virtual object respectively; a second touch operation on an area outside the attribute prompt control is responded to, and a first target area among the more than two areas is highlighted according to the second touch operation, where the first target area corresponds to a first target attribute of the virtual object; a third touch operation on an area outside the attribute prompt control is responded to, and the first target attribute of the virtual object is adjusted according to the third touch operation, where the third touch operation and the second touch operation are consecutive operations. Through the embodiment of the present invention, when a user adjusts the attributes of a virtual object, there is no need to click on the control for adjusting the attributes anymore, thereby avoiding the problem that other attributes or the virtual object may be accidentally touched when adjusting the attributes of the virtual object; and the adjustment of the attributes can be completed through a continuous operation, which can reduce the operations that the user needs to perform when adjusting the attributes of the virtual object; thus, the efficiency of adjusting the attributes of the virtual object is improved.
[0091] Referring to Figure 5 , a step flowchart of another method for adjusting a virtual object according to an embodiment of the present invention is shown, and may include the following steps:
[0092] Step 501, respond to a first touch operation on a virtual object, and display an attribute prompt control at the bottom of the virtual object.
[0093] When a user wants to adjust the attributes of a virtual object in a virtual scene, a first touch operation may be performed on the virtual object first.
[0094] After receiving the first touch operation on the virtual object, an attribute prompt control for the virtual object may be displayed in a preset associated area for the virtual object.
[0095] Specifically, the attribute prompt control may be displayed at the bottom of the virtual object; the bottom may be the bottom of the virtual object relative to the virtual scene, such as Figure 6 , a virtual object 610 is displayed in a virtual scene 600, and the attribute prompt control 620 may be displayed at the bottom of the virtual object 610.
[0096] Step 502, respond to a second touch operation on an area outside the attribute prompt control, and highlight a first target area among the more than two areas according to the second touch operation.
[0097] When a user needs to adjust an attribute of a virtual object, a second touch operation may be performed in an area outside the attribute prompt control.
[0098] During the process of performing the second touch operation, the terminal device can sequentially highlight one area among two or more areas.
[0099] When the attribute corresponding to the highlighted area is the area where the user wants to adjust the virtual object, the user can complete the second touch operation.
[0100] At this time, the terminal device can respond to the second touch operation on the area outside the attribute prompt control, and highlight the first target area among two or more areas in the attribute prompt control, so as to let the user know which attribute of the virtual object is about to be adjusted currently.
[0101] Step 503: Respond to the third touch operation on the area outside the attribute prompt control, and adjust the first target attribute of the virtual object according to the third touch operation.
[0102] After selecting the first target attribute, the user can perform a third touch operation on the area outside the attribute prompt control to adjust the first target attribute of the virtual object.
[0103] Specifically, the user can perform a third touch operation that is a horizontal sliding operation on the area outside the attribute prompt control, to be different from the second touch operation for selecting an attribute. In response to the third touch operation, the terminal device can adjust the first target attribute of the virtual object.
[0104] Step 504: Respond to the fourth touch operation on the virtual object, and select the virtual object.
[0105] In practical applications, the user may need to change the position of the virtual object in the virtual scene; at this time, the user can perform a fourth touch operation on the virtual object; the fourth touch operation can be an operation different from the first touch operation. For example, the pressing force of the first touch operation is different from the pressing force of the fourth touch operation, and the embodiments of the present invention do not limit this.
[0106] In response to the fourth touch operation on the virtual object, the terminal device can select the virtual object in the virtual scene.
[0107] As an example, there can be multiple virtual objects in the virtual scene; therefore, the virtual object targeted by the fourth touch operation can be used as the target virtual object, and its state can be set to the selected state.
[0108] In order to prompt the user that the virtual object is selected, the display state of the virtual object can be changed. For example: highlighting the virtual object, jittering the display of the virtual object, and the embodiments of the present invention do not limit this.
[0109] Step 505: When the virtual object is in a selected state, in response to a drag operation on the virtual object, control the virtual object to move in the virtual scene.
[0110] When the virtual object is in a selected state, the user can perform a drag operation on the virtual object to change the position of the virtual object in the virtual scene; specifically, the terminal device can, in response to the drag operation, control the virtual object to move in the virtual scene.
[0111] When the drag operation ends, the movement of the virtual object can be stopped and the virtual object can be fixed at the current position.
[0112] In an embodiment of the present invention, in order to reduce the operations required for the user to adjust the attributes of the virtual object and move the position of the virtual object, the adjustment of the attributes of the virtual object and the movement of the position can be completed with a coherent gesture operation. Specifically, the drag operation can be a continuous operation with the second touch operation, and / or the drag operation can be a continuous operation with the third touch operation.
[0113] For example: after the user performs the second touch operation, the touch position can be adjusted to perform a fourth touch operation on the virtual object to select the virtual object; then, without lifting the finger from the terminal device, the drag operation can be continued to move the position of the virtual object in the virtual scene.
[0114] Also for example: after the user performs the third touch operation, the touch position can be adjusted to perform a fourth touch operation on the virtual object to select the virtual object; then, without lifting the finger from the terminal device, the drag operation can be continued to move the position of the virtual object in the virtual scene terminal.
[0115] Step 506: In response to a fifth touch operation on an area other than the attribute prompt control, highlight a second target area in two or more areas according to the fifth touch operation, and cancel the highlighted state of the first target area.
[0116] When the user adjusts the first target attribute of the virtual object to the target value, it may be necessary to adjust other attributes of the virtual object; at this time, the user can perform a fifth touch operation on an area other than the attribute prompt control; for example: long-pressing again on an area other than the attribute prompt control, or sliding again in the vertical direction on an area other than the attribute prompt control, and the embodiments of the present invention do not limit this.
[0117] After the user performs the fifth touch operation on an area other than the attribute prompt control, the terminal device can, in response to the fifth touch operation, cancel the highlighted state of the first target area and highlight the second target area in two or more areas.
[0118] For example, when the user wants to adjust the orientation attribute of the virtual object after adjusting the size attribute of the virtual object, the user can perform a fifth touch operation in the area outside the attribute prompt control. During the execution of the fifth touch operation, the terminal device can start from the first target area corresponding to the size attribute and sequentially highlight one area among two or more areas. When the attribute corresponding to the highlighted area is the orientation attribute, the user can complete the fifth touch operation. At this time, the terminal device can respond to the fifth touch operation applied to the area outside the attribute prompt control, use the orientation attribute as the second target attribute, use the area corresponding to the orientation attribute as the second target area, and highlight the second target area.
[0119] For example Figure 7a , after the user performs a fifth touch operation of swiping down vertically in the area outside the attribute prompt control, the second target area 720 can be highlighted, and the highlighting state of the first target area 710 can be cancelled.
[0120] Step 507: When the second target area is in the highlighted state, respond to the third touch operation applied to the area outside the attribute prompt control, and adjust the second target attribute of the virtual object according to the third touch operation.
[0121] When the second target area is in the highlighted state, the user can re-perform the third touch operation in the area outside the attribute prompt control to adjust the second target attribute of the virtual object.
[0122] When the user finishes performing the third touch operation in the area outside the attribute prompt control, the terminal device can respond to the third touch operation and adjust the second target attribute of the virtual object; the specific adjustment process is similar to the adjustment process of the first target attribute and will not be elaborated here.
[0123] For example Figure 7b , the second target attribute corresponding to the second target area 720 is the orientation attribute; when the second target area 720 is highlighted, perform a third touch operation of swiping left horizontally to adjust the orientation of the virtual object 730 to the left.
[0124] For example Figure 7c , the second target attribute corresponding to the second target area 720 is the orientation attribute; when the second target area 720 is highlighted, perform a third touch operation of swiping right horizontally to adjust the orientation of the virtual object 730 to the right.
[0125] As an example, the first touch operation, the second touch operation, the third touch operation, the fourth touch operation, the fifth touch operation, and the drag operation in the embodiments of the present invention may be a continuous operation to further reduce the operations that the user needs to perform when adjusting the attributes and positions of virtual objects; they may also be relatively independent operations respectively, and the embodiments of the present invention do not limit this.
[0126] Hereinafter, an adjustment method for a virtual object according to an embodiment of the present invention will be exemplified:
[0127] a. Click to select the virtual object. At this time, the virtual object is in a selected state, and dragging can adjust the position of the virtual object in the virtual scene.
[0128] b. Long-press the virtual object, and property prompt controls in the form of two concentric rings appear at the bottom of the virtual object: the inner ring corresponds to the size property, and the outer ring corresponds to the orientation property.
[0129] c. Switch the control ring operation:
[0130] Long-press to pop up the property prompt control (default no selection).
[0131] Slightly move up and down to adjust the selection state of different areas in the property prompt control.
[0132] d. Select the property to be adjusted:
[0133] Swipe left and right to adjust the property of the virtual object.
[0134] When it comes to the size property, swiping left shrinks the virtual object, and swiping right enlarges the virtual object.
[0135] When it comes to the orientation property, rotate around the Z-axis with the center of the virtual object as the origin and turn left and right.
[0136] In an embodiment of the present invention, a first touch operation on a virtual object may be responded to first, and an attribute prompt control may be displayed at the bottom of the virtual object; a second touch operation on an area outside the attribute prompt control may be responded to, and a first target area among two or more areas may be highlighted according to the second touch operation; a third touch operation on an area outside the attribute prompt control may be responded to, and a first target attribute of the virtual object may be adjusted according to the third touch operation; a fourth touch operation on the virtual object may be responded to, and the virtual object may be selected; when the virtual object is in a selected state, a drag operation on the virtual object may be responded to, and the virtual object may be controlled to move in the virtual scene; a fifth touch operation on an area outside the attribute prompt control may be responded to, and a second target area among two or more areas may be highlighted according to the fifth touch operation, and the highlighted state of the first target area may be cancelled; when the second target area is in a highlighted state, a third touch operation on an area outside the attribute prompt control may be responded to, and a second target attribute of the virtual object may be adjusted according to the third touch operation. Through the embodiment of the present invention, when a user adjusts the attributes of a virtual object, there is no need to click on the control for adjusting the attributes anymore, thereby avoiding the problem that other attributes or the virtual object may be accidentally touched when adjusting the attributes of the virtual object; and the adjustment of the attributes can be completed through a continuous operation, which can reduce the operations that the user needs to perform when adjusting the attributes of the virtual object; thus, the efficiency of adjusting the attributes of the virtual object is improved.
[0137] Moreover, the adjustment of the attributes and the movement of the position of the virtual object can be completed with a coherent gesture operation, which can reduce the operations that the user needs to perform to adjust the attributes of the virtual object and move the position of the virtual object, thereby improving the efficiency of adjusting the attributes and the position of the virtual object.
[0138] It should be noted that, for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequence, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential for the embodiments of the present invention.
[0139] Referring to Figure 8 , a schematic structural diagram of an adjustment device for a virtual object according to an embodiment of the present invention is shown. An image user interface is provided through a terminal device, and at least a part of the virtual scene is displayed in the image user interface, and the virtual scene includes a virtual object;
[0140] Specifically, it may include the following modules:
[0141] A control display module 801, configured to respond to a first touch operation on a virtual object, and display an attribute prompt control in an associated area of the virtual object. The attribute prompt control includes two or more areas, and each area corresponds to an attribute of the virtual object respectively.
[0142] A first selection module 802, configured to respond to a second touch operation on an area outside the attribute prompt control, and highlight a first target area among the two or more areas according to the second touch operation, where the first target area corresponds to a first target attribute of the virtual object.
[0143] A first attribute adjustment module 803, configured to respond to a third touch operation on an area outside the attribute prompt control, and adjust the first target attribute of the virtual object according to the third touch operation, where the third touch operation and the second touch operation are continuous operations.
[0144] In a preferred embodiment of the embodiment of the present invention, the device further includes:
[0145] A movement module, configured to respond to a fourth touch operation on the virtual object to select the virtual object; when the virtual object is in a selected state, respond to a drag operation on the virtual object, and control the virtual object to move in the virtual scene.
[0146] In a preferred embodiment of the embodiment of the present invention, the drag operation and the second touch operation are continuous operations, and / or
[0147] the drag operation and the third touch operation are continuous operations.
[0148] In a preferred embodiment of the embodiment of the present invention, the first touch operation is a long press operation.
[0149] In a preferred embodiment of the embodiment of the present invention, the device further includes:
[0150] A second selection module, configured to respond to a fifth touch operation on an area outside the attribute prompt control, and highlight a second target area among the two or more areas according to the fifth touch operation, and cancel the highlighted state of the first target area;
[0151] A second attribute adjustment module, configured to, when the second target area is in a highlighted state, respond to a third touch operation on an area outside the attribute prompt control, and adjust the second target attribute of the virtual object according to the third touch operation.
[0152] In a preferred embodiment of the embodiment of the present invention, the second touch operation is a vertical sliding operation or a long press operation.
[0153] In a preferred embodiment of the embodiment of the present invention, the third touch operation is a horizontal sliding operation.
[0154] In a preferred embodiment of the embodiment of the present invention, the attributes of the virtual object include a size attribute and an orientation attribute.
[0155] In a preferred embodiment of the embodiment of the present invention, two or more regions are regions formed by two or more concentric circles.
[0156] In a preferred embodiment of the embodiment of the present invention, the control display module 801 is configured to display an attribute prompt control at the bottom of the virtual object.
[0157] In the embodiment of the present invention, a first touch operation on the virtual object may be responded to first, and an attribute prompt control is displayed in the associated area of the virtual object. The attribute prompt control includes two or more regions, and each region corresponds to an attribute of the virtual object respectively; a second touch operation on an area outside the attribute prompt control is responded to, and a first target region in the two or more regions is highlighted according to the second touch operation, where the first target region corresponds to a first target attribute of the virtual object; a third touch operation on an area outside the attribute prompt control is responded to, and the first target attribute of the virtual object is adjusted according to the third touch operation, where the third touch operation and the second touch operation are consecutive operations. Through the embodiment of the present invention, when the user adjusts the attributes of the virtual object, there is no need to click on the control for adjusting the attributes, thereby avoiding the problem that other attributes or the virtual object may be accidentally touched when adjusting the attributes of the virtual object; and the adjustment of the attributes can be completed through a continuous operation, which can reduce the operations that the user needs to perform when adjusting the attributes of the virtual object; thus, the efficiency of adjusting the attributes of the virtual object is improved.
[0158] The embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, the above method for adjusting the virtual object is implemented.
[0159] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor, the above method for adjusting the virtual object is implemented.
[0160] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiment.
[0161] Each embodiment in this specification is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the embodiments can be referred to each other.
[0162] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, an apparatus, or a computer program product. Therefore, the embodiments of the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program code.
[0163] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing terminal devices generate a device for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0164] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device that implements the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0165] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, such that a series of operation steps are executed on the computer or other programmable terminal device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0166] Although the preferred embodiments of the embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they know the basic creative concepts. Therefore, the appended claims are intended to be construed as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present invention.
[0167] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising the said element.
[0168] The above provides a detailed introduction to a method and apparatus for adjusting a virtual object, an electronic device and a storage medium. In this text, specific examples are used to elaborate on the principles and implementation manners of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present invention.
Claims
1. A method for adjusting a virtual object, characterized in that, Provide an image user interface through a terminal device. At least part of a virtual scene is displayed in the image user interface, and the virtual scene includes virtual objects. The method includes: In response to a first touch operation on the virtual object, display an attribute prompt control in the associated area of the virtual object. The attribute prompt control includes more than two areas, and each area corresponds to an attribute of the virtual object respectively; In response to a second touch operation on an area other than the attribute prompt control, during the second touch operation, sequentially highlight one target area among the more than two areas. When the first highlighted target area is the area where the user wants to adjust the virtual object, complete the second touch operation, where the first target area corresponds to the first target attribute of the virtual object; In response to a third touch operation on an area other than the attribute prompt control, adjust the first target attribute of the virtual object according to the third touch operation, where the third touch operation and the second touch operation are continuous operations.
2. The method according to claim 1, wherein The method further includes: In response to a fourth touch operation on the virtual object, select the virtual object; When the virtual object is in a selected state, in response to a drag operation on the virtual object, control the virtual object to move in the virtual scene.
3. The method according to claim 2, wherein The drag operation and the second touch operation are continuous operations, and / or The drag operation and the third touch operation are continuous operations.
4. The method according to claim 1, wherein The first touch operation is a long-press operation.
5. The method according to claim 1, characterized in that, The method further includes: In response to a fifth touch operation on an area other than the attribute prompt control, highlight a second target area among the more than two areas according to the fifth touch operation, and cancel the highlighted state of the first target area; When the second target area is in a highlighted state, in response to a third touch operation on an area other than the attribute prompt control, adjust the second target attribute of the virtual object according to the third touch operation.
6. The method according to claim 1, wherein The second touch operation is a vertical sliding operation or a long-press operation.
7. The method according to claim 1, characterized in that, The third touch operation is a horizontal sliding operation.
8. The method according to claim 1, wherein The attributes of the virtual object include size attribute and orientation attribute.
9. The method according to claim 1, characterized in that The more than two areas are areas composed of more than two concentric circles.
10. The method according to claim 1, wherein The displaying the attribute prompt control in the associated area of the virtual object includes: Display the attribute prompt control at the bottom of the virtual object.
11. An adjustment device for a virtual object, characterized in that, Provide an image user interface through a terminal device. At least part of a virtual scene is displayed in the image user interface, and the virtual scene includes virtual objects. The device includes: A control display module, configured to display an attribute prompt control in the associated area of the virtual object in response to a first touch operation on the virtual object. The attribute prompt control includes more than two areas, and each area corresponds to an attribute of the virtual object respectively; A first selection module, configured to respond to a second touch operation acting on an area outside the property prompt control, and during the process of the second touch operation, sequentially highlight a target area among the two or more areas. When the highlighted first target area is the area where the user wants to adjust the virtual object, the second touch operation is completed, wherein the first target area corresponds to a first target property of the virtual object. A first property adjustment module, configured to respond to a third touch operation acting on an area outside the property prompt control, and adjust the first target property of the virtual object according to the third touch operation, wherein the third touch operation and the second touch operation are continuous operations.
12. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the method for adjusting a virtual object according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is executed by the processor, it implements the method for adjusting a virtual object according to any one of claims 1 to 10.
Citation Information
Patent Citations
Control response method and device for game
CN110639203A
Display control method and device in game
CN111773695A