CN114721566B - Virtual object control method and device, storage medium and equipment - Google Patents

Virtual object control method and device, storage medium and equipment Download PDF

Info

Publication number
CN114721566B
CN114721566B CN202210375216.0A CN202210375216A CN114721566B CN 114721566 B CN114721566 B CN 114721566B CN 202210375216 A CN202210375216 A CN 202210375216A CN 114721566 B CN114721566 B CN 114721566B
Authority
CN
China
Prior art keywords
instruction
area
sub
region
sliding operation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210375216.0A
Other languages
Chinese (zh)
Other versions
CN114721566A (en
Inventor
梁怡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Shanghai Network Co ltd
Original Assignee
Netease Shanghai Network Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Shanghai Network Co ltd filed Critical Netease Shanghai Network Co ltd
Priority to CN202210375216.0A priority Critical patent/CN114721566B/en
Publication of CN114721566A publication Critical patent/CN114721566A/en
Application granted granted Critical
Publication of CN114721566B publication Critical patent/CN114721566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/533Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The disclosure relates to the technical field of computers, and provides a control method of a virtual object, a control device of the virtual object, a computer storage medium and electronic equipment, wherein the control method of the virtual object comprises the following steps: providing a preset control through a graphical user interface; responding to a first operation acting on a preset control, and displaying a ring menu; the annular menu comprises an instruction distribution area and an expansion area, wherein the instruction distribution area comprises a plurality of instruction sub-areas, and the instruction distribution area is used for configuring corresponding instructions; responding to a second operation acting on the expansion area, determining a target instruction corresponding to the second operation, setting the target instruction as a shortcut instruction, wherein the target instruction is one instruction of the instructions configured by a plurality of instruction subregions; and responding to a third operation acting on the preset control, and controlling the virtual object to execute the shortcut instruction, wherein the third operation is different from the first operation. The method and the device enable the user to quickly set and trigger the shortcut instruction, and improve the interactive operation efficiency.

Description

Virtual object control method and device, storage medium and equipment
Technical Field
The disclosure relates to the field of computer technology, and in particular, to a control method of a virtual object, a control device of the virtual object, a computer storage medium and electronic equipment.
Background
With rapid development and progress of computer and internet technologies, new menu styles are presented, such as: the ring menu can be used for placing a plurality of options with the same property, and a user can trigger the operation corresponding to the option by touching and moving the options and then releasing the options.
However, in some specific interaction scenarios, such as a latent hand tour, the user needs to frequently execute a certain operation in a short time, so the operation manner of moving and releasing the contact is not convenient enough, and the operation efficiency is low.
In view of this, there is a need in the art to develop a new control method and apparatus for virtual objects.
It should be noted that the information disclosed in the foregoing background section is only for enhancing understanding of the background of the present disclosure.
Disclosure of Invention
The disclosure aims to provide a control method of a virtual object, a control device of the virtual object, a computer storage medium and an electronic device, so that the problem of low operation efficiency of a related annular menu under a specific interaction scene is avoided at least to a certain extent.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to a first aspect of the present disclosure, there is provided a control method of a virtual object, providing, by a terminal device, a graphical user interface including at least a part of a virtual scene and a virtual object located in the virtual scene, the method comprising: providing a preset control through the graphical user interface; responding to a first operation acting on the preset control, and displaying a ring menu; the annular menu comprises an instruction distribution area and an expansion area, wherein the instruction distribution area comprises a plurality of instruction sub-areas, and the instruction distribution area is used for configuring corresponding instructions; responding to a second operation acting on the expansion area, determining a target instruction corresponding to the second operation, and setting the target instruction as a shortcut instruction, wherein the target instruction is one instruction of the instructions configured by the plurality of instruction subregions; and responding to a third operation acting on the preset control, and controlling the virtual object to execute the shortcut instruction, wherein the third operation is different from the first operation.
In an exemplary embodiment of the present disclosure, the extension area includes a plurality of extension sub-areas, and a preset mapping relationship is provided between the plurality of extension sub-areas and the plurality of instruction sub-areas; the response to the second operation acting on the expansion area determines a target instruction corresponding to the second operation, including: responding to a second operation acting on the extended sub-region, and determining a first instruction sub-region with a mapping relation with the extended sub-region; and determining an instruction corresponding to the first instruction sub-region as the target instruction.
In an exemplary embodiment of the present disclosure, the annular menu further includes a center region; after displaying the annular menu, the method further comprises: and responding to the sliding operation acting on the central area and the second instruction sub-area, and controlling the virtual object to execute the instruction corresponding to the second instruction sub-area.
In an exemplary embodiment of the present disclosure, a sliding operation acting on the center region and the second instruction sub-region includes: a sliding operation with any point in the center area as a starting point and any point in the second instruction sub-area as an ending point; or, a sliding operation starting from any point in the second instruction subregion and ending at any point in the central region.
In an exemplary embodiment of the present disclosure, the method further comprises: and responding to the dragging operation from the extended sub-region to a third instruction sub-region with a mapping relation, and controlling the virtual object to execute the instruction corresponding to the third instruction sub-region.
In an exemplary embodiment of the present disclosure, the method further comprises:
providing an enlarged icon of the annular menu through the graphical user interface; and the enlarged icon is used for carrying out enlarged display on the annular menu.
In an exemplary embodiment of the present disclosure, after providing the enlarged icon of the ring menu, the method further includes: responding to a long-press operation acting on any expansion sub-region on the annular menu, and determining the position of a touch point of the long-press operation; acquiring a mapping position of the touch point on the enlarged icon, and displaying a movable cursor at the mapping position; controlling the movable cursor to synchronously move on the enlarged icon in response to a dragging operation continuous to the long-press operation; and when the movable cursor moves to a third instruction sub-region with a mapping relation with the extension sub-region, controlling the virtual object to execute an instruction corresponding to the third instruction sub-region.
In an exemplary embodiment of the present disclosure, the first operation includes a long press operation, and the third operation includes a click operation.
In an exemplary embodiment of the present disclosure, the method further comprises: receiving a position adjustment operation for the ring menu; and updating the display position of the annular menu according to the position adjustment operation.
In an exemplary embodiment of the present disclosure, the ring menu further includes a center area, and after updating the display position of the ring menu, the method further includes: responding to the instruction distribution area or the expansion area exceeding a display interface, and predicting a passing area and a termination area of the sliding operation according to the sliding operation acted on the central area; responding to the fact that the passing area is a fourth instruction subarea in the instruction distribution area, and the ending area is the fourth instruction subarea, and triggering an instruction corresponding to the fourth instruction subarea; and setting an instruction corresponding to the fourth instruction sub-region as a shortcut instruction in response to the passing-through region being the fourth instruction sub-region and the extension region, and the termination region being the extension region.
In an exemplary embodiment of the present disclosure, the predicting a passing area and a termination area of the sliding operation according to the sliding operation applied to the center area includes: acquiring the direction and the speed of the sliding operation; predicting a passing area of the sliding operation according to the direction of the sliding operation; and predicting a termination area of the sliding operation according to the speed of the sliding operation.
In an exemplary embodiment of the present disclosure, the predicting a passing area of the sliding operation according to a direction of the sliding operation includes: acquiring an included angle between the sliding operation direction and a preset reference direction; and determining the passing area of the sliding operation according to the included angle range of the included angle and the included angle range corresponding to each prestored subarea.
In an exemplary embodiment of the present disclosure, the predicting a termination area of the sliding operation according to a rate of the sliding operation includes: determining a termination area of the sliding operation as the instruction distribution area in response to the speed of the sliding operation being less than or equal to the preset speed threshold; and determining a termination area of the sliding operation as the expansion area in response to the speed of the sliding operation being greater than the preset speed threshold.
According to a second aspect of the present disclosure, there is provided a control apparatus for a virtual object, by which apparatus a graphical user interface is provided, the graphical user interface comprising at least a part of a virtual scene and a virtual object located in the virtual scene, the apparatus comprising: the control providing module is used for providing a preset control through the graphical user interface; the menu display module is used for responding to a first operation acted on the preset control and displaying an annular menu; the annular menu comprises an instruction distribution area and an expansion area, wherein the instruction distribution area comprises a plurality of instruction sub-areas, and the instruction distribution area is used for configuring corresponding instructions; the setting module is used for responding to a second operation acting on the expansion area, determining a target instruction corresponding to the second operation, setting the target instruction as a shortcut instruction, and setting the target instruction as one of the instructions configured by the plurality of instruction subregions; and the instruction execution module is used for responding to a third operation acted on the preset control, and controlling the virtual object to execute the shortcut instruction, wherein the third operation is different from the first operation.
According to a third aspect of the present disclosure, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the method of controlling a virtual object described in the first aspect above.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the control method of the virtual object according to the first aspect described above via execution of the executable instructions.
As can be seen from the above technical solutions, the control method of the virtual object, the control device of the virtual object, the computer storage medium, and the electronic device in the exemplary embodiments of the present disclosure have at least the following advantages and positive effects:
in the technical solutions provided in some embodiments of the present disclosure, on one hand, a preset control is provided through a graphical user interface, and in response to a first operation acting on the preset control, an annular menu including an instruction distribution area (for configuring an instruction and including a plurality of instruction sub-areas) and an extension area is displayed, so that triggering of a plurality of different instructions can be implemented only through the annular menu, and diversity of instructions displayed on the graphical user interface is improved. Further, in response to a second operation acting on the expansion area, determining a target instruction corresponding to the second operation, and setting the target instruction as a shortcut instruction, a new interactive operation mode based on a ring menu is provided, so that a user can set a commonly used instruction of the user as the shortcut instruction in a game, and the method accords with personal operation habits and strategic habits of the user. On the other hand, the virtual object is controlled to execute the shortcut instruction in response to the third operation on the preset control, so that the user can quickly trigger the shortcut instruction only through simple touch operation, interactive steps are reduced, and interactive operation efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
Fig. 1 is a flowchart illustrating a control method of a virtual object in an embodiment of the disclosure;
FIG. 2 illustrates a schematic diagram of a ring menu in an embodiment of the present disclosure;
FIG. 3 shows a schematic diagram of another ring menu in an embodiment of the present disclosure;
FIG. 4 is a flow chart illustrating determining a target instruction corresponding to a second operation according to an embodiment of the disclosure;
FIG. 5 shows a schematic diagram of displaying magnified icons on a graphical user interface in an embodiment of the present disclosure;
FIG. 6 illustrates a schematic view of an extended area beyond a display interface in an embodiment of the present disclosure;
FIG. 7 is a schematic diagram illustrating the indication of the distribution area beyond the display interface in an embodiment of the present disclosure;
FIG. 8 illustrates a flow diagram for implementing different operational objectives according to a sliding operation applied to a center region in an embodiment of the present disclosure;
fig. 9 is a schematic flow chart of predicting a passing area of a sliding operation according to a direction of the sliding operation in the embodiment of the present disclosure;
FIG. 10 illustrates a flow diagram of predicting a termination region of a sliding operation based on a rate of the sliding operation in an embodiment of the disclosure;
fig. 11 illustrates a schematic configuration diagram of a control apparatus of a virtual object in an exemplary embodiment of the present disclosure;
fig. 12 shows a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
The terms "a," "an," "the," and "said" are used in this specification to denote the presence of one or more elements/components/etc.; the terms "comprising" and "having" are intended to be inclusive and mean that there may be additional elements/components/etc. in addition to the listed elements/components/etc.; the terms "first" and "second" and the like are used merely as labels, and are not intended to limit the number of their objects.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities.
A ring menu is an efficient selection panel, typically placing a set of options with the same properties, that upon pressing move onto a menu option, release triggers the corresponding operation of that menu item. The ring menu may load actions, expressions, etc. for intra-office communication. However, the existing ring menu has the following drawbacks:
first, it is difficult to trigger actions quickly. In the diving type asymmetric athletic hand tour, the interaction requirement of a user on a menu is high, the menu is quick and convenient enough, but the directivity of the existing annular menu is not obvious, the association memory is usually difficult to form, and the user can form muscle memory for common actions after long-term operation and then perform blind operation;
Second, default actions cannot be quickly configured within the office. For example, in the latent hand tour, the actions used by the user in the fixed scene and the fixed playing role are mostly the same, but a way of quickly setting the default action is not provided currently, and the user cannot perform default action configuration according to own use habit.
Third, default actions cannot be quickly switched within the office. At present, the configuration of the default trigger action is usually completed in the out-of-office, the user cannot switch the corresponding default action setting in the in-office, and the game war office is affected by slightly bad pool of operation in the in-office of the tension stimulus, so that bad experience is brought to the user.
In the embodiment of the disclosure, a control method of a virtual object is provided first, which overcomes the problem of low operation efficiency of a related annular menu in a specific interaction scene at least to a certain extent.
Fig. 1 illustrates a flowchart of a control method of a virtual object in an embodiment of the present disclosure, and an execution subject of the control method of the virtual object may be a server displaying a ring menu.
Referring to fig. 1, a control method of a virtual object according to one embodiment of the present disclosure includes the steps of:
Step S110, providing a preset control through a graphical user interface;
step S120, responding to a first operation acting on a preset control, and displaying a ring menu; the annular menu comprises an instruction distribution area and an expansion area, wherein the instruction distribution area comprises a plurality of instruction sub-areas, and the instruction distribution area is used for configuring corresponding instructions;
step S130, in response to a second operation acting on the expansion area, determining a target instruction corresponding to the second operation, and setting the target instruction as a shortcut instruction, wherein the target instruction is one of the instructions configured by the plurality of instruction subregions;
in step S140, the virtual object is controlled to execute the shortcut command in response to a third operation on the preset control, the third operation being different from the first operation.
In the technical solution provided in the embodiment shown in fig. 1, on the one hand, a preset control is provided through a graphical user interface, and in response to a first operation acting on the preset control, an annular menu including an instruction distribution area (for configuring an instruction and including a plurality of instruction sub-areas) and an expansion area is displayed, so that triggering of a plurality of different instructions can be realized only through the annular menu, and the diversity of instructions displayed on the graphical user interface is improved. Further, in response to a second operation acting on the expansion area, determining a target instruction corresponding to the second operation, and setting the target instruction as a shortcut instruction, a new interactive operation mode based on a ring menu is provided, so that a user can set a commonly used instruction of the user as the shortcut instruction in a game, and the method accords with personal operation habits and strategic habits of the user. On the other hand, the virtual object is controlled to execute the shortcut instruction in response to the third operation on the preset control, so that the user can quickly trigger the shortcut instruction only through simple touch operation, interactive steps are reduced, and interactive operation efficiency is improved.
The specific implementation of each step in fig. 1 is described in detail below:
it should be noted that, the interaction method based on the annular menu in the present disclosure may be applied to an operation scene in the game field, or may be applied to other daily operation scenes in the computer field (for example, a web page operation scene, operation scenes of various application programs, etc.), which may be set by itself according to actual situations, and the present disclosure is not limited in particular. In the following embodiments, an operation scenario in the game field will be described as an example.
The control method of the virtual object in one embodiment of the present disclosure may be executed on a local terminal device or a server. When the control method of the virtual object runs on the server, the control method of the virtual object can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an alternative embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud game. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the running mode of the cloud game, a running main body of the game program and a game interface presentation main body are separated, the storage and running of a control method of the virtual object are completed on a cloud game server, and the function of a client device is used for receiving and sending data and presenting a game interface, for example, the client device can be a display device which is close to a user side and has a data transmission function, such as a mobile terminal, a television, a computer, a palm computer, a smart sound box, a smart watch, a smart vehicle and the like; but the play control is displayed as a cloud game server in the cloud. When playing the game, the user 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, codes and compresses data such as a game interface and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game interface.
In an alternative embodiment, taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with a user through a graphical user interface, namely, conventionally downloading and installing a game program through the electronic device and running the game program. The way in which the local terminal device provides the graphical user interface to the user may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal, or provided to the user by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
The graphical user interface (Graphical User Interface, GUI) is a computer operation user interface displayed in a graphical mode, the graphical user interface is composed of a window, a drop-down menu, a dialog box and a corresponding control mechanism, the graphical user interface is standardized in various novel application programs, namely the same operation is always completed in the same mode, and the graphical user interface is used for seeing and operating graphical objects and is used for the technology of computer graphics.
In step S110, a preset control is provided through a graphical user interface.
In this step, at least part of the virtual scene and the virtual object located in the virtual scene may be provided through the graphical user interface, and the preset control may be provided through the graphical user interface.
Wherein the virtual scene is a virtual scene that an application program displays (or provides) when running on a terminal or a server. Optionally, the virtual scene is a simulation environment for the real world, or a semi-simulated semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene is any one of a two-dimensional virtual scene and a three-dimensional virtual scene, and the virtual environment can be sky, land, ocean and the like, wherein the land comprises environmental elements such as deserts, cities and the like. The virtual scene is a scene of a complete game logic of a virtual object such as user control, for example, in a sandbox 3D shooting game, the virtual scene is a 3D game world for a player to control the virtual object to fight, and an exemplary virtual scene may include: at least one element selected from mountains, flat lands, rivers, lakes, oceans, deserts, sky, plants, buildings and vehicles; for example, in a 2D card game, the virtual scene is a scene for showing a released card or a virtual object corresponding to the released card, and an exemplary virtual scene may include: arenas, battle fields, or other "field" elements or other elements that can display the status of card play; for a 2D or 3D multiplayer online tactical game, the virtual scene is a 2D or 3D terrain scene for virtual objects to fight, an exemplary virtual scene may include: mountain, line, river, classroom, table and chair, podium, etc.
Virtual objects refer to dynamic objects that can be controlled in a virtual scene. Alternatively, the dynamic object may be a virtual character, a virtual animal, a cartoon character, or the like. The virtual object is a Character that a Player controls through an input device, or is an artificial intelligence (Artificial Intelligence, AI) set in a virtual environment fight by training, or is a Non-Player Character (NPC) set in a virtual environment fight. Optionally, the virtual object is a virtual character playing an athletic in the virtual scene. Optionally, the number of virtual objects in the virtual scene fight is preset, or dynamically determined according to the number of clients joining the fight, which is not limited by the embodiment of the present application. In one possible implementation, a user can control a virtual object to move in the virtual scene, e.g., control the virtual object to run, jump, crawl, etc., as well as control the virtual object to fight other virtual objects using skills, virtual props, etc., provided by the application.
The preset control can be a virtual rocker or any other control, and can be set according to actual conditions, and the preset control is not particularly limited in the disclosure.
The virtual rocker is used for controlling a virtual object to move in the virtual environment. The user can control the movement of the virtual rocker through touch operation on the terminal screen, and further control the virtual object to move. Alternatively, in the embodiment of the present application, the virtual rocker may be circular, and in some other embodiments, the virtual rocker may be triangular, square, hexagonal, octagonal, etc., and may be in other irregular patterns, which is not limited by the embodiment of the present application. The virtual rocker moves within the movable region. Alternatively, the shape of the movable region may be the same as or different from the shape of the virtual rocker. For example, the virtual rocker is circular, the movable area is also circular, and the two are concentric circles; for another example, the virtual rocker is hexagonal, the movable area is octagonal, and the centers of the two are coincident. In step S120, a ring menu is displayed in response to a first operation on a preset control.
In this step, after providing the preset control, the user may call out and display the annular menu by performing a first operation on the preset control.
The first operation may be a long press operation (for example, the pressing time period is longer than 0.2 seconds, the specific pressing time period may be set according to the actual situation, the disclosure is not limited thereto, or may be set according to the actual situation, and the disclosure is not limited thereto.
The annular menu may include a center area, an instruction distribution area, and an extension area. Referring to fig. 2-3, fig. 2 shows a schematic view of one ring menu in an embodiment of the present disclosure, and fig. 3 shows a schematic view of another ring menu in an embodiment of the present disclosure.
Referring to fig. 2, a circular area C surrounded by the innermost dotted line is a central area, and the command distribution area is the area surrounded by the thickened solid line from the innermost dotted line to the sub-inner ring, and the expansion area is the area surrounded by the thickened solid line to the outer dotted line from the sub-inner ring.
The instruction distribution can be divided into a plurality of instruction subregions, the division number of the instruction subregions can be set according to actual conditions, the area size of each instruction subregion can be the same or different, and the instruction subregions can be set according to actual conditions, so that the instruction distribution method is not limited in particular. Taking the instruction distribution area divided into 6 instruction sub-areas (a 1-a 6) as an example for explanation, the instruction sub-area a1 can be set to correspond to the instruction 1, the instruction sub-area a2 can be set to correspond to the instruction 2, the instruction sub-area a3 corresponds to the instruction 3, the instruction sub-area a4 corresponds to the instruction 4, the instruction sub-area a5 corresponds to the instruction 5, and the instruction sub-area a6 corresponds to the instruction 6, so that different instructions can be configured in different instruction sub-areas.
In an alternative embodiment, if a sliding operation from any instruction sub-region to the extended region (i.e., the extended region k in fig. 2) in the instruction distribution region is detected, the instruction corresponding to the instruction sub-region may be set as a shortcut instruction. For example: if an operation of sliding from the instruction sub-area a1 to the expansion area k and releasing the same is detected, the instruction 1 corresponding to the instruction sub-area a1 may be set as a shortcut instruction.
It should be noted that, if an operation that the user successively passes through the plurality of instruction sub-regions and then slides to the expansion region is detected, an instruction corresponding to the last instruction sub-region passing before entering the expansion region may be set as a shortcut instruction. For example, if it is detected that the user slides from the instruction sub-area a3 to the instruction sub-area a2, then slides from the instruction sub-area a2 to the instruction sub-area a1, and then slides from the instruction sub-area a1 to the expansion area k, at this time, in view of the last instruction sub-area passing before sliding to the expansion area k being a1, the instruction corresponding to the instruction sub-area a1 may be set as a shortcut instruction.
Referring to fig. 3, a circular area C surrounded by the inner-most dotted line is a central area, and the area surrounded by the thick solid line from the inner-most dotted line to the sub-inner ring is the command distribution area (including 6 command sub-areas a1 to a 6), and the area surrounded by the thick solid line to the outer-most dotted line from the sub-inner ring is the expansion area (including 6 expansion sub-areas k1 to k 6).
In an alternative embodiment, the extended area may be divided into a plurality of extended sub-areas, and the number of divisions of the extended sub-areas may be the same as the number of divisions of the instruction sub-areas, so as to facilitate establishment of a preset mapping relationship between the extended sub-areas and the instruction sub-areas. For example, taking the case of dividing the extended sub-region into 6 extended sub-regions (k 1-k 6) as an example, the extended sub-region k1 may be set as a mapping region of the command sub-region a1, the extended sub-region k2 may be set as a mapping region of the command sub-region a2, the extended sub-region k3 may be set as a mapping region of the command sub-region a3, the extended sub-region k4 may be set as a mapping region of the command sub-region a4, the extended sub-region k5 may be set as a mapping region of the command sub-region a5, and the extended sub-region k6 may be set as a mapping region of the command sub-region a 6.
In an optional embodiment, when the game interface is greater than the preset area threshold, different turns may be set for the annular menu according to the size of the game interface, so as to increase the number of instruction distribution areas, and thus increase the number of instructions configured by the instruction distribution areas, so that the instructions that can be triggered by the annular menu are wider. Referring next to fig. 1, in step S130, in response to a second operation acting on the extended area, a target instruction corresponding to the second operation is determined, and the target instruction is set as a shortcut instruction.
In this step, when a second operation acting on the extended area is received, a target instruction corresponding to the second operation may be determined, and the target instruction may be set as a shortcut instruction.
Specifically, the target instruction corresponding to the second operation may be determined first. Referring to fig. 4, fig. 4 is a schematic flow chart illustrating determining a target instruction corresponding to a second operation in an embodiment of the disclosure, including steps S401 to S402:
in step S401, in response to a second operation acting on the extended sub-region, a first instruction sub-region having a mapping relationship with the extended sub-region is determined.
In an optional embodiment, in view of the fact that the extension area is divided into a plurality of extension sub-areas, when the user performs the second operation on the extension area, the extension sub-area where the second operation is located may be determined first, and further, the first instruction sub-area having a mapping relationship with the extension sub-area is determined. The second operation may be a double click operation or a single click operation, and may be set according to the actual situation, which is not particularly limited in the present disclosure.
When the second operation is detected to act on the extended sub-region k1, the first instruction sub-region having the mapping relationship with the extended sub-region may be determined as a1 according to the mapping relationship.
In step S402, an instruction corresponding to the first instruction sub-region is determined as a target instruction.
In this step, since the instruction corresponding to the first instruction sub-region is instruction 1, instruction 1 can be determined as the target instruction.
After determining the target instruction, the target instruction may be set as a shortcut instruction.
It should be noted that, when the second operation acting on a certain extended sub-area is detected, the target instruction corresponding to the second operation may also be determined by: and connecting the touch point position of the second operation with the central area (for example, the center of the central area) of the annular menu to form a connecting line, and determining the instruction configured by the instruction subarea through which the connecting line passes as a target instruction.
Alternatively, the shortcut instruction may also be set by:
in an alternative embodiment, if a sliding operation from the extended area to any instruction sub-area is detected, the instruction corresponding to the instruction sub-area may be set as a shortcut instruction. For example: if the operation of sliding from the extended area to the instruction sub-area a1 and releasing the same is detected, the instruction 1 corresponding to the instruction sub-area a1 may be set as a shortcut instruction.
It should be noted that, if the user is detected to pass through the plurality of instruction subregions after sliding out of the extension region, the instruction corresponding to the instruction subregion where the sliding end point is located may be set as a shortcut instruction. For example, if it is detected that the user slides from the extended area to the command sub-area a2, and then slides from the command sub-area a2 to the command sub-area a1 for releasing, at this time, in view of the fact that the command sub-area where the sliding end point is located is the command sub-area a1, the command corresponding to the command sub-area a1 may be set as a shortcut command.
In still another alternative embodiment, if an operation of sliding from any one of the instruction subregions of the instruction distribution region to the extended subregion having a mapping relationship with the instruction subregion and releasing the extended subregion is detected, the instruction corresponding to the instruction subregion may be set as a shortcut instruction. For example: if the operation of sliding from the instruction sub-area a1 to the expansion sub-area k1 and releasing is detected, the instruction corresponding to the instruction sub-area a1 may be set as a shortcut instruction.
If an operation is detected that slides from any one of the command subregions of the command distribution region to an extended subregion having no mapping relation with the command subregion and releases the extended subregion, the operation may be regarded as a user misoperation, and any action is not triggered. For example: if it is detected that the user has slid from the command sub-area a1 to the extension sub-area k1 and then slid to the extension sub-area k2 to release the command sub-area, the user may be considered to be operating erroneously at this time, and no action is triggered.
In still another alternative embodiment, if an operation of sliding from any extended sub-region to an instruction sub-region having a mapping relationship with the extended sub-region and releasing the instruction sub-region is detected, an instruction corresponding to the instruction sub-region may be set as a shortcut instruction. For example: if the operation of sliding from the extended sub-region k1 to the instruction sub-region a1 and releasing the same is detected, the instruction corresponding to the instruction sub-region a1 may be set as a shortcut instruction.
It should be noted that, if the user passes through another extended sub-region or an instruction sub-region in the sliding process from the extended sub-region k1 to the instruction sub-region a1, at this time, it may be detected whether a mapping relationship exists between the extended sub-region described by the sliding start point and the instruction sub-region where the sliding end point is located, if the mapping relationship exists, the instruction corresponding to the instruction sub-region where the sliding end point is located is set as a shortcut instruction, otherwise, the operation is determined as a user misoperation, and no action is triggered.
For example, if it is detected that the user slides from the extended sub-region k1 to the extended sub-region k2, then slides from the extended sub-region k2 to the instruction sub-region a2, and then slides from the instruction sub-region a2 to the instruction sub-region a1 and releases the instruction sub-region, the sliding start point is the extended sub-region k1, the sliding end point is the instruction sub-region a1, and the two have a mapping relationship, the instruction 1 corresponding to the instruction sub-region a1 can be set as a shortcut instruction.
If the user slides from the extended sub-region k1 to the extended sub-region k2, and further slides from the extended sub-region k2 to the command sub-region a2 and releases the command sub-region, the sliding start point is the extended sub-region k1, the sliding end point is the command sub-region a2, and the two have no mapping relationship, so that the user can be considered to operate by mistake, and any action is not triggered.
Optionally, when the user operates the annular menu, the touch position of the touch medium (for example, a finger or a touch pen, etc. can be set according to the actual situation, and the present disclosure does not specifically limit the touch position), thereby distinguishing and displaying the closed area where the touch position is located. For example, when the touch operation is "an operation of continuously sliding to the extended sub-region k1 and releasing from any point in the center region through the command sub-region a 1", the center region may be distinctively displayed when the touch position is detected to be located in the center region, for example: the boundary line of the touch control device is thickened or distinguished through colors, or distinguished through highlighting, flashing and other forms, when the fact that the touch control position moves out of the central area and enters the command subarea a1 is detected, the command subarea a1 can be distinguished, and when the fact that the touch control position leaves the command subarea a1 and enters the expansion subarea k1 is detected, the expansion subarea k1 can be distinguished, so that real-time tracking and visual display of the touch control position are realized, and the current touch control position of a user can be clarified at any moment.
Optionally, an enlarged icon of the annular menu may also be provided on the graphical user interface, and referring to fig. 5, fig. 5 shows a schematic diagram of displaying an enlarged icon on the graphical user interface in an embodiment of the disclosure, where the enlarged icon is used to enlarge and display the annular menu. After displaying the enlarged icon, the user may perform a touch operation on the annular menu or may perform a touch operation on the enlarged icon, which may be set by himself or herself according to the actual situation, which is not particularly limited in the present disclosure.
For example, after a certain instruction (for example, instruction 1) is set as a shortcut instruction, a corresponding instruction sub-area (for example, instruction sub-area a 1) may be displayed distinctively on the zoom-in icon. For example, referring next to fig. 5, a marking symbol (small black dot in fig. 5) may be displayed near the boundary line of the command sub-area a1, or the boundary line of the command sub-area a1 may be thickened or distinguished by color, or may be distinctively displayed in a form of highlighting, blinking, etc., so that the user may intuitively see the set shortcut command in real time without wasting time to recall the shortcut command set by himself, and user misoperation caused by a shortcut command memory error may be avoided.
Referring next to fig. 1, in step S140, the virtual object is controlled to execute a shortcut instruction in response to a third operation acting on the preset control.
In this step, after setting the shortcut command, the user may perform a third operation (the third operation is different from the first operation and may be a clicking operation) on the preset control, so as to control the virtual object to execute the shortcut command, for example: a click operation is performed on the virtual rocker to trigger instruction 1 above. Therefore, the technical problem of complex operation caused by the fact that instructions can be triggered only by performing cross-region sliding on the annular menu in the related technology is solved, a user can realize quick triggering of the instructions 1 only by simple touch operation, the operation time of the user is saved, the annular menu can be suitable for a quick and frequent interaction scene, and the operation efficiency of the user is improved.
Then, when the user needs to switch the shortcut command, for example, when the user needs to switch the shortcut command to the command 2, the user may directly perform a double-click or single-click operation on the expansion sub-region k2, or directly slide from the command sub-region a2 to the expansion sub-region k2, so that the command 2 is set as the shortcut command. Therefore, the user can directly realize the quick switching of the quick instruction in the current game without exiting the game or entering the in-game operation setting interface, and the switching efficiency of the quick instruction and the operation efficiency of the game are improved.
It should be noted that, the virtual object may be controlled to execute the instruction corresponding to the instruction sub-region in the following manner:
in an alternative embodiment, different instructions are preconfigured in view of the different instruction subregions, so that if a sliding operation acting on the central region and any instruction subregion is detected, the virtual object can be controlled to execute the instruction corresponding to the instruction subregion.
Specifically, if a sliding operation with any point in the central area as a starting point and any instruction sub-area as an end point is detected, an instruction corresponding to the instruction sub-area may be triggered, for example, if the user slides from the central area to the instruction sub-area a2, the virtual object may be controlled to execute the instruction 2. Alternatively, if a sliding operation starting from any instruction subregion and ending at the central region is detected, an instruction corresponding to the instruction subregion may be triggered, for example, if the user slides from the instruction subregion a2 to the central region, the virtual object may be controlled to execute the instruction 2.
In another alternative embodiment, if a drag operation from the extended sub-region to the third instruction sub-region having a mapping relationship with the extended sub-region is detected, the virtual object may be controlled to execute an instruction corresponding to the third instruction sub-region, for example, when a drag operation from the extended sub-region k1 to the instruction sub-region a1 is detected, the virtual object may be controlled to execute an instruction 1 corresponding to the instruction sub-region a 1.
In yet another alternative embodiment, when a long-press operation on any expanded sub-region (for example, k 1) on the annular menu is detected, the position of the touch point of the long-press operation may be determined, and further, a mapping position of the touch point on the enlarged icon shown in fig. 5 is obtained, and a movable cursor is displayed on the mapping position. Further, if a drag operation continuous to the long press operation is detected, the movable cursor can be controlled to move synchronously with the touch point of the drag operation on the enlarged icon, and further, when the movable cursor moves to an instruction sub-area (for example, the instruction sub-area a 1) having a mapping relation with the extended sub-area, the virtual object can be controlled to execute the instruction 1 corresponding to the instruction sub-area a 1.
In addition, the user can also adjust the display position of the annular menu in the related setting interface so that the display position accords with the operation habit of the user. Taking an application scene as an example of a game scene for explanation, a user can adjust the display position of the annular menu on a game interface in the game pair, and after adjusting the display position of the annular menu, the user can start a new game pair. After starting a new game play, the user can call out the ring menu by long-pressing on the virtual rocker, and the ring menu is displayed at the adjusted position.
After adjusting the display position of the annular menu, if the instruction distribution area or the expansion area is detected to exceed the display interface (refer to fig. 6-7, fig. 6 shows a schematic diagram of the expansion area exceeding the display interface in the embodiment of the disclosure, and fig. 7 shows a schematic diagram of the instruction distribution area exceeding the display interface in the embodiment of the disclosure), at this time, different operation purposes can be achieved according to the sliding operation acting on the central area. Specifically, referring to fig. 8, fig. 8 shows a flow chart for implementing different operation purposes according to a sliding operation applied to a central area in an embodiment of the disclosure, including steps S801 to S803:
in step S801, a route area and a termination area of a slide operation are predicted from the slide operation applied to the center area.
In this step, the direction and the velocity of the sliding operation acting on the center area can be obtained, and further, the route area of the sliding operation can be predicted from the direction of the sliding operation, and the termination area of the sliding operation can be predicted from the velocity of the sliding operation.
Specifically, referring to fig. 9, fig. 9 shows a schematic flow chart of predicting a routing area of a sliding operation according to a direction of the sliding operation in an embodiment of the disclosure, including steps S901 to S902:
In step S901, an included angle between the direction of the sliding operation and a preset reference direction is acquired.
In this step, the preset reference direction may be a horizontal line direction, and further, an included angle between the sliding operation direction and the horizontal line direction may be determined.
In step S902, a routing area for the sliding operation is determined according to an included angle range in which the included angle is located and an included angle range corresponding to each pre-stored command sub-area.
In this step, after determining the included angle between the direction of the sliding operation and the horizontal line direction, the included angle may be matched with the included angle range corresponding to each prestored command sub-area, so as to determine the routing area of the sliding operation.
For example, the range of angles between the pre-stored command sub-regions may be referred to in the following table 1:
TABLE 1
Instruction subregion Range of included angle
a1 0-60
a2 61-120
a3 121-180
a4 181-240
a5 241-300
a6 301-360
Thus, by way of example, the above-described sliding operation direction and the horizontal line have an included angle of 100 degrees, and the passing area may be determined as a2.
Referring to fig. 10, fig. 10 is a flowchart illustrating predicting a termination area of a sliding operation according to a rate of the sliding operation in an embodiment of the present disclosure, including steps S1001 to S1002:
In step S1001, in response to the rate of the sliding operation being less than or equal to the preset rate threshold, it is determined that the termination area of the sliding operation is the instruction distribution area.
In this step, the speed of the sliding operation may be compared with a preset speed threshold (a preset speed value, which may be changed according to the actual situation), and if the speed of the sliding operation is less than or equal to the preset speed threshold, it may be determined that the end region of the sliding operation is the instruction distribution region.
In step S1002, in response to the rate of the sliding operation being greater than the preset rate threshold, it is determined that the termination area of the sliding operation is the extension area.
In this step, if the rate of the sliding operation is greater than the preset rate threshold, it may be determined that the end region of the sliding operation is the expansion region.
Referring to fig. 8, in step S802, in response to the routing area being the fourth instruction sub-area in the instruction distribution area, and the termination area being the fourth instruction sub-area, an instruction corresponding to the fourth instruction sub-area is triggered.
In this step, if the route area of the sliding operation is predicted to be the fourth instruction subregion in the instruction distribution area and the termination area is predicted to be the fourth instruction subregion, the instruction corresponding to the fourth instruction subregion may be triggered. For example, if the routing area is predicted to be a2 and the termination area is predicted to be a2, the virtual object may be controlled to execute instruction 2.
In step S803, in response to the routing area being the fourth instruction sub-area and the extension area, and the termination area being the extension area, the instruction corresponding to the fourth instruction sub-area is set as a shortcut instruction.
In this step, if the predicted passing region of the sliding operation is the fourth instruction sub-region and the extended region and the termination region is the extended region, the instruction corresponding to the fourth instruction sub-region may be set as the shortcut instruction. For example, if the routing area is predicted to be the instruction sub-area a2 and the termination area is the extension area, the instruction 2 may be set as a shortcut instruction.
Therefore, the problem that the user cannot perform normal operation under the condition that the display position of the annular menu is insufficient is solved, so that the user can rapidly realize different operation purposes no matter using a computer with a larger display screen or using a mobile terminal with a smaller display screen, and normal operation of the user is ensured.
In an alternative embodiment, the user may conceal the annular menu by pressing the preset control again for a long time without using the annular menu, so as to avoid the problem of line of sight blocking caused by continuous display of the annular menu without using the annular menu.
The present disclosure also provides a control device for a virtual object, and fig. 11 shows a schematic structural diagram of the control device for a virtual object in an exemplary embodiment of the present disclosure; as shown in fig. 11, the control apparatus 1100 of the virtual object may include a control providing module 1110, a menu display module 1120, a setting module 1130, and an instruction executing module 1140. Wherein:
the control providing module 1110 is configured to provide a preset control through the graphical user interface.
The menu display module 1120 is configured to display a ring menu in response to a first operation acting on the preset control; the annular menu comprises an instruction distribution area and an extension area, wherein the instruction distribution area comprises a plurality of instruction sub-areas, and the instruction distribution area is used for configuring corresponding instructions.
The setting module 1130 is configured to determine a target instruction corresponding to a second operation in response to the second operation acting on the extended area, and set the target instruction as a shortcut instruction, where the target instruction is one instruction of the instructions configured by the plurality of instruction sub-areas.
The instruction execution module 1140 is configured to control the virtual object to execute the shortcut instruction in response to a third operation acting on the preset control, where the third operation is different from the first operation.
In an embodiment of the present disclosure, the extension area includes a plurality of extension sub-areas, and a preset mapping relationship is provided between the plurality of extension sub-areas and the plurality of instruction sub-areas; a setup module 1130 configured to:
responding to a second operation acting on the extended sub-region, and determining a first instruction sub-region with a mapping relation with the extended sub-region; and determining an instruction corresponding to the first instruction sub-region as the target instruction.
In an exemplary embodiment of the present disclosure, the annular menu further includes a center region; after displaying the ring menu, the instruction execution module 1140 is configured to:
and responding to the sliding operation acting on the central area and the second instruction sub-area, and controlling the virtual object to execute the instruction corresponding to the second instruction sub-area.
In an exemplary embodiment of the present disclosure, a sliding operation acting on the center region and the second instruction sub-region includes:
a sliding operation with any point in the center area as a starting point and any point in the second instruction sub-area as an ending point; or, a sliding operation starting from any point in the second instruction subregion and ending at any point in the central region.
In an exemplary embodiment of the present disclosure, the instruction execution module 1140 is configured to:
and responding to the dragging operation from the extended sub-region to a third instruction sub-region with a mapping relation, and controlling the virtual object to execute the instruction corresponding to the third instruction sub-region.
In an exemplary embodiment of the present disclosure, control providing module 1110 is configured to:
providing an enlarged icon of the annular menu through the graphical user interface; and the enlarged icon is used for carrying out enlarged display on the annular menu.
In an exemplary embodiment of the present disclosure, the instruction execution module 1140 is configured to:
responding to a long-press operation acting on any expansion sub-region on the annular menu, and determining the position of a touch point of the long-press operation; acquiring a mapping position of the touch point on the enlarged icon, and displaying a movable cursor at the mapping position; controlling the movable cursor to synchronously move on the enlarged icon in response to a dragging operation continuous to the long-press operation; and when the movable cursor moves to a third instruction sub-region with a mapping relation with the extension sub-region, controlling the virtual object to execute an instruction corresponding to the third instruction sub-region.
In an exemplary embodiment of the present disclosure, the first operation includes a long press operation, and the third operation includes a click operation.
In an exemplary embodiment of the present disclosure, menu display module 1120 is configured to:
receiving a position adjustment operation for the ring menu; and updating the display position of the annular menu according to the position adjustment operation.
In an exemplary embodiment of the present disclosure, the ring menu further includes a center area, and after updating the display position of the ring menu, the instruction execution module 1140 is configured to:
responding to the instruction distribution area or the expansion area exceeding a display interface, and predicting a passing area and a termination area of the sliding operation according to the sliding operation acted on the central area; responding to the fact that the passing area is a fourth instruction subarea in the instruction distribution area, and the ending area is the fourth instruction subarea, and triggering an instruction corresponding to the fourth instruction subarea; and setting an instruction corresponding to the fourth instruction sub-region as a shortcut instruction in response to the passing-through region being the fourth instruction sub-region and the extension region, and the termination region being the extension region.
In an exemplary embodiment of the present disclosure, the instruction execution module 1140 is configured to:
acquiring the direction and the speed of the sliding operation; predicting a passing area of the sliding operation according to the direction of the sliding operation; and predicting a termination area of the sliding operation according to the speed of the sliding operation.
In an exemplary embodiment of the present disclosure, the instruction execution module 1140 is configured to:
acquiring an included angle between the sliding operation direction and a preset reference direction; and determining the passing area of the sliding operation according to the included angle range of the included angle and the included angle range corresponding to each prestored subarea.
In an exemplary embodiment of the present disclosure, the instruction execution module 1140 is configured to:
determining a termination area of the sliding operation as the instruction distribution area in response to the speed of the sliding operation being less than or equal to the preset speed threshold; and determining a termination area of the sliding operation as the expansion area in response to the speed of the sliding operation being greater than the preset speed threshold.
The specific details of each module in the above-mentioned control device for virtual objects have been described in detail in the corresponding control method for virtual objects, so that they will not be described in detail here.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
The present application also provides a computer-readable storage medium that may be included in the electronic device described in the above embodiments; or may exist alone without being incorporated into the electronic device.
The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable storage medium may transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The computer-readable storage medium carries one or more programs which, when executed by one such electronic device, cause the electronic device to implement the methods described in the embodiments above.
In addition, an electronic device capable of realizing the method is provided in the embodiment of the disclosure.
Those skilled in the art will appreciate that the various aspects of the present disclosure may be implemented as a system, method, or program product. Accordingly, various aspects of the disclosure may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 1200 according to such an embodiment of the present disclosure is described below with reference to fig. 12. The electronic device 1200 shown in fig. 12 is merely an example, and should not be construed as limiting the functionality and scope of use of the disclosed embodiments.
As shown in fig. 12, the electronic device 1200 is in the form of a general purpose computing device. Components of electronic device 1200 may include, but are not limited to: the at least one processing unit 1210, the at least one memory unit 1220, a bus 1230 connecting the different system components (including the memory unit 1220 and the processing unit 1210), and a display unit 1240.
Wherein the storage unit stores program code that is executable by the processing unit 1210 such that the processing unit 1210 performs steps according to various exemplary embodiments of the present disclosure described in the above-described "exemplary methods" section of the present specification. For example, the processing unit 1210 may perform the steps as shown in fig. 1: step S110, providing a preset control through the graphical user interface; step S120, responding to a first operation acting on the preset control, and displaying a ring menu; the annular menu comprises an instruction distribution area and an expansion area, wherein the instruction distribution area comprises a plurality of instruction sub-areas, and the instruction distribution area is used for configuring corresponding instructions; step S130, a target instruction corresponding to a second operation is determined in response to the second operation acting on the expansion area, the target instruction is set as a shortcut instruction, and the target instruction is one instruction of the instructions configured by the plurality of instruction subregions; and step S140, responding to a third operation acting on the preset control, and controlling the virtual object to execute the shortcut instruction, wherein the third operation is different from the first operation.
The storage unit 1220 may include a readable medium in the form of a volatile storage unit, such as a Random Access Memory (RAM) 12201 and/or a cache memory 12202, and may further include a Read Only Memory (ROM) 12203.
Storage unit 1220 may also include a program/utility 12204 having a set (at least one) of program modules 12205, such program modules 12205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 1230 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 1200 may also communicate with one or more external devices 1300 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 1200, and/or any device (e.g., router, modem, etc.) that enables the electronic device 1200 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 1250. Also, the electronic device 1200 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet through the network adapter 1260. As shown, the network adapter 1260 communicates with other modules of the electronic device 1200 over bus 1230. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 1200, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (16)

1. A method of controlling a virtual object, characterized in that a graphical user interface is provided by a terminal device, the graphical user interface comprising at least a part of a virtual scene and a virtual object located in the virtual scene, the method comprising:
providing a preset control through the graphical user interface;
responding to a first operation acting on the preset control, and displaying a ring menu; the annular menu comprises an instruction distribution area and an expansion area, wherein the instruction distribution area comprises a plurality of instruction sub-areas, and the instruction distribution area is used for configuring corresponding instructions;
responding to a second operation acting on the expansion area, determining a target instruction corresponding to the second operation, and setting the target instruction as a shortcut instruction, wherein the target instruction is one instruction of the instructions configured by the plurality of instruction subregions;
And responding to a third operation acting on the preset control, and controlling the virtual object to execute the shortcut instruction, wherein the third operation is different from the first operation.
2. The method of claim 1, wherein the extended region comprises a plurality of extended sub-regions, the plurality of extended sub-regions having a predetermined mapping relationship with the plurality of instruction sub-regions;
the response to the second operation acting on the expansion area determines a target instruction corresponding to the second operation, including:
responding to a second operation acting on the extended sub-region, and determining a first instruction sub-region with a mapping relation with the extended sub-region;
and determining an instruction corresponding to the first instruction sub-region as the target instruction.
3. The method of claim 1, wherein the annular menu further comprises a central region;
after displaying the annular menu, the method further comprises:
and responding to the sliding operation acting on the central area and the second instruction sub-area, and controlling the virtual object to execute the instruction corresponding to the second instruction sub-area.
4. A method according to claim 3, characterized in that the sliding operation acting on the central area and the second instruction sub-area comprises:
A sliding operation with any point in the center area as a starting point and any point in the second instruction sub-area as an ending point; or alternatively, the first and second heat exchangers may be,
and a sliding operation taking any point in the second instruction subarea as a starting point and taking any point in the central area as an ending point.
5. The method according to claim 2, wherein the method further comprises:
and responding to the dragging operation from the extended sub-region to a third instruction sub-region with a mapping relation, and controlling the virtual object to execute the instruction corresponding to the third instruction sub-region.
6. The method according to claim 1, wherein the method further comprises:
providing an enlarged icon of the annular menu through the graphical user interface; and the enlarged icon is used for carrying out enlarged display on the annular menu.
7. The method of claim 6, wherein after providing the enlarged icon of the annular menu, the method further comprises:
responding to a long-press operation acting on any expansion sub-region on the annular menu, and determining the position of a touch point of the long-press operation;
acquiring a mapping position of the touch point on the enlarged icon, and displaying a movable cursor at the mapping position;
Controlling the movable cursor to synchronously move on the enlarged icon in response to a dragging operation continuous to the long-press operation;
and when the movable cursor moves to a third instruction sub-region with a mapping relation with the extension sub-region, controlling the virtual object to execute an instruction corresponding to the third instruction sub-region.
8. The method of claim 1, wherein the first operation comprises a long press operation and the third operation comprises a click operation.
9. The method according to any one of claims 1 to 8, further comprising:
receiving a position adjustment operation for the ring menu;
and updating the display position of the annular menu according to the position adjustment operation.
10. The method of claim 9, wherein the annular menu further comprises a central area, the method further comprising, after updating the display position of the annular menu:
responding to the instruction distribution area or the expansion area exceeding a display interface, and predicting a passing area and a termination area of the sliding operation according to the sliding operation acted on the central area;
Responding to the fact that the passing area is a fourth instruction subarea in the instruction distribution area, and the ending area is the fourth instruction subarea, and triggering an instruction corresponding to the fourth instruction subarea;
and setting an instruction corresponding to the fourth instruction sub-region as a shortcut instruction in response to the passing-through region being the fourth instruction sub-region and the extension region, and the termination region being the extension region.
11. The method of claim 10, wherein predicting a pass zone and a termination zone of the sliding operation based on the sliding operation applied to the center zone comprises:
acquiring the direction and the speed of the sliding operation;
predicting a passing area of the sliding operation according to the direction of the sliding operation;
and predicting a termination area of the sliding operation according to the speed of the sliding operation.
12. The method of claim 11, wherein predicting the pass-through region of the sliding operation according to the direction of the sliding operation comprises:
acquiring an included angle between the sliding operation direction and a preset reference direction;
and determining the passing area of the sliding operation according to the included angle range of the included angle and the included angle range corresponding to each prestored subarea.
13. The method of claim 11, wherein predicting a termination area of the sliding operation based on the rate of the sliding operation comprises:
determining a termination area of the sliding operation as the instruction distribution area in response to the speed of the sliding operation being less than or equal to a preset speed threshold;
and determining a termination area of the sliding operation as the expansion area in response to the speed of the sliding operation being greater than the preset speed threshold.
14. A control device for virtual objects, characterized in that a graphical user interface is provided by the device, the graphical user interface comprising at least a part of a virtual scene and virtual objects located in the virtual scene, the device comprising:
the control providing module is used for providing a preset control through the graphical user interface;
the menu display module is used for responding to a first operation acted on the preset control and displaying an annular menu; the annular menu comprises an instruction distribution area and an expansion area, wherein the instruction distribution area comprises a plurality of instruction sub-areas, and the instruction distribution area is used for configuring corresponding instructions;
the setting module is used for responding to a second operation acting on the expansion area, determining a target instruction corresponding to the second operation, setting the target instruction as a shortcut instruction, and setting the target instruction as one of the instructions configured by the plurality of instruction subregions;
And the instruction execution module is used for responding to a third operation acted on the preset control, and controlling the virtual object to execute the shortcut instruction, wherein the third operation is different from the first operation.
15. A computer storage medium having stored thereon a computer program, which when executed by a processor implements the method of controlling a virtual object according to any of claims 1 to 13.
16. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to execute the control method of the virtual object of any one of claims 1 to 13 via execution of the executable instructions.
CN202210375216.0A 2022-04-11 2022-04-11 Virtual object control method and device, storage medium and equipment Active CN114721566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210375216.0A CN114721566B (en) 2022-04-11 2022-04-11 Virtual object control method and device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210375216.0A CN114721566B (en) 2022-04-11 2022-04-11 Virtual object control method and device, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN114721566A CN114721566A (en) 2022-07-08
CN114721566B true CN114721566B (en) 2023-09-29

Family

ID=82243572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210375216.0A Active CN114721566B (en) 2022-04-11 2022-04-11 Virtual object control method and device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN114721566B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094345A (en) * 2015-09-29 2015-11-25 腾讯科技(深圳)有限公司 Information processing method, terminal and computer storage medium
CN108144293A (en) * 2017-12-15 2018-06-12 网易(杭州)网络有限公司 Information processing method, information processing device, electronic equipment and storage medium
CN109062475A (en) * 2018-08-22 2018-12-21 Oppo广东移动通信有限公司 icon display method, device, terminal and storage medium
CN109343773A (en) * 2018-10-11 2019-02-15 广州要玩娱乐网络技术股份有限公司 Control method, device, storage medium and the terminal of Portable touch control equipment
CN110064193A (en) * 2019-04-29 2019-07-30 网易(杭州)网络有限公司 Manipulation control method, device and the mobile terminal of virtual objects in game
CN112370781A (en) * 2020-11-30 2021-02-19 腾讯科技(深圳)有限公司 Operation control method and apparatus, storage medium, and electronic device
CN112933591A (en) * 2021-03-15 2021-06-11 网易(杭州)网络有限公司 Method and device for controlling game virtual character, storage medium and electronic equipment
CN113398601A (en) * 2021-06-25 2021-09-17 网易(杭州)网络有限公司 Information transmission method, information transmission device, computer-readable medium, and apparatus
CN113398572A (en) * 2021-05-26 2021-09-17 腾讯科技(深圳)有限公司 Virtual item switching method, skill switching method and virtual object switching method
CN113821137A (en) * 2021-09-22 2021-12-21 携程计算机技术(上海)有限公司 Control display method, system, equipment and storage medium based on touch position
CN113952709A (en) * 2021-10-21 2022-01-21 网易(杭州)网络有限公司 Game interaction method and device, storage medium and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9049258B2 (en) * 2009-09-17 2015-06-02 Border Stylo, LLC Systems and methods for anchoring content objects to structured documents

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094345A (en) * 2015-09-29 2015-11-25 腾讯科技(深圳)有限公司 Information processing method, terminal and computer storage medium
CN108144293A (en) * 2017-12-15 2018-06-12 网易(杭州)网络有限公司 Information processing method, information processing device, electronic equipment and storage medium
CN109062475A (en) * 2018-08-22 2018-12-21 Oppo广东移动通信有限公司 icon display method, device, terminal and storage medium
CN109343773A (en) * 2018-10-11 2019-02-15 广州要玩娱乐网络技术股份有限公司 Control method, device, storage medium and the terminal of Portable touch control equipment
CN110064193A (en) * 2019-04-29 2019-07-30 网易(杭州)网络有限公司 Manipulation control method, device and the mobile terminal of virtual objects in game
CN112370781A (en) * 2020-11-30 2021-02-19 腾讯科技(深圳)有限公司 Operation control method and apparatus, storage medium, and electronic device
CN112933591A (en) * 2021-03-15 2021-06-11 网易(杭州)网络有限公司 Method and device for controlling game virtual character, storage medium and electronic equipment
CN113398572A (en) * 2021-05-26 2021-09-17 腾讯科技(深圳)有限公司 Virtual item switching method, skill switching method and virtual object switching method
CN113398601A (en) * 2021-06-25 2021-09-17 网易(杭州)网络有限公司 Information transmission method, information transmission device, computer-readable medium, and apparatus
CN113821137A (en) * 2021-09-22 2021-12-21 携程计算机技术(上海)有限公司 Control display method, system, equipment and storage medium based on touch position
CN113952709A (en) * 2021-10-21 2022-01-21 网易(杭州)网络有限公司 Game interaction method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN114721566A (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN108355354B (en) Information processing method, device, terminal and storage medium
CN106975219B (en) Display control method and device, storage medium, the electronic equipment of game picture
CN107132988B (en) Virtual objects condition control method, device, electronic equipment and storage medium
CN107213643B (en) Display control method and device, storage medium, the electronic equipment of game picture
CN107132981B (en) Display control method and device, storage medium, the electronic equipment of game picture
CN112076473B (en) Control method and device of virtual prop, electronic equipment and storage medium
CN107203321B (en) Display control method and device, storage medium, the electronic equipment of game picture
CN112416196B (en) Virtual object control method, device, equipment and computer readable storage medium
CN111467794B (en) Game interaction method and device, electronic equipment and storage medium
CN113398601B (en) Information transmission method, information transmission device, computer-readable medium, and apparatus
WO2023020122A1 (en) Virtual skill control method and apparatus, device, storage medium, and program product
JP7391448B2 (en) Virtual object control method, device, equipment, storage medium and computer program product
WO2022105362A1 (en) Virtual object control method and apparatus, device, storage medium, and computer program product
TWI796804B (en) Location adjusting method, device, equipment, storage medium, and program product for virtual buttons
CN113350779A (en) Game virtual character action control method and device, storage medium and electronic equipment
CN111773677B (en) Game control method and device, computer storage medium and electronic equipment
CN112138385B (en) Virtual shooting prop aiming method and device, electronic equipment and storage medium
CN114721566B (en) Virtual object control method and device, storage medium and equipment
CN109847344A (en) Virtual reality exchange method and device, storage medium, electronic equipment
CN115120979A (en) Display control method and device of virtual object, storage medium and electronic device
CN108415570A (en) Control selection method based on augmented reality and device
CN116688502A (en) Position marking method, device, equipment and storage medium in virtual scene
CN113908544A (en) Information interaction method and device and electronic equipment
CN113694514A (en) Object control method and device
WO2023221944A1 (en) Virtual character control method and apparatus, and electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230828

Address after: Room 2075, Zone A, Floor 2, No. 2, Lane 99, Jiajie Road, Zhaoxiang Town, Qingpu District, Shanghai, 200000

Applicant after: Netease (Shanghai) Network Co.,Ltd.

Address before: 310052 Netease building, No. 599, Wangshang Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant before: NETEASE (HANGZHOU) NETWORK Co.,Ltd.

GR01 Patent grant
GR01 Patent grant