Virtual character control method and device, electronic equipment, storage medium and program product
By providing a graphical user interface and shooting controls in shooting electronic games, directly switching the multiple of the scope while the scope is turned on, the problem of cumbersome switching process in the existing technology is solved, and a fast-paced and refreshing game experience is achieved .
Patent Information
- Application Number
- CN202411459984.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-01-03
AI Technical Summary
The process of switching scopes with different multiples in existing shooting video games is cumbersome and cannot meet the needs of fast-paced and refreshing game environments.
By providing a graphical user interface, responding to the operation of the shooting control, directly switch the multiple of the scope when the scope is turned on, simplifying the process, including shooting controls, scope controls and multiplier adjustment sub-controls, users can switch differently by triggering operations. Magnification.
It realizes the rapid switching of multiples when the scope is turned on, reducing the time interval between two rounds of shooting, meeting the fast-paced needs of shooting games, and improving the refreshing feeling of the game.
Smart Images

Figure CN119236400A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic computers and Internet technology, and in particular to a method, device, electronic device, storage medium and program product for controlling a virtual character. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the disclosure that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.
[0003] In electronic games based on electronic computers and Internet technologies, especially in shooting electronic games, a sight is usually provided to assist the user to aim at the target more accurately.
[0004] In order to improve the accuracy of shooting, the scope usually provides different magnifications to help players aim at distant targets more accurately, especially in long-range shooting, which allows players to see farther targets and reduce errors when shooting.
[0005] In aiming mode, the player's field of vision will observe the target through the scope. Therefore, in the related art, when it is necessary to switch to a scope of a different magnification, the player usually needs to first close the current scope, open the game equipment interface such as the backpack interface, select the scope of the target magnification in the game equipment interface and equip it, then close the game equipment interface, and reopen the scope. Only then can the switching of scopes of different magnifications be achieved.
[0006] However, the above-mentioned solution of switching between scopes of different magnifications is relatively complicated and cannot meet the requirements of shooting electronic games for a fast-paced and exciting gaming environment. Summary of the invention
[0007] In view of this, the purpose of the present disclosure is to provide a control method, device, electronic device, storage medium and program product for a virtual character, which at least to a certain extent solve one of the technical problems in the related art.
[0008] Based on the above purpose, the first aspect of the exemplary embodiment of the present disclosure provides a method for controlling a virtual character, wherein a graphical user interface is provided through a terminal, and the content displayed by the graphical user interface includes a shooting control, and the method includes:
[0009] In response to a first trigger operation on the shooting control, controlling the virtual character to perform a shooting action on an object aimed at by the virtual crosshairs;
[0010] In response to a second trigger operation on the shooting control, the graphical user interface is controlled to display a scope control, wherein the scope control includes a picture display sub-control and a magnification adjustment sub-control, wherein the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications;
[0011] In response to a selection operation on any one of the magnification areas in the magnification adjustment subcontrol, controlling the image display subcontrol to display at a magnification corresponding to the selected magnification area;
[0012] When the picture display sub-control is displayed at the magnification corresponding to the selected magnification area, in response to the third trigger operation on the shooting control, the virtual character is controlled to perform a shooting action on the object aimed at by the virtual crosshairs in the picture displayed by the picture display sub-control.
[0013] Based on the same inventive concept, a second aspect of the exemplary embodiment of the present disclosure provides a control device for a virtual character, wherein a graphical user interface is provided through a terminal, and the content displayed by the graphical user interface includes a shooting control, and the device includes:
[0014] a non-scope shooting execution module, configured to control the virtual character to execute a shooting action on an object aimed at by a virtual crosshair in response to a first trigger operation on the shooting control;
[0015] a scope activation module, configured to control the graphical user interface to display a scope control in response to a second trigger operation on the shooting control, wherein the scope control includes a picture display sub-control and a magnification adjustment sub-control, wherein the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications;
[0016] The sight magnification adjustment module is configured to control the image display subcontrol to display at the magnification corresponding to the selected magnification area in response to a selection operation on any one of the magnification areas in the magnification adjustment subcontrol;
[0017] The scope shooting execution module is configured to control the virtual character to perform a shooting action on the object aimed at by the virtual crosshairs in the picture displayed by the picture display subcontrol in response to a third trigger operation on the shooting control when the picture display subcontrol is displayed at the magnification corresponding to the selected magnification area.
[0018] Based on the same inventive concept, a third aspect of the exemplary embodiment of the present disclosure provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the first aspect is implemented.
[0019] Based on the same inventive concept, a fourth aspect of the exemplary embodiments of the present disclosure provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method described in the first aspect.
[0020] Based on the same inventive concept, a fifth aspect of the exemplary embodiments of the present disclosure provides a computer program product, including computer program instructions. When the computer program instructions are executed on a computer, the computer executes the method described in the first aspect.
[0021] As can be seen from the above, the control method, device, electronic device, storage medium and program product of the virtual character provided by the embodiment of the present disclosure include: in response to the first trigger operation for the shooting control, controlling the virtual character to perform a shooting action on the object aimed at by the virtual crosshair; in response to the second trigger operation for the shooting control, controlling the graphical user interface to display the sight control, the sight control includes a screen display subcontrol and a magnification adjustment subcontrol, the magnification adjustment subcontrol includes a plurality of magnification areas, and different magnification areas correspond to different magnifications; in response to the selection operation for any of the magnification areas in the magnification adjustment subcontrol, controlling the screen display subcontrol to display with the magnification corresponding to the selected magnification area; when the screen display subcontrol is displayed with the magnification corresponding to the selected magnification area, in response to the third trigger operation for the shooting control, controlling the virtual character to perform a shooting action on the object aimed at by the virtual crosshair in the screen displayed by the screen display subcontrol. In the present disclosure, when the sight is turned on, the magnification of the sight can be directly switched, the process is relatively simple, and the requirements of shooting electronic games for a fast-paced and refreshing game environment can be met. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1a A schematic diagram of a solution for switching between sights of different magnifications in the related art;
[0024] Figure 1b Another schematic diagram of a solution for switching between sights of different magnifications in the related art;
[0025] Figure 1cAnother schematic diagram of a solution for switching between sights of different magnifications in the related art;
[0026] Figure 1d Another schematic diagram of a solution for switching between sights of different magnifications in the related art;
[0027] Figure 1e Another schematic diagram of a solution for switching between sights of different magnifications in the related art;
[0028] Figure 2 A schematic diagram of an application scenario of a method for controlling a virtual character provided by an exemplary embodiment of the present disclosure;
[0029] Figure 3 A schematic flow chart of a method for controlling a virtual character provided by an exemplary embodiment of the present disclosure;
[0030] Figure 4 A schematic diagram of another application scenario of the method for controlling a virtual character provided by an exemplary embodiment of the present disclosure;
[0031] Figure 5 A schematic diagram of another application scenario of the method for controlling a virtual character provided by an exemplary embodiment of the present disclosure;
[0032] Figure 6 A schematic diagram of another application scenario of the method for controlling a virtual character provided by an exemplary embodiment of the present disclosure;
[0033] Figure 7 A schematic diagram of another application scenario of the method for controlling a virtual character provided by an exemplary embodiment of the present disclosure;
[0034] Figure 8 A schematic diagram of another application scenario of the method for controlling a virtual character provided by an exemplary embodiment of the present disclosure;
[0035] Fig. 9 A schematic diagram of a structure of a control device for a virtual character provided by an exemplary embodiment of the present disclosure;
[0036] Fig.10 A schematic structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0037] It is understandable that before using the technical solutions disclosed in the embodiments of this application, the type, scope of use, usage scenarios, etc. of the personal information involved in this application should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0038] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present application according to the prompt message.
[0039] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0040] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation method of the present application. Other methods that meet the relevant laws and regulations may also be applied to the implementation method of the present application.
[0041] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0042] In order to make the purpose, technical solutions and advantages of the present disclosure more clear, the principles and spirit of the present disclosure will be described with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present disclosure, and are not intended to limit the scope of the present disclosure in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0043] It should be understood herein that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.
[0044] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connecting" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly. The article "one" or "a" before an element does not exclude the existence of multiple such elements.
[0045] The principle and spirit of the present disclosure are explained in detail below with reference to several representative embodiments of the present disclosure.
[0046] As described in the background art, in electronic games based on electronic computers and Internet technologies, especially in shooting electronic games, a sight is usually provided to assist the user to aim at the target more accurately.
[0047] In order to improve the accuracy of shooting, the scope usually provides different magnifications to help players aim at distant targets more accurately, especially in long-range shooting, which allows players to see farther targets and reduce errors when shooting.
[0048] Below, a specific example will be used to introduce the solution of switching between scopes of different magnifications in the related art:
[0049] refer to Figure 1a , wherein a graphical user interface is provided through the terminal, and the contents displayed in the graphical user interface include the scope that has been turned on, the shooting control, the scope control and the backpack control. Since the scope has been turned on, the player's field of vision observes the target through the scope. Therefore, when it is necessary to switch to a scope of a different magnification, the player first needs to trigger the scope control to turn off the currently equipped scope.
[0050] refer to Figure 1b Among them, after the player turns off the currently equipped scope by triggering the scope control, it is necessary to trigger the backpack control to open the backpack interface, so as to select the scope with the target magnification in the backpack interface and equip it.
[0051] refer to Figure 1cAmong them, after the player opens the backpack interface by triggering the backpack control, he needs to select the scope with the target magnification in the backpack interface and equip it.
[0052] refer to Figure 1d , where after the player selects a scope of the target magnification in the backpack interface and equips it, the backpack interface can be closed automatically, or the backpack interface can be closed by triggering the backpack control again. In addition, the player needs to trigger the scope control again to open the scope of the currently equipped target magnification. Only then can the switching of scopes of different magnifications be realized.
[0053] refer to Figure 1e , wherein, when the player triggers the scope control again to turn on the scope of the currently equipped target magnification, the player's field of vision observes the target through the scope of the currently equipped target magnification, and can perform shooting actions on the target by triggering the shooting control.
[0054] However, the inventors of the present disclosure have discovered that the above-mentioned solution for switching between scopes of different magnifications is relatively complicated and cannot meet the requirements of shooting electronic games for a fast-paced and exciting gaming environment.
[0055] In order to solve the above problems, the present disclosure provides an auxiliary aiming solution, which specifically includes: providing a graphical user interface through a terminal, the content displayed by the graphical user interface includes a shooting control; in response to a first trigger operation on the shooting control, controlling a virtual character to perform a shooting action on an object aimed at by a virtual crosshair; in response to a second trigger operation on the shooting control, controlling the graphical user interface to display a scope control, the scope control including a screen display subcontrol and a magnification adjustment subcontrol, the magnification adjustment subcontrol including a plurality of magnification areas, and different magnification areas corresponding to different magnifications; in response to a selection operation on any one of the magnification areas in the magnification adjustment subcontrol, controlling the screen display subcontrol to display at the magnification corresponding to the selected magnification area; when the screen display subcontrol is displayed at the magnification corresponding to the selected magnification area, in response to a third trigger operation on the shooting control, controlling the virtual character to perform a shooting action on the object aimed at by the virtual crosshair in the screen displayed by the screen display subcontrol.
[0056] In the present disclosure, when the scope is turned on, the magnification of the scope can be directly switched without first closing the scope of the current magnification and equipping the scope of the target magnification and then opening the scope of the target magnification. The process is relatively simple, and the time interval between two rounds of shooting based on scopes of different magnifications is greatly reduced, which can meet the needs of shooting electronic games for a fast-paced game environment. In addition, the switching of scopes of different magnifications is relatively smooth, which can meet the needs of shooting electronic games for a refreshing game environment.
[0057] After introducing the basic principles of the present disclosure, various non-limiting embodiments of the present disclosure are described in detail below.
[0058] refer to Figure 2 , which is a schematic diagram of an application scenario of the virtual character control method provided by the exemplary embodiment of the present disclosure.
[0059] This application scenario includes a terminal device 101, a server 102, and a data storage system 103. The terminal device 101, the server 102, and the data storage system 103 may be connected via a wired or wireless communication network to achieve data interaction.
[0060] The terminal device 101 may be an electronic device with data transmission and multimedia input / output functions close to the user side, including but not limited to a desktop computer, a mobile phone, a mobile computer, a tablet computer, a media player, a smart wearable device, a personal digital assistant (PDA) or other electronic devices capable of realizing the above functions. The electronic device may include a processor and a display screen with a touch input function, the display screen is used to present a graphical user interface, the graphical user interface can display an application interface, and the processor is used to process application data, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0061] Server 102 and data storage system 103 can both be independent physical servers, or a server cluster or distributed system composed of multiple physical servers. They can also be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0062] In some exemplary embodiments, the method for controlling a virtual character may be executed on the terminal device 101 or the server 102 .
[0063] When the control method of the virtual character is run on the terminal device 101, the terminal device stores the game program and is used to present the game screen. The terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed and run by the conventional electronic device. The terminal device can provide the graphical user interface to the player in a variety of ways, for example, it can be rendered and displayed on the display screen of the terminal, or provided to the player through a holographic projection. For example, the terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0064] When the control method of the virtual character is run on the terminal device 101, the terminal device 101 may include a display screen and a processor. The terminal device 101 is installed with a client, and a graphical user interface is provided through the client, and the display screen displays the graphical user interface, and the content displayed by the graphical user interface includes a shooting control; the processor controls the virtual character to perform a shooting action on the object aimed at by the virtual crosshair in response to the user's first trigger operation on the shooting control; the processor controls the graphical user interface to display a scope control in response to the user's second trigger operation on the shooting control, and the scope control includes a screen display subcontrol and a magnification adjustment subcontrol, and the magnification adjustment subcontrol includes a plurality of magnification areas, and different magnification areas correspond to different magnifications; the processor controls the screen display subcontrol to display at the magnification corresponding to the selected magnification area in response to the user's selection operation on any of the magnification areas in the magnification adjustment subcontrol; when the screen display subcontrol is displayed at the magnification corresponding to the selected magnification area, the processor controls the virtual character to perform a shooting action on the object aimed at by the virtual crosshair in the screen displayed by the screen display subcontrol in response to the user's third trigger operation on the shooting control.
[0065] In the above embodiment, the control method of the virtual character is described by taking the case where the control method of the virtual character is run on the terminal device 101 as an example. However, the present disclosure is not limited thereto. In some exemplary embodiments, the control method of the virtual character may also be run on the server 102 .
[0066] When the control method of the virtual character runs on the server 102, the method can be implemented and executed based on the cloud interaction system.
[0067] Among them, the cloud interaction system includes client devices and cloud game servers.
[0068] In some exemplary embodiments, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operation subject of the game program and the game screen presentation subject are separated. The storage and operation of the control method of the mobile state in the game are completed on the cloud game server. The role of the client device is to receive and send data and present the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is responsible for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0069] The data storage system 103 is used to assist the terminal device 101 and the server 102 in data storage.
[0070] Combine the following Figure 2 The control method of the virtual character according to the exemplary embodiment of the present disclosure is described by using the application scenario. It should be noted that the above application scenario is only shown to facilitate understanding of the spirit and principle of the present disclosure, and the embodiments of the present disclosure are not limited in this respect. On the contrary, the embodiments of the present disclosure can be applied to any applicable scenario.
[0071] refer to Figure 3 , which is a flow chart of a method for controlling a virtual character provided by an exemplary embodiment of the present disclosure.
[0072] A method for controlling a virtual character provides a graphical user interface through a terminal, wherein the content displayed by the graphical user interface includes a shooting control.
[0073] Next, we will introduce the graphical user interface, specifically:
[0074] In this exemplary embodiment, a graphical user interface (GUI for short) refers to a computer operation user interface displayed in a graphical manner.
[0075] In specific implementation, a graphical user interface is an interface display format for communication between people and computers, allowing users to use input devices such as a mouse to manipulate icons or menu options on the screen to select commands, call files, start programs, or perform other daily tasks. Compared with character interfaces that use keyboard input of text or character commands to complete routine tasks, graphical user interfaces have many advantages. Graphical user interfaces are composed of windows, drop-down menus, dialog boxes, and their corresponding control mechanisms. They are standardized in various new applications, that is, the same operations are always completed in the same way. In a graphical user interface, users see and operate graphic objects, and computer graphics technology is applied.
[0076] In this exemplary embodiment, the height of the graphical user interface is greater than its width.
[0077] In a specific implementation, the graphical user interface is a vertical screen interface. Compared with the horizontal screen interface, the vertical screen interface is more suitable for mobile devices such as mobile phones and one-handed operation implemented on the mobile device, which can improve the portability of the mobile device and the convenience of one-handed operation.
[0078] In this exemplary embodiment, the control method of the virtual character provided by the present disclosure is mainly aimed at shooting electronic games implemented based on a vertical screen interface.
[0079] Compared with shooting electronic games based on a horizontal screen interface in the related art, shooting electronic games based on a vertical screen interface have the advantage of convenient one-handed operation, and the control method of the virtual character provided in the present disclosure will further inherit and amplify this advantage.
[0080] Compared with shooting electronic games based on a horizontal screen interface in the related art, shooting electronic games based on a vertical screen interface have the disadvantage of having a smaller horizontal space and therefore cannot accommodate more side-by-side interactive elements. The control method of the virtual character provided by the present invention can overcome the inconvenience of interaction caused by the reduction of side-by-side interactive elements to a certain extent, thereby improving the convenience of interaction.
[0081] In the above exemplary embodiment, a graphical user interface is introduced. Next, the shooting control displayed by the graphical user interface will be introduced, specifically:
[0082] In this exemplary embodiment, in terms of its function, the shooting control is an element in the graphical user interface that allows the user to perform shooting operations.
[0083] In a specific implementation, the shooting control refers to a control that a player triggers to express his intention to shoot at a target in a game scene.
[0084] In this exemplary embodiment, from the perspective of its implementation, the shooting control is a virtual button, which does not exist physically but is displayed on the screen. When the terminal is a device that supports a touch screen, the user can interact with it through the screen; when the terminal is a device that does not support a touch screen, the user can interact with it through a mouse or keyboard.
[0085] During specific implementation, the shape, size and position of the shooting control in the graphical user interface can be set accordingly based on the specific hardware and software parameters of the client device to which the method of this embodiment is applied. The above specific settings are not specifically limited in this embodiment.
[0086] During specific implementation, the shape, size and position of the shooting control in the graphical user interface should be such as to avoid blocking other content displayed in the graphical user interface. For example, the area occupied by the shooting control in the graphical user interface should be smaller than the overall graphical user interface, and the shooting control should be located at the edge or corner of the graphical user interface.
[0087] During specific implementation, the shape, size and position of the shooting control in the graphical user interface are preferably designed to facilitate interaction, for example, the shooting control is located at a position in the graphical user interface where the user's finger has a higher retention rate.
[0088] In the above exemplary embodiments, a graphical user interface and a shooting control displayed by the graphical user interface are introduced. However, on the basis that the shooting control is used to realize the shooting function, the present disclosure expands the function of the shooting control and can also be used to realize the magnification adjustment function of the scope. Specifically:
[0089] The exemplary embodiment of the present disclosure provides a method for controlling a virtual character, comprising the following steps:
[0090] Step S210: In response to a first trigger operation on the shooting control, the virtual character is controlled to perform a shooting action on an object aimed at by the virtual crosshairs.
[0091] In the above exemplary example, a shooting control is introduced. Next, the first trigger operation for the shooting control will be introduced, specifically:
[0092] In this exemplary embodiment, the first trigger operation refers to an operation inputted by the player in a touch manner acting on a certain position on the shooting control, which is used to realize the player's intention to select the shooting control or a certain position on the shooting control.
[0093] In specific implementation, the first trigger operation can be a single click, double click, long press, heavy press or slide, etc. For example, for a long press, the duration that the user needs to maintain the long press can be set accordingly according to the specific implementation needs, for example, it can be 1 second, 2 seconds, etc.; and for a single click, double click or heavy press, its specific parameters such as the duration of action, operation interval, pressing force, etc. can be set accordingly according to the specific hardware and software parameters of the client device to which the method of this embodiment is applied, and the above specific settings are not specifically limited in this embodiment. In addition, the first trigger operation can also be any other simple and feasible first trigger operation that is different from the trigger operation in the prior art in addition to the above examples. Because the graphical user interface of the vertical screen game provides limited controls for players to manipulate, and players often have the need for one-handed operation. In order to maximize the role of a single control, the shooting control can also take into account the function of adjusting the shooting crosshairs (i.e. aiming), for example, the player can adjust the shooting crosshairs by sliding the shooting control or sliding the initial touch point on the shooting control. If the first trigger operation is a single-click operation, the player can first slide the shooting control to align the crosshairs with the target, and then single-click the shooting control to shoot; if the player performs the first trigger operation on the shooting control (such as double-clicking, pressing hard, long pressing, etc.) to trigger the virtual character to enter an automatic shooting or continuous shooting state, the player can continue to slide the shooting control to adjust the crosshairs, so that the virtual character controlled by the player can adjust the crosshairs while shooting.
[0094] refer to Figure 4 As a specific example, the graphical user interface 300 displays a shooting control 310, and in response to a first trigger operation on the shooting control 310, the virtual character is controlled to perform a shooting action on an object 322 aimed at by a virtual crosshair 320.
[0095] In the above exemplary embodiments, a shooting control is introduced for realizing a shooting function. Next, a shooting control extended by the present disclosure is introduced for realizing a magnification adjustment function of a sight. Specifically:
[0096] Step S220, in response to a second trigger operation on the shooting control, controlling the graphical user interface to display a scope control, wherein the scope control includes a screen display sub-control and a magnification adjustment sub-control, wherein the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications.
[0097] In the above exemplary example, the shooting control and the first trigger operation for the shooting control are introduced. Next, the second trigger operation for the shooting control will be introduced. Specifically:
[0098] In this exemplary embodiment, the second trigger operation refers to an operation that the player inputs by touch on a certain position on the shooting control, which is used to realize the player's intention to select the shooting control or a certain position on the shooting control.
[0099] In specific implementation, the second trigger operation can be a single click, double click, long press, hard press or slide, etc. For example, for a long press, the duration that the user needs to maintain the long press can be set accordingly according to specific implementation needs, such as 1 second, 2 seconds, etc.; and for a single click, double click or hard press, its specific parameters such as action duration, operation interval, pressing force, etc. can be set accordingly according to the specific hardware and software parameters of the client device to which the method of this embodiment is applied, and the above specific settings are not specifically limited in this embodiment. In addition, the second trigger operation can also be any other simple and feasible second trigger operation that is different from the trigger operation in the prior art in addition to the above examples.
[0100] It should be noted that, on the basis of the shooting control being used to realize the shooting function, the present disclosure expands the function of the shooting control, and can also be used to realize the magnification adjustment function of the sight. Specifically, the first trigger operation is used to realize the shooting function (which can be the shooting function without using the sight), and the second trigger operation is used to realize the magnification adjustment function of the sight. Therefore, the first trigger operation and the second trigger operation are different from each other. When the first trigger operation is one of single-click, double-click, long-press, heavy-press or sliding, the second trigger operation is one of single-click, double-click, long-press, heavy-press or sliding, which is different from the first trigger operation.
[0101] As a specific example, the first trigger operation is a single click, and the second trigger operation is a long press.
[0102] In the above exemplary example, the second trigger operation for the shooting control is introduced. The following will introduce the scope control displayed on the graphical user interface after the second trigger operation for the shooting control, specifically:
[0103] During specific implementation, the shape, size and position of the scope control in the graphical user interface can be set accordingly based on the specific hardware and software parameters of the client device to which the method of this embodiment is applied. The above-mentioned specific settings are not specifically limited in this embodiment.
[0104] During specific implementation, the shape, size and position of the scope control in the graphical user interface should be such as to avoid blocking other content displayed in the graphical user interface. For example, the area occupied by the scope control in the graphical user interface should be smaller than the overall graphical user interface, and the scope control should be located at the edge or corner of the graphical user interface.
[0105] In a specific implementation, the shape, size and position of the scope control in the graphical user interface should be convenient for interaction, for example, the position where the user's finger stays more frequently in the graphical user interface.
[0106] In this exemplary embodiment, the graphical user interface is controlled to display a scope control, the scope control includes a screen display sub-control and a magnification adjustment sub-control, the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications, including:
[0107] controlling the graphical user interface to display the scope controls around the shooting controls;
[0108] Among them, the magnification adjustment sub-control is closer to the shooting control than the picture display sub-control.
[0109] In this exemplary embodiment, the shooting control is circular;
[0110] The magnification adjustment sub-control is in the form of a fan ring surrounding the shooting control.
[0111] In the above exemplary examples, the shape and size of the scope control and its position in the graphical user interface are introduced. Next, the method for determining the magnification corresponding to the magnification adjustment sub-control in the scope control will be introduced. Specifically:
[0112] In this exemplary embodiment, in response to the second trigger operation on the shooting control, the graphical user interface is controlled to display a scope control, the scope control includes a screen display sub-control and a magnification adjustment sub-control, the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications, including:
[0113] In response to the second trigger operation on the shooting control, determining the information of the scope of all magnifications that have been acquired;
[0114] Based on the information of the sights of all magnifications, determine all magnifications corresponding to the magnification adjustment subcontrols to be generated;
[0115] The graphical user interface is controlled to display the scope control, wherein the scope control includes the screen display sub-control and the magnification adjustment sub-control, and the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications.
[0116] refer to Figure 5As a specific example, a graphical user interface 300 displays a shooting control 310. In response to a second trigger operation on the shooting control 310, the graphical user interface 300 is controlled to display a scope control, wherein the scope control includes a screen display sub-control 334 and a magnification adjustment sub-control 332. The magnification adjustment sub-control 332 includes a plurality of magnification areas, and different magnification areas correspond to different magnifications.
[0117] The shooting control 310 is circular, and the magnification adjustment subcontrol 332 is a fan-shaped ring surrounding the shooting control 310. Obviously, the specific arrangement of the magnification adjustment subcontrol is shown in the figure of the specification, and can also be arranged in other ways, such as vertical arrangement or horizontal arrangement.
[0118] Since the magnification of the scope has not been selected at this stage, the object 322 aimed at by the virtual crosshairs 320 is not magnified.
[0119] Step S230: In response to a selection operation on any one of the magnification areas in the magnification adjustment subcontrol, control the screen display subcontrol to display at a magnification corresponding to the selected magnification area.
[0120] refer to Figure 6 As a specific example, the graphical user interface 300 displays a scope control, which includes a screen display sub-control 334 and a magnification adjustment sub-control 332. The magnification adjustment sub-control 332 includes a plurality of magnification areas, and different magnification areas correspond to different magnifications.
[0121] In response to the selection operation of any magnification area in the magnification adjustment subcontrol 332, the screen display subcontrol 334 is controlled to display the magnification corresponding to the selected magnification area. Since the magnification of the sight has been selected at this stage, the object 322 aimed at by the virtual crosshair 320 is magnified.
[0122] The following describes how to select the multiple area in the multiple adjustment subcontrol, specifically:
[0123] In this exemplary embodiment, the second trigger operation is a long press operation.
[0124] The operation of selecting any one of the multiple areas in the multiple adjustment subcontrol includes:
[0125] In response to a sliding operation in which the starting position is the shooting control and the end position is the multiple area, the multiple area corresponding to the end position is used as the selected multiple area;
[0126] The sliding operation and the long pressing operation are continuous operations.
[0127] In this exemplary embodiment, the second trigger operation is a long press operation.
[0128] The operation of selecting any one of the multiple areas in the multiple adjustment subcontrol includes:
[0129] In response to a sliding operation in which the sliding direction is from the shooting control to the multiple area and the end point position is outside the multiple adjustment sub-control, the multiple area passed by the sliding operation is used as the selected multiple area;
[0130] The sliding operation and the long pressing operation are continuous operations.
[0131] The following will introduce the method of selecting a multiple area from the multiple adjustment subcontrol 332 through some specific examples:
[0132] refer to Figure 7 As a specific example, a graphical user interface displays a shooting control 310. When a user long presses the shooting control 310, the graphical user interface is controlled to display a scope control. The scope control includes a magnification adjustment sub-control 332. The magnification adjustment sub-control 332 includes several magnification areas, and different magnification areas correspond to different magnifications.
[0133] The user's finger continues to move from the shooting control 310 to the target magnification area. When the finger moves to the target magnification area, the sight adopts the magnification corresponding to the target magnification area.
[0134] refer to Figure 8 As a specific example, a graphical user interface displays a shooting control 310. When a user long presses the shooting control 310, the graphical user interface is controlled to display a scope control. The scope control includes a magnification adjustment sub-control 332. The magnification adjustment sub-control 332 includes several magnification areas, and different magnification areas correspond to different magnifications.
[0135] The user's finger continues to move from the shooting control 310 to the target magnification area, and after moving to the target magnification area, continues to move outward to allow the sight to lock the magnification corresponding to the target magnification area.
[0136] In the above exemplary embodiment, a method of selecting a multiple area in the multiple adjustment subcontrol is introduced. Next, a method of switching the selected multiple area in the multiple adjustment subcontrol will be introduced. Specifically:
[0137] In this exemplary embodiment, when any one of the multiple areas in the multiple adjustment subcontrol is selected, the method further includes:
[0138] In response to a selection operation on any other magnification area in the magnification adjustment subcontrol except the currently selected magnification area, the screen display subcontrol is controlled to display at the magnification corresponding to the updated selected magnification area.
[0139] In the above exemplary embodiments, a method of selecting a magnification area in the magnification adjustment subcontrol and a method of switching the selected magnification area in the magnification adjustment subcontrol are introduced. Next, a method of canceling the magnification will be introduced, specifically:
[0140] In this exemplary embodiment, in response to the selection operation of any one of the magnification areas in the magnification adjustment subcontrol, after controlling the screen display subcontrol to display at the magnification corresponding to the selected magnification area, the method further includes:
[0141] In response to a fourth trigger operation on the selected magnification area, the graphical user interface is controlled to cancel displaying the scope control.
[0142] In this exemplary embodiment, the fourth trigger operation refers to an operation performed by the player on a certain position on the multiplier adjustment sub-control by touch input, which is used to realize the player's intention to select the multiplier adjustment sub-control or a certain position on the multiplier adjustment sub-control.
[0143] In specific implementation, the fourth trigger operation can be a single click, double click, long press, hard press or slide, etc. For example, for a long press, the duration that the user needs to maintain the long press can be set accordingly according to specific implementation needs, such as 1 second, 2 seconds, etc.; and for a single click, double click or hard press, its action duration, operation interval, pressing force and other specific parameters can be set accordingly according to the specific hardware and software parameters of the client device to which the method of this embodiment is applied, and the above specific settings are not specifically limited in this embodiment. In addition, the fourth trigger operation can also be any other simple and feasible fourth trigger operation that is different from the trigger operation in the prior art in addition to the above examples.
[0144] As a specific example, the fourth trigger operation is a single click.
[0145] Step S240: When the screen display sub-control is displayed at the magnification corresponding to the selected magnification area, in response to a third trigger operation on the shooting control, control the virtual character to perform a shooting action on the object aimed at by the virtual crosshairs in the screen displayed by the screen display sub-control.
[0146] In this exemplary embodiment, the third trigger operation refers to an operation that the player inputs by touch on a certain position on the shooting control, which is used to realize the player's intention to select the shooting control or a certain position on the shooting control.
[0147] In specific implementation, the third trigger operation can be a single click, double click, long press, hard press or slide, etc. For example, for a long press, the duration that the user needs to maintain the long press can be set accordingly according to specific implementation needs, such as 1 second, 2 seconds, etc.; and for a single click, double click or hard press, its action duration, operation interval, pressing force and other specific parameters can be set accordingly according to the specific hardware and software parameters of the client device to which the method of this embodiment is applied, and the above specific settings are not specifically limited in this embodiment. In addition, the third trigger operation can also be any feasible third trigger operation other than the above examples, which is simple and different from the trigger operation in the prior art.
[0148] As a specific example, the third trigger operation is a single click.
[0149] As a specific example, when the shooting control also has the function of adjusting the shooting crosshairs (i.e. aiming), after the player opens the scope through the second touch operation, the player can adjust the shooting crosshairs by sliding the shooting control or sliding the shooting control with the initial touch point located at the shooting control. If the third trigger operation is a single-click operation, the player can first slide the shooting control to aim the crosshairs at the target, and then single-click the shooting control to shoot; if the player performs the third trigger operation (such as double-clicking, pressing hard, long pressing, etc.) on the shooting control to trigger the virtual character to enter the state of automatic shooting or continuous shooting, the player can continue to slide the shooting control to adjust the crosshairs, so that the virtual character controlled by the player can adjust the crosshairs while shooting.
[0150] In this exemplary embodiment, after the screen display sub-control is displayed at the magnification corresponding to the selected magnification area, the player can aim based on the enlarged screen to improve the accuracy of the shooting, especially in long-range shooting, it allows the player to see farther targets and helps the player to aim at distant targets more accurately to reduce errors when shooting.
[0151] As can be seen from the above, the control method of the virtual character provided by the embodiment of the present disclosure includes: in response to a first trigger operation on the shooting control, controlling the virtual character to perform a shooting action on an object aimed at by a virtual crosshair; in response to a second trigger operation on the shooting control, controlling the graphical user interface to display a scope control, the scope control including a screen display subcontrol and a magnification adjustment subcontrol, the magnification adjustment subcontrol including a plurality of magnification areas, and different magnification areas corresponding to different magnifications; in response to a selection operation on any one of the magnification areas in the magnification adjustment subcontrol, controlling the screen display subcontrol to display at the magnification corresponding to the selected magnification area; when the screen display subcontrol is displayed at the magnification corresponding to the selected magnification area, in response to a third trigger operation on the shooting control, controlling the virtual character to perform a shooting action on the object aimed at by the virtual crosshair in the screen displayed by the screen display subcontrol.
[0152] In the present disclosure, when the scope is turned on, the magnification of the scope can be directly switched, and the process is relatively simple, which can meet the needs of shooting electronic games for a fast-paced and refreshing gaming environment.
[0153] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.
[0154] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0155] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure further provides a control device for a virtual character.
[0156] refer to Fig. 9 , a control device for a virtual character, providing a graphical user interface through a terminal, wherein the content displayed by the graphical user interface includes a shooting control, and the device includes the following modules:
[0157] The non-scope shooting execution module 910 is configured to control the virtual character to perform a shooting action on the object aimed at by the virtual crosshairs in response to the first trigger operation on the shooting control;
[0158] The scope activation module 920 is configured to control the graphical user interface to display a scope control in response to a second trigger operation on the shooting control, wherein the scope control includes a picture display sub-control and a magnification adjustment sub-control, and the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications;
[0159] The sight magnification adjustment module 930 is configured to control the image display subcontrol to display at the magnification corresponding to the selected magnification area in response to a selection operation on any one of the magnification areas in the magnification adjustment subcontrol;
[0160] The scope shooting execution module 940 is configured to control the virtual character to perform a shooting action on the object aimed at by the virtual crosshairs in the picture displayed by the picture display subcontrol in response to a third trigger operation on the shooting control when the picture display subcontrol is displayed at the magnification corresponding to the selected magnification area.
[0161] In some exemplary embodiments, the scope opening module 920 is specifically configured to:
[0162] controlling the graphical user interface to display the scope controls around the shooting controls;
[0163] Among them, the magnification adjustment sub-control is closer to the shooting control than the picture display sub-control.
[0164] In some exemplary embodiments, the shooting control is circular;
[0165] The magnification adjustment sub-control is in the form of a fan ring surrounding the shooting control.
[0166] In some exemplary embodiments, the scope opening module 920 is specifically configured to:
[0167] In response to the second trigger operation on the shooting control, determining the information of the scope of all magnifications that have been acquired;
[0168] Based on the information of the sights of all magnifications, determine all magnifications corresponding to the magnification adjustment subcontrols to be generated;
[0169] The graphical user interface is controlled to display the scope control, wherein the scope control includes the screen display sub-control and the magnification adjustment sub-control, and the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications.
[0170] In some exemplary embodiments, when any one of the multiple areas in the multiple adjustment sub-control is selected, the device is further configured to:
[0171] In response to a selection operation on any other magnification area in the magnification adjustment subcontrol except the currently selected magnification area, the screen display subcontrol is controlled to display at the magnification corresponding to the updated selected magnification area.
[0172] In some exemplary embodiments, the second trigger operation is a long press operation, and the scope magnification adjustment module 930 is specifically configured as follows:
[0173] In response to a sliding operation in which the starting position is the shooting control and the end position is the multiple area, the multiple area corresponding to the end position is used as the selected multiple area;
[0174] The sliding operation and the long pressing operation are continuous operations.
[0175] In some exemplary embodiments, the second trigger operation is a long press operation, and the scope magnification adjustment module 930 is specifically configured as follows:
[0176] In response to a sliding operation in which the sliding direction is from the shooting control to the multiple area and the end point position is outside the multiple adjustment sub-control, the multiple area passed by the sliding operation is used as the selected multiple area;
[0177] The sliding operation and the long pressing operation are continuous operations.
[0178] In some exemplary embodiments, the apparatus is further configured to:
[0179] In response to a fourth trigger operation on the selected magnification area, the graphical user interface is controlled to cancel displaying the scope control.
[0180] In some exemplary embodiments, the graphical user interface is taller than it is wide.
[0181] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0182] The device of the above embodiment is used to implement the control method of the corresponding virtual character in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0183] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the control method of the virtual character described in any of the above embodiments is implemented.
[0184] Fig.10 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0185] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0186] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0187] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0188] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0189] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0190] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0191] The electronic device of the above embodiment is used to implement the control method of the corresponding virtual character in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0192] The memory 1020 stores machine-readable instructions executable by the processor 1010. When the electronic device is running, the processor 1010 communicates with the memory 1020 via the bus 1030, so that the processor 1010 executes the following instructions when running:
[0193] In response to a first trigger operation on the shooting control, controlling the virtual character to perform a shooting action on an object aimed at by the virtual crosshairs;
[0194] In response to a second trigger operation on the shooting control, the graphical user interface is controlled to display a scope control, wherein the scope control includes a picture display sub-control and a magnification adjustment sub-control, wherein the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications;
[0195] In response to a selection operation on any one of the magnification areas in the magnification adjustment subcontrol, controlling the image display subcontrol to display at a magnification corresponding to the selected magnification area;
[0196] When the picture display sub-control is displayed at the magnification corresponding to the selected magnification area, in response to the third trigger operation on the shooting control, the virtual character is controlled to perform a shooting action on the object aimed at by the virtual crosshairs in the picture displayed by the picture display sub-control.
[0197] In a possible implementation, in the instructions executed by the processor 1010, the graphical user interface is controlled to display a scope control, the scope control includes a screen display sub-control and a magnification adjustment sub-control, the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications, including:
[0198] controlling the graphical user interface to display the scope controls around the shooting controls;
[0199] Among them, the magnification adjustment sub-control is closer to the shooting control than the picture display sub-control.
[0200] In a possible implementation, in the instructions executed by the processor 1010, the shooting control is a circle;
[0201] The magnification adjustment sub-control is in the form of a fan ring surrounding the shooting control.
[0202] In a possible implementation, in the instructions executed by the processor 1010, in response to the second trigger operation on the shooting control, the graphical user interface is controlled to display a scope control, the scope control includes a screen display sub-control and a magnification adjustment sub-control, the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications, including:
[0203] In response to the second trigger operation on the shooting control, determining the information of the scope of all magnifications that have been acquired;
[0204] Based on the information of the sights of all magnifications, determine all magnifications corresponding to the magnification adjustment subcontrols to be generated;
[0205] The graphical user interface is controlled to display the scope control, wherein the scope control includes the screen display sub-control and the magnification adjustment sub-control, and the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications.
[0206] In a possible implementation manner, in the instruction executed by the processor 1010, when any one of the multiple areas in the multiple adjustment subcontrol is selected, the method further includes:
[0207] In response to a selection operation on any other magnification area in the magnification adjustment subcontrol except the currently selected magnification area, the screen display subcontrol is controlled to display at the magnification corresponding to the updated selected magnification area.
[0208] In a possible implementation, in the instruction executed by the processor 1010, the second trigger operation is a long press operation.
[0209] The operation of selecting any one of the multiple areas in the multiple adjustment subcontrol includes:
[0210] In response to a sliding operation in which the starting position is the shooting control and the end position is the multiple area, the multiple area corresponding to the end position is used as the selected multiple area;
[0211] The sliding operation and the long pressing operation are continuous operations.
[0212] In a possible implementation, in the instruction executed by the processor 1010, the second trigger operation is a long press operation.
[0213] The operation of selecting any one of the multiple areas in the multiple adjustment subcontrol includes:
[0214] In response to a sliding operation in which the sliding direction is from the shooting control to the multiple area and the end point position is outside the multiple adjustment sub-control, the multiple area passed by the sliding operation is used as the selected multiple area;
[0215] The sliding operation and the long pressing operation are continuous operations.
[0216] In a possible implementation manner, in the instructions executed by the processor 1010, after the screen display subcontrol is controlled to display at the magnification corresponding to the selected magnification area in response to the selection operation of any one of the magnification areas in the magnification adjustment subcontrol, the method further includes:
[0217] In response to a fourth trigger operation on the selected magnification area, the graphical user interface is controlled to cancel displaying the scope control.
[0218] In a possible implementation, in the instructions executed by the processor 1010, the height of the graphical user interface is greater than the width.
[0219] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the control method of the virtual character as described in any of the above embodiments.
[0220] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0221] The above-mentioned non-transitory computer-readable storage medium can be any available medium or data storage device that can be accessed by a computer, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)), etc.
[0222] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the control method of the virtual character described in any embodiment in the above exemplary method part, and have the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0223] Based on the same inventive concept, corresponding to the control method of the virtual character described in any of the above embodiments, the present disclosure also provides a computer program product, which includes computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer so that the computer and / or the processor execute the control method of the virtual character. Corresponding to the execution subject corresponding to each step in each embodiment of the control method of the virtual character, the processor that executes the corresponding step can belong to the corresponding execution subject.
[0224] The computer program product of the above embodiment is used to enable the computer and / or the processor to execute the control method of the virtual character as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0225] Those skilled in the art will appreciate that the embodiments of the present disclosure may be implemented as a system, method, or computer program product. Therefore, the present disclosure may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." In addition, in some embodiments, the present disclosure may also be implemented in the form of a computer program product in one or more computer-readable media, which contains computer-readable program code.
[0226] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive examples) of computer-readable storage media may include, for example: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device.
[0227] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0228] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0229] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0230] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified in the boxes in the flowchart and / or block diagram.
[0231] These computer program instructions may also be stored in a computer-readable medium that enables a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable medium produce a product that includes an instruction device that implements the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0232] Computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable device to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0233] In addition, although the operations of the disclosed method are described in a particular order in the accompanying drawings, this does not require or imply that the operations must be performed in this particular order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flow chart can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.
[0234] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0235] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0236] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0237] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0238] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0239] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
[0240] Although the spirit and principle of the present disclosure have been described with reference to several specific embodiments, it should be understood that the present disclosure is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present disclosure is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims. The scope of the attached claims conforms to the broadest interpretation, thereby including all such modifications and equivalent structures and functions.
Claims
1. A method for controlling a virtual character, characterized in that: Providing a graphical user interface through a terminal, wherein the content displayed by the graphical user interface includes a shooting control, and the method includes: In response to a first trigger operation on the shooting control, controlling the virtual character to perform a shooting action on an object aimed at by the virtual crosshairs; In response to a second trigger operation on the shooting control, the graphical user interface is controlled to display a scope control, wherein the scope control includes a picture display sub-control and a magnification adjustment sub-control, wherein the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications; In response to a selection operation on any one of the magnification areas in the magnification adjustment subcontrol, controlling the image display subcontrol to display at a magnification corresponding to the selected magnification area; When the picture display sub-control is displayed at the magnification corresponding to the selected magnification area, in response to the third trigger operation on the shooting control, the virtual character is controlled to perform a shooting action on the object aimed at by the virtual crosshairs in the picture displayed by the picture display sub-control.
2. The method according to claim 1, characterized in that The controlling the graphical user interface to display a scope control, wherein the scope control includes a screen display sub-control and a magnification adjustment sub-control, wherein the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications, including: controlling the graphical user interface to display the scope controls around the shooting controls; Among them, the magnification adjustment sub-control is closer to the shooting control than the picture display sub-control.
3. The method according to claim 1, characterized in that The shooting control is circular; The magnification adjustment sub-control is in the form of a fan ring surrounding the shooting control.
4. The method according to claim 1, characterized in that: In response to the second trigger operation on the shooting control, the graphical user interface is controlled to display a scope control, wherein the scope control includes a picture display sub-control and a magnification adjustment sub-control, and the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications, including: In response to the second trigger operation on the shooting control, determining the information of the scope of all magnifications that have been acquired; Based on the information of the sights of all magnifications, determine all magnifications corresponding to the magnification adjustment subcontrols to be generated; The graphical user interface is controlled to display the scope control, wherein the scope control includes the screen display sub-control and the magnification adjustment sub-control, and the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications.
5. The method according to claim 1, characterized in that When any one of the multiple areas in the multiple adjustment subcontrol is selected, the method further includes: In response to a selection operation on any other magnification area in the magnification adjustment subcontrol except the currently selected magnification area, the screen display subcontrol is controlled to display at the magnification corresponding to the updated selected magnification area.
6. The method according to claim 1, characterized in that The second trigger operation is a long press operation. The operation of selecting any one of the multiple areas in the multiple adjustment subcontrol includes: In response to a sliding operation in which the starting position is the shooting control and the end position is the multiple area, the multiple area corresponding to the end position is used as the selected multiple area; The sliding operation and the long pressing operation are continuous operations.
7. The method according to claim 1, characterized in that The second trigger operation is a long press operation. The operation of selecting any one of the multiple areas in the multiple adjustment subcontrol includes: In response to a sliding operation in which the sliding direction is from the shooting control to the multiple area and the end point position is outside the multiple adjustment sub-control, the multiple area passed by the sliding operation is used as the selected multiple area; The sliding operation and the long pressing operation are continuous operations.
8. The method according to claim 1, characterized in that After the screen display subcontrol is controlled to display at the magnification corresponding to the selected magnification area in response to the selection operation of any one of the magnification areas in the magnification adjustment subcontrol, the method further includes: In response to a fourth trigger operation on the selected magnification area, the graphical user interface is controlled to cancel displaying the scope control.
9. The method according to claim 1, characterized in that: The graphical user interface is taller than it is wide.
10. A control device for a virtual character, characterized in that: A graphical user interface is provided through a terminal, wherein the content displayed by the graphical user interface includes a shooting control, and the device includes: a non-scope shooting execution module, configured to control the virtual character to execute a shooting action on an object aimed at by a virtual crosshair in response to a first trigger operation on the shooting control; a scope activation module, configured to control the graphical user interface to display a scope control in response to a second trigger operation on the shooting control, wherein the scope control includes a picture display sub-control and a magnification adjustment sub-control, wherein the magnification adjustment sub-control includes a plurality of magnification areas, and different magnification areas correspond to different magnifications; The sight magnification adjustment module is configured to control the image display subcontrol to display at the magnification corresponding to the selected magnification area in response to a selection operation on any one of the magnification areas in the magnification adjustment subcontrol; The scope shooting execution module is configured to control the virtual character to perform a shooting action on the object aimed at by the virtual crosshairs in the picture displayed by the picture display subcontrol in response to a third trigger operation on the shooting control when the picture display subcontrol is displayed at the magnification corresponding to the selected magnification area.
11. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 9 is implemented.
12. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 9.
13. A computer program product, characterized in that The method comprises computer program instructions, which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 9.
