Virtual character control method and device
By setting preset areas on the screen edge or sub-screen connection parts of the terminal device in a shooting game, controlling the left and right probes of the virtual character in response to touch operations, solving the problem of multi-control operation, improving operation fluency and game immersion.
Patent Information
- Application Number
- CN202210096276.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-26
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2042-01-26
AI Technical Summary
In existing shooting games, the operation of virtual characters' left and right probes requires multiple controls, resulting in complex interfaces and affecting the game's immersion.
By setting preset areas on the edge of the screen of the terminal device or the connection parts of the two sub-screens, in response to touch operations, control the left and right probes of the virtual character, simplifying the operation process and reducing the number of controls.
It simplifies user operations, saves interface controls, enhances game immersion, and improves the smoothness of the left and right probes of virtual characters.
Smart Images

Figure CN114504812B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a virtual character control method and device. Background Art
[0002] In shooting games, especially in the Battle Royale genre, the virtual character poking its head left and right to shoot is a very important operation in cover battles. You can use the cover to reduce the exposure of the virtual character's body and shoot unexpectedly. Figure 1 As shown, button 11 controls the virtual character to peer left, button 12 controls the virtual character to peer right, and shooting button 13 controls the virtual character to shoot. Currently, the operation mode of left and right peering in most games is to provide two buttons on the graphical user interface, and the player needs to click the two buttons respectively to control the virtual character to peer left and right. However, this operation requires providing multiple controls in the interface, resulting in a large number of controls in the interface, and the player needs to click multiple times to switch the virtual character's peering direction, which makes the user operation complicated and affects the game immersion.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide a method and device for controlling a virtual character, so as to at least solve the technical problem of requiring multiple controls to operate the left and right probes of the virtual character.
[0005] According to one aspect of an embodiment of the present invention, a virtual character control method is provided, wherein a graphical user interface is provided through a terminal device, the graphical user interface including a virtual character, the method comprising: responding to a first touch operation applied to a preset area of a screen of the terminal device, controlling the virtual character to perform a probe operation, wherein the preset area is located at an edge of the screen or at a connection portion between two sub-screens included in the screen.
[0006] Optionally, controlling the virtual character to perform a probe operation includes: determining movement parameters of a target touch point corresponding to a first touch operation, wherein the movement parameters include: a movement direction and a movement distance, and the movement distance is used to characterize the distance between an initial position and a current position of the target touch point; based on the movement parameters, controlling the virtual character to perform a probe operation.
[0007] Optionally, the method further includes: determining relative positions of multiple touch points corresponding to the first touch operation; and based on the relative positions, determining a touch point located at a preset position among the multiple touch points as a target touch point.
[0008] Optionally, based on the movement parameters, controlling the virtual character to perform the probe operation includes: based on the movement direction, controlling the direction in which the virtual character performs the probe operation; based on the movement distance, controlling the amplitude of the virtual character performing the probe operation.
[0009] Optionally, the graphical user interface further includes a preset control, and during the process of controlling the virtual character to perform the probe operation, the method further includes: in response to a second touch operation performed on the preset control, controlling the virtual character to perform an action corresponding to the preset control.
[0010] Optionally, a prompt control is displayed at a target position in the graphical user interface, wherein the target position is a position in the graphical user interface that is closest to a preset area.
[0011] Optionally, the graphical user interface further includes a virtual cover, wherein displaying a prompt control at a target position in the graphical user interface includes: detecting whether the virtual character overlaps with the virtual cover; and displaying a prompt control at the target position in response to a determination instruction that the virtual character overlaps with the virtual cover.
[0012] Optionally, the screen is a curved screen or a folding screen.
[0013] According to another aspect of an embodiment of the present invention, a virtual character control device is also provided, which provides a graphical user interface through a terminal device, and the graphical user interface includes a virtual character. The device includes: a control module, which is used to respond to a first touch operation within a preset area of a screen of the terminal device, and control the virtual character to perform a probe operation, wherein the preset area is located at the edge of the screen or at a connecting portion of two sub-screens included in the screen.
[0014] Optionally, the control module includes: a determination unit, used to determine the movement parameters of the target touch point corresponding to the first touch operation, wherein the movement parameters include: a moving direction and a moving distance, and the moving distance is used to characterize the distance between the initial position and the current position of the target touch point; a control unit, used to control the virtual character to perform a probe operation based on the movement parameters.
[0015] Optionally, the device further includes: a position determination module, used to determine the relative positions of multiple touch points corresponding to the first touch operation; and a touch point determination module, used to determine, based on the relative positions, a touch point located at a preset position among the multiple touch points as a target touch point.
[0016] Optionally, the control unit is further configured to control the direction in which the virtual character performs the probe operation based on the moving direction; and control the amplitude of the probe operation performed by the virtual character based on the moving distance.
[0017] Optionally, the graphical user interface further includes a preset control, and the control module is further used to control the virtual character to perform an action corresponding to the preset control in response to a second touch operation performed on the preset control during the process of controlling the virtual character to perform the probe operation.
[0018] Optionally, the device further includes: a display module, configured to display a prompt control at a target position in the graphical user interface, wherein the target position is a position in the graphical user interface that is closest to a preset area.
[0019] Optionally, the graphical user interface further includes a virtual cover, wherein the display module includes: a detection unit for detecting whether the virtual character overlaps with the virtual cover; and a display unit for displaying a prompt control at a target position in response to a determination instruction that the virtual character overlaps with the virtual cover.
[0020] Optionally, the screen is a curved screen or a folding screen.
[0021] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is further provided. The non-volatile storage medium includes a stored program, wherein the computer program is configured to execute the above-mentioned virtual character control method when running.
[0022] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein the program is configured to execute the above-mentioned virtual character control method when running.
[0023] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising: a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the above-mentioned virtual character control method.
[0024] In an embodiment of the present invention, a preset area is set at the edge of the screen of the terminal device or at the connection part of two sub-screens included in the screen, and in response to the first touch operation in the preset area, the virtual character is controlled to perform the probe operation, so as to achieve the purpose of controlling the left and right probe of the virtual character. It is easy to notice that the player can control the left and right probe of the virtual character by operating the preset area on the edge of the screen or at the connection part of the two sub-screens, without clicking the buttons included in the graphical user interface multiple times, thereby achieving the technical effect of simplifying user operations, saving the number of controls in the interface, and increasing the immersion of the game, thereby solving the technical problem of requiring multiple controls to operate the left and right probe of the virtual character. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0026] Figure 1 It is a schematic diagram of an interface of left and right probe controls of a virtual character in the prior art;
[0027] Figure 2is a hardware structure block diagram of a mobile terminal according to a virtual character control method of an embodiment of the present invention;
[0028] Figure 3 is a flow chart of a virtual character control method according to an embodiment of the present invention;
[0029] Figure 4 is a schematic diagram of an example of an optional virtual character control method according to an embodiment of the present invention;
[0030] Figure 5 is a structural block diagram of a virtual character control device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] According to an embodiment of the present invention, an embodiment of a virtual character control method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0034] The method embodiment can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, the mobile terminal can be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID for short), a PAD, a game console and other terminal devices. Figure 2 FIG. 1 is a hardware structure block diagram of a mobile terminal of a virtual character control method according to an embodiment of the present invention. Figure 2 As shown, the mobile terminal may include one or more ( Figure 2 Only one is shown in the figure) processor 202 (processor 202 may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microprocessor (MCU), a programmable logic device (FPGA), a neural network processor (NPU), a tensor processor (TPU), an artificial intelligence (AI) type processor, etc.) and a memory 204 for storing data. Optionally, the mobile terminal may also include a transmission device 206 for communication functions, an input and output device 208, and a display device 210. It can be understood by those skilled in the art that Figure 2 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 2 More or fewer components as shown, or with Figure 2 Different configurations are shown.
[0035] The memory 204 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the virtual character control method in the embodiment of the present invention. The processor 202 executes various functional applications and data processing by running the computer program stored in the memory 204, that is, the above-mentioned virtual character control method is realized. The memory 204 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 204 may further include a memory remotely arranged relative to the processor 202, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0036] The transmission device 206 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 206 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 206 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0037] The input in the input / output device 208 may come from a plurality of human interface devices (Human Interface Device, referred to as HID). For example: keyboard and mouse, game controller, other dedicated game controllers (such as: steering wheel, fishing rod, dance mat, remote control, etc.). In addition to providing input functions, some human interface devices may also provide output functions, such as: force feedback and vibration of game controllers, audio output of controllers, etc.
[0038] The display device 210 may be, for example, a head-up display (HUD), a touch-screen liquid crystal display (LCD), and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the mobile terminal. In some embodiments, the mobile terminal has a graphical user interface (GUI), and a user may interact with the GUI by finger contacts and / or gestures on a touch-sensitive surface, wherein the human-computer interaction functions here may optionally include the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music, and / or web browsing, etc. The executable instructions for executing the above-mentioned human-computer interaction functions are configured / stored in a computer program product or a readable storage medium executable by one or more processors.
[0039] The virtual character control method in one embodiment of the present disclosure can be run on a local terminal device or a server. When the virtual character control method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0040] In an optional implementation, 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 operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the virtual character control method are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting 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 used 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.
[0041] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local 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.
[0042] In a possible implementation, an embodiment of the present invention provides a method for controlling a virtual character, providing a graphical user interface through a terminal device, wherein the terminal device may be the local terminal device mentioned above, or may be the client device in the cloud interaction system mentioned above. The terminal device may be a mobile terminal such as a smart phone, a tablet computer, or a laptop computer, on which a game client is installed, and the player plays a shooting game by logging into the game client; the terminal device may also be a server, such as a cloud server, on which a game client is installed, and the player plays a shooting game by logging into the game client through his own mobile terminal. Different shooting games may provide different graphical user interfaces to players, which are displayed on the display screen of the mobile terminal, and the graphical user interface may display game scenes, map control controls, shooting controls, virtual character operation controls (such as mobile operation controls for controlling the movement of virtual characters), interactive controls (such as chat boxes, text input controls, voice input controls, etc.), game setting controls (such as lens sensitivity controls), etc.; the above-mentioned screen may be a touch screen, for example, an edge curved screen; the virtual cover may be a virtual object in the game that can block the virtual character (for example, trees, stones, houses, ships, bushes, etc. in the game); the virtual character is a character controlled by the player in the game, and the present invention does not specifically limit this.
[0043] Figure 3 is a flow chart of a virtual character control method according to an embodiment of the present invention, wherein a graphical user interface is provided by a terminal device, and the graphical user interface includes a virtual character, such as Figure 3 As shown, the method comprises the following steps:
[0044] Step S302, in response to a first touch operation applied to a preset area of a screen of a terminal device, controlling the virtual character to perform a probe operation, wherein the preset area is located at an edge of the screen or at a connection portion between two sub-screens included in the screen.
[0045] The virtual character in the above steps may be an object that the player can control (e.g., a virtual person). In FPS games, the probe operation may refer to the virtual character's upper body leaning left or right, and the virtual character's probe direction and probe amplitude are controlled by the player. To facilitate the player's operation, the above first touch operation may be a sliding operation, and the player may control the virtual character to perform probe operations in different directions by sliding in different directions.
[0046] Optionally, the above-mentioned screen may be a curved screen or a folding screen.
[0047] For the curved screen, the edge position is a special operation area. Therefore, the edge area of the curved screen can be used as the above-mentioned preset area to avoid overlapping between the preset area and the graphical user interface, which affects the normal game operation of the player, and can make full use of the screen. When the player operates, he only needs to slide his finger on the edge of the curved screen to control the virtual character to perform a probe operation. When the player slides his finger to the left, he can control the virtual character to perform a left probe operation, that is, control the upper body of the virtual character to lean to the left; when the player slides his finger to the right, he can control the virtual character to perform a right probe operation, that is, control the upper body of the virtual character to lean to the right.
[0048] For the folding screen, the screen is composed of two sub-screens connected. The two sub-screens can be used separately or individually. The connection part of the two sub-screens is also a special operation area. Therefore, the connection part of the two sub-screens of the folding screen can be used as the above-mentioned preset area to avoid the overlap of the preset area and the graphical user interface, which affects the normal game operation of the player, and can make full use of the screen. When the player operates, he only needs to slide his finger at the connection part to control the virtual character to perform a probe operation. When the player slides his finger to the left, he can control the virtual character to perform a left probe operation, that is, control the upper body of the virtual character to lean to the left; when the player slides his finger to the right, he can control the virtual character to perform a right probe operation, that is, control the upper body of the virtual character to lean to the right.
[0049] In an embodiment of the present invention, a preset area is set at the edge of the screen of the terminal device or at the connection part of two sub-screens included in the screen, and in response to the first touch operation in the preset area, the virtual character is controlled to perform the probe operation, so as to achieve the purpose of controlling the left and right probe of the virtual character. It is easy to notice that the player can control the left and right probe of the virtual character by operating the preset area on the edge of the screen or at the connection part of the two sub-screens, without clicking the buttons included in the graphical user interface multiple times, thereby achieving the technical effect of simplifying user operations, saving the number of controls in the interface, and increasing the immersion of the game, thereby solving the technical problem of requiring multiple controls to operate the left and right probe of the virtual character.
[0050] Optionally, controlling the virtual character to perform a probe operation includes: determining movement parameters of a target touch point corresponding to a first touch operation, wherein the movement parameters include: a movement direction and a movement distance, and the movement distance is used to characterize the distance between an initial position and a current position of the target touch point; based on the movement parameters, controlling the virtual character to perform a probe operation.
[0051] In an optional embodiment, when the player needs to control the virtual character to perform a probe operation, the player can slide the finger in the preset area, the finger sliding direction is the above-mentioned moving direction, and the finger sliding distance is the above-mentioned moving distance. Since the contact area between the finger and the screen is large, multiple touch points will be detected. Therefore, a target touch point can be selected as a reference point, and the moving direction and moving distance of the reference point can be determined based on the initial position and current position of the reference point. For example, when the user's finger moves a certain distance to the left, the virtual character can be controlled to probe to the left by a certain amplitude according to a preset ratio. If the player feels that the angle is not conducive to shooting other virtual players at this time, the first control can be continued to be dragged to the left to make the moving distance larger, thereby making the amplitude of the virtual character's left probe larger, until an angle conducive to shooting is reached, the finger is stopped from moving, the upper body of the virtual character is fixed at the amplitude, and then other virtual characters are shot. When the user's finger moves a certain distance to the right, the virtual character can be controlled to probe to the right by a certain amplitude according to a preset ratio, until the probe to the right reaches a suitable amplitude, the sliding is stopped, and other virtual characters are shot. If the player first controls the virtual character to poke its head to the left by sliding its finger to the left, then sliding its finger to the right can control the virtual character to reduce the amplitude of the left poke. After the virtual character returns to its normal posture before pokes its head, continuing to slide the finger to the right can make it poke its head to the right, and vice versa.
[0052] Through the movement parameters of the target touch point, the virtual character is controlled to perform the probe operation, so that the amplitude of the left and right probes is no longer fixed, thereby increasing the fun of the game.
[0053] Optionally, the method further includes: determining relative positions of multiple touch points corresponding to the first touch operation; and based on the relative positions, determining a touch point located at a preset position among the multiple touch points as a target touch point.
[0054] The above-mentioned preset position can be set to different positions based on the different fingers of the player. For example, for the player's right hand finger, the preset position can be the leftmost position with a moderate width; for the player's left hand finger, the preset position can be the rightmost position with a moderate width.
[0055] In an optional embodiment, taking into account the situation where there may be a relatively large contact area under the finger, when clicking or dragging, a relatively large contact area or even several contact points may appear between the finger and the screen. The touch point at a preset position may be used as the target touch point, and the position of the touch point may be used as the position where the player's finger is pressed.
[0056] Optionally, based on the movement parameters, controlling the virtual character to perform the probe operation includes: based on the movement direction, controlling the direction in which the virtual character performs the probe operation; based on the movement distance, controlling the amplitude of the virtual character performing the probe operation.
[0057] In an optional embodiment, the moving direction of the target touch point can be used to control the virtual character to probe left or right, and the moving distance of the target touch point can be used to control the amplitude of the virtual character's probe left or right, wherein the probe amplitude corresponding to the moving distance can be determined based on a preset ratio (for example, a moving distance of 1 mm corresponds to a probe amplitude of 30 degrees), or can be determined based on an adjustment ratio set by the player himself, that is, it is equivalent to the player being able to adjust the sensitivity of the probe amplitude by himself.
[0058] By controlling the moving direction of the target touch point, the virtual character is controlled to probe left or right, and by controlling the moving distance of the target touch point, the virtual character's probe amplitude is controlled, thereby achieving the purpose of controlling the virtual character to perform the probe operation through the moving parameters of the target touch point, thereby further increasing the fun of the game.
[0059] Optionally, the graphical user interface further includes a preset control, wherein, in the process of controlling the virtual character to perform the probe operation, the method further includes: in response to a second touch operation performed on the preset control, controlling the virtual character to perform an action corresponding to the preset control.
[0060] The above-mentioned preset controls can be controls for controlling the player's movement in the graphical user interface, or controls for controlling the player's shooting, but are not limited thereto. Figure 4 As shown, the preset control can be a moving operation control 42 or a shooting control 43.
[0061] In an optional embodiment, the player can use the left thumb to operate the mobile operation control 42 in the interface to control the movement of the virtual character, and use the right index finger to slide in the preset area to control the virtual character to probe left and right, and at the same time, use the right thumb to click the shooting control 43 to control the virtual character to shoot. Among them, the player can adjust the amplitude of the virtual character's probe in real time according to the position of other virtual characters. For example, if the virtual character slides a certain distance to the left, the amplitude of the virtual character's left probe is 30 degrees to the left, and then slides a certain distance to the left, the amplitude of the virtual character's left probe is 60 degrees to the left. In this way, the player can accurately control the virtual character to shoot while reducing the exposure of the body. By responding to the touch operation of the preset control while controlling the virtual character's left and right probes, the left and right probe operations can be performed while the movement and shooting operations are performed, so as to achieve the effect of improving the operation fluency, enhance the player's sense of operation of the virtual character, and thus enhance the player's immersion in the game.
[0062] Optionally, a prompt control is displayed at a target position in the graphical user interface, wherein the target position is a position in the graphical user interface that is closest to a preset area.
[0063] The above-mentioned prompt control can be a prompt text, prompt icon, etc. used to prompt the player the location of the preset area, but is not limited to this. For example, the prompt control can be as follows: Figure 4 Icon 41 is shown.
[0064] In an optional embodiment, in order to facilitate novice players to accurately determine the specific location of the preset area, a prompt control can be displayed at the target position closest to the preset area to prompt the player of the location of the preset area, and prompt the player to control the virtual character to perform left and right probe operations by performing a first touch operation within the preset area.
[0065] Optionally, the graphical user interface further includes a virtual cover, wherein displaying a prompt control at a target position in the graphical user interface includes: detecting whether the virtual character overlaps with the virtual cover; and displaying a prompt control at the target position in response to a determination instruction that the virtual character overlaps with the virtual cover.
[0066] The virtual cover in the above steps can be a virtual object in the game that can block the virtual character (for example, trees, stones, houses, ships, grass, etc. in the game). In a shooting game, the player can control the virtual character to hide behind the virtual cover as needed. At this time, the virtual character overlaps with the virtual cover, and other players can only see the virtual cover but not the virtual character. The player can control the virtual character to poke around to complete the shooting. Therefore, it can be determined whether the player needs to perform the poke operation by detecting whether the virtual character overlaps with the virtual cover.
[0067] In an optional embodiment, the player often shoots by probing left and right after the virtual character hides in a virtual cover. Therefore, it is possible to detect in real time whether the virtual character and the virtual cover overlap. If so, a corresponding determination instruction is generated to determine that the player needs to control the virtual character to perform a left and right probing operation. At this time, a prompt control can be displayed at the target position closest to the preset area, prompting the player to control the virtual character to perform a left and right probing operation by operating within the preset area.
[0068] It should be noted that the detection method provided in the related art may be used to detect whether the virtual character and the virtual cover overlap, and the present invention does not make any specific limitation to this.
[0069] Figure 4 is a schematic diagram of an example of an optional virtual character control method according to an embodiment of the present invention. In an optional embodiment, as Figure 4As shown, the player can use the left thumb to operate the moving operation control 42 in the interface to control the movement of the virtual character. After the player controls the virtual character to hide behind the virtual bunker, a prompt control 41 is displayed near the edge area on the graphical user interface (of course, the prompt control 41 can also be displayed in the graphical user interface all the time), prompting the player to slide left and right in the upper edge area to control the virtual character to poke out left and right. The player can slide left and right with the right index finger in the above-mentioned distinction to control the virtual character to poke out left and right, and at the same time, use the right thumb to click the shooting control 43 to control the virtual character to shoot. In this way, the player can accurately control the virtual character to shoot while reducing the exposure of the body, thereby enhancing the player's sense of operation of the virtual character and thus enhancing the player's sense of immersion in the game.
[0070] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0071] In this embodiment, a virtual character control device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0072] Figure 5 is a block diagram of a virtual character control device according to an embodiment of the present invention, wherein a graphical user interface is provided through a terminal device, and the graphical user interface includes a virtual character, such as Figure 5 As shown, the device comprises:
[0073] The control module 52 is used to control the virtual character to perform a probe operation in response to a first touch operation in a preset area of the screen of the terminal device, wherein the preset area is located at an edge of the screen or a connection portion between two sub-screens included in the screen.
[0074] Optionally, the control module includes: a determination unit, used to determine the movement parameters of the target touch point corresponding to the first touch operation, wherein the movement parameters include: a moving direction and a moving distance, and the moving distance is used to characterize the distance between the initial position and the current position of the target touch point; a control unit, used to control the virtual character to perform a probe operation based on the movement parameters.
[0075] Optionally, the device further includes: a position determination module, used to determine the relative positions of multiple touch points corresponding to the first touch operation; and a touch point determination module, used to determine, based on the relative positions, a touch point located at a preset position among the multiple touch points as a target touch point.
[0076] Optionally, the control unit is further configured to control the direction in which the virtual character performs the probe operation based on the moving direction; and control the amplitude of the probe operation performed by the virtual character based on the moving distance.
[0077] Optionally, the graphical user interface further includes a preset control, and the control module is further used to control the virtual character to perform an action corresponding to the preset control in response to a second touch operation performed on the preset control during the process of controlling the virtual character to perform the probe operation.
[0078] Optionally, the device further includes: a display module, configured to display a prompt control at a target position in the graphical user interface, wherein the target position is a position in the graphical user interface that is closest to a preset area.
[0079] Optionally, the graphical user interface further includes a virtual cover, wherein the display module includes: a detection unit for detecting whether the virtual character overlaps with the virtual cover; and a display unit for displaying a prompt control at a target position in response to a determination instruction that the virtual character overlaps with the virtual cover.
[0080] Optionally, the screen is a curved screen or a folding screen.
[0081] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0082] An embodiment of the present invention further provides a non-volatile storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0083] Optionally, in this embodiment, the non-volatile storage medium may be configured to store a computer program for performing the following steps:
[0084] Step S1, in response to a first touch operation applied to a preset area of a screen of a terminal device, controlling a virtual character to perform a probe operation, wherein the preset area is located at an edge of the screen or at a connection portion between two sub-screens included in the screen.
[0085] Optionally, in this embodiment, the above-mentioned non-volatile storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0086] An embodiment of the present invention further provides a processor, which is used to run a program, wherein the program is configured to execute the steps of any of the above method embodiments when running.
[0087] Optionally, in this embodiment, the processor is configured to be a computer program that performs the following steps through a computer program:
[0088] Step S1, in response to a first touch operation applied to a preset area of a screen of a terminal device, controlling a virtual character to perform a probe operation, wherein the preset area is located at an edge of the screen or at a connection portion between two sub-screens included in the screen.
[0089] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0090] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0091] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0092] Step S1, in response to a first touch operation applied to a preset area of a screen of a terminal device, controlling a virtual character to perform a probe operation, wherein the preset area is located at an edge of the screen or at a connection portion between two sub-screens included in the screen.
[0093] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0094] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0095] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0096] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0097] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0098] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0099] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A virtual character control method, characterized in that: A graphical user interface is provided by a terminal device, wherein the graphical user interface includes the virtual character, and the method comprises: In response to a first touch operation in a preset area of a screen of the terminal device, controlling the virtual character to perform a probe operation, wherein the preset area is located at an edge of the screen or at a connection portion between two sub-screens included in the screen; The controlling the virtual character to perform the probe operation includes: Determining a movement parameter of a target touch point corresponding to the first touch operation, wherein the movement parameter includes: a movement direction and a movement distance, and the movement distance is used to represent a distance between an initial position and a current position of the target touch point; Based on the moving direction, controlling the direction in which the virtual character performs the probe operation; Based on the moving distance, the amplitude of the probe operation performed by the virtual character is controlled.
2. The method according to claim 1, characterized in that The method further comprises: Determining relative positions of a plurality of touch points corresponding to the first touch operation; Based on the relative position, a touch point located at a preset position among the multiple touch points is determined as the target touch point.
3. The method according to claim 1, characterized in that The graphical user interface further comprises a preset control, wherein, in the process of controlling the virtual character to perform the probe operation, the method further comprises: In response to a second touch operation performed on the preset control, the virtual character is controlled to perform an action corresponding to the preset control.
4. The method according to any one of claims 1 to 3, characterized in that A prompt control is displayed at a target position in the graphical user interface, wherein the target position is a position in the graphical user interface that is closest to the preset area.
5. The method according to claim 4, characterized in that The graphical user interface further includes a virtual cover, wherein displaying the prompt control at the target position in the graphical user interface includes: Detecting whether the virtual character and the virtual cover overlap; In response to a determination instruction that the virtual character overlaps the virtual cover, the prompt control is displayed at the target position.
6. The method according to claim 1, characterized in that The screen is a curved screen or a folding screen.
7. A virtual character control device, characterized in that: A graphical user interface is provided through a terminal device, wherein the graphical user interface includes the virtual character, and the apparatus comprises: A control module, configured to control the virtual character to perform a probe operation in response to a first touch operation in a preset area of a screen of the terminal device, wherein the preset area is located at an edge of the screen or at a connection portion between two sub-screens included in the screen; The control module is also used to determine the movement parameters of the target touch point corresponding to the first touch operation, wherein the movement parameters include: a movement direction and a movement distance, the movement distance is used to characterize the distance between the initial position and the current position of the target touch point; based on the movement direction, control the direction in which the virtual character performs the probe operation; based on the movement distance, control the amplitude of the virtual character performing the probe operation.
8. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, wherein the computer program is configured to execute the virtual character control method according to any one of claims 1 to 6 when running.
9. A processor, characterized in that: The processor is used to run a program, wherein the program is configured to execute the virtual character control method according to any one of claims 1 to 6 when running.
10. An electronic device comprising: A processor and a memory, characterized in that a computer program is stored in the memory, and the processor is configured to run the computer program to execute the virtual character control method described in any one of claims 1 to 6.
