Control Method, Device, Electronic Device and Readable Storage Medium for Game Character
By introducing crouching controls and second bunker controls into the graphical user interface of shooting games, the problem of position offset and crouching action delays when game characters move between bunkers is solved, improving hiding efficiency and gaming experience.
Patent Information
- Application Number
- CN202211121118.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-15
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2042-09-15
AI Technical Summary
In existing shooting games, game characters are prone to position deviation when moving between covers, and players find it difficult to control game characters to perform crouching actions in a timely manner, resulting in low hiding efficiency.
By displaying the crouching control and the second bunker control in the graphical user interface, players allow them to quickly switch the crouching state of the game characters between different bunkers through touch operations, ensuring the accuracy and efficiency of the game characters when moving between bunkers.
Improves the efficiency of game characters hiding after moving between covers, avoids the problems of position shift and crouching action delays, and makes the game experience more smooth and precise.
Smart Images

Figure CN115430151B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of game technologies, and in particular, to a method and apparatus for controlling a game character, an electronic device, and a computer-readable storage medium. Background Art
[0002] In the wave of the Internet, the continuous development and evolution of hardware and software technologies have promoted the emergence of intelligent devices and software. At the same time, a large number of mobile games with different themes have emerged to meet the needs of users. For example, in a shooting game, a player needs to control a game character to move towards a bunker in the game scene and crouch behind the bunker so that the game character can hide in the game scene.
[0003] However, in existing conventional shooting games, mainly a player controls a game character to move from the current position by operating a movement joystick, and after the game character moves to a specific position of a bunker, the player needs to control the game character to perform a crouching action to achieve hiding of the game character in the game scene. However, due to the relatively high difficulty of manual operation, there are often situations where the position of the game character deviates when moving from one bunker to another, or the player cannot control the game character to perform the crouching action in time. Therefore, the efficiency of the game character hiding after moving from one bunker to another in the game scene is relatively low. Summary of the Invention
[0004] Embodiments of this application provide a method and apparatus for controlling a game character, an electronic device, and a computer-readable storage medium, which can improve the efficiency of a game character hiding after moving from one bunker to another in a game scene.
[0005] In a first aspect, an embodiment of this application provides a method for controlling a game character. A graphical user interface is provided through a terminal device, and the content displayed in the graphical user interface includes at least part of a game scene, a game character controlled by the terminal device, and a virtual bunker in the game scene. The method includes:
[0006] In response to the position of the game character and a first virtual bunker in the virtual bunkers satisfying a preset position relationship, a crouching control is displayed in an associated area of the first virtual bunker;
[0007] In response to a first touch operation on the crouching control, the game character is controlled to enter the first virtual bunker and crouch;
[0008] In response to a second touch operation on the crouching control, a second bunker control is displayed in an associated area of the crouching control, where the second bunker control is an identifier corresponding to a second virtual bunker in the game scene, and the second virtual bunker is a virtual bunker within a preset range from the game character;
[0009] In response to a selection operation for the above-mentioned second bunker control, control the above-mentioned game character to switch from the above-mentioned first virtual bunker to the above-mentioned second virtual bunker for crouching.
[0010] In a second aspect, an embodiment of the present application further provides a control device for a game character. By means of a terminal device, a graphical user interface is provided. The content displayed in the above-mentioned graphical user interface includes at least part of the game scene, the game character controlled by the above-mentioned terminal device and a virtual bunker in the above-mentioned game scene. The device includes:
[0011] A first control display module, configured to respond that the position of the above-mentioned game character and a first virtual bunker in the above-mentioned virtual bunker satisfies a preset position relationship, and display a crouching control in an associated area of the above-mentioned first virtual bunker;
[0012] A first crouching control module, configured to respond to a first touch operation on the above-mentioned crouching control, and control the above-mentioned game character to enter the above-mentioned first virtual bunker for crouching;
[0013] A second control display module, configured to respond to a second touch operation on the above-mentioned crouching control, and display a second bunker control in an associated area of the above-mentioned crouching control, where the above-mentioned second bunker control is an identifier corresponding to a second virtual bunker in the above-mentioned game scene, and the above-mentioned second virtual bunker is a virtual bunker within a preset range from the above-mentioned game character;
[0014] A second crouching control module, configured to respond to a selection operation for the above-mentioned second bunker control, and control the above-mentioned game character to switch from the above-mentioned first virtual bunker to the above-mentioned second virtual bunker for crouching.
[0015] In a third aspect, an embodiment of the present application further provides an electronic device, including a memory storing multiple instructions; the processor loads the instructions from the memory to execute the steps in any one of the game character control methods provided by the embodiments of the present application.
[0016] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores multiple instructions, and the instructions are suitable for being loaded by a processor to execute the steps in any one of the game character control methods provided by the embodiments of the present application.
[0017] In the embodiments of the present application, a graphical user interface is provided by a terminal device. The content displayed in the graphical user interface includes at least part of a game scene. The game scene includes a game character controlled by the terminal device and a virtual bunker. And in response to the position of the game character and a first virtual bunker in the virtual bunker satisfying a preset positional relationship, a crouching control is displayed in the associated area of the first virtual bunker, so as to prompt the current player to quickly enter the first virtual bunker through the crouching control when there is a need, that is, by responding to a first touch operation on the crouching control, controlling the game character to enter the first virtual bunker for crouching. Moreover, in the embodiments of the present application, by responding to a second touch operation on the crouching control, a second bunker control is displayed within the associated area of the crouching control. Among them, the second bunker control is an identifier corresponding to a second virtual bunker in the game scene, and the second virtual bunker is a virtual bunker whose distance from the game character is within a preset range. Thus, by determining the second bunker control, it is ensured that the current player can quickly determine the virtual bunker that can be entered currently when there is a need, and can also conveniently and accurately perform corresponding operations based on the bunker control corresponding to the currently enterable virtual bunker, that is, by responding to a selection operation on the second bunker control, controlling the game character to switch from the first virtual bunker to the second virtual bunker for crouching, thereby not only avoiding the position offset phenomenon when manually operating to control the game character to move to the bunker required by the player, but also avoiding the situation where the player cannot timely control the game character to perform a crouching action when the game character reaches the bunker, and further improving the efficiency of the game character hiding after moving from one bunker to another in the game scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for description in the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0019] Figure 1 It is a schematic diagram of a control system for a game character provided by an embodiment of the present application;
[0020] Figure 2 It is a schematic flowchart of an embodiment of a control method for a game character provided by an embodiment of the present application;
[0021] Figure 3a It is a schematic diagram of a scene of a target graphical user interface provided in an embodiment of the present application;
[0022] Figure 3bIt is a schematic diagram of a scene where the game character in the embodiment of the present application is in a crouching state;
[0023] Figure 4 It is a schematic diagram of a scene of the second virtual bunker in the embodiment of the present application;
[0024] Figure 5a It is a schematic diagram of a process for determining the second virtual bunker in the embodiment of the present application;
[0025] Figure 5b It is another schematic diagram of a process for determining the second virtual bunker in the embodiment of the present application;
[0026] Figure 6 It is a schematic diagram of a scene of virtual bunker switching in the embodiment of the present application;
[0027] Figure 7a It is a schematic diagram of a scene of dragging the crouching control in the embodiment of the present application;
[0028] Figure 7b It is another schematic diagram of a scene of dragging the crouching control in the embodiment of the present application;
[0029] Figure 7c It is yet another schematic diagram of a scene of dragging the crouching control in the embodiment of the present application;
[0030] Figure 8a It is another schematic diagram of a scene of the target graphical user interface provided in the embodiment of the present application;
[0031] Figure 8b It is a schematic diagram of a scene of displaying an observation window provided in the embodiment of the present application;
[0032] Figure 9 It is a schematic diagram of the structure of the control device of the game character provided in the embodiment of the present application;
[0033] Figure 10 It is a schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Detailed implementation manners
[0034] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0035] Before explaining the embodiments of the present application in detail, some terms related to the embodiments of the present application will be explained.
[0036] Among them, in the description of the embodiments of the present application, terms such as "first" and "second" may be used herein to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0037] Among them, the graphical user interface: is obtained by executing a software application on the processor of a mobile terminal or other terminal and rendering it on the display, and can be the display interface of the terminal device. The graphical user interface can present the entire game scene or only a part of the game scene. The game scene includes a plurality of static virtual objects, specifically including the ground, mountains, rocks, vegetation, buildings, etc. When the game scene is relatively large, only a part of the game scene content is displayed on the graphical user interface of the terminal device during the game process.
[0038] Among them, the game scene: is the game scene displayed (or provided) when the application runs on the terminal or the server. Optionally, the game scene can be a simulation environment of the real world, a semi-simulated and semi-fictional virtual environment, or a purely fictional virtual environment. The game scene can be any one of a two-dimensional game scene, a 2.5D game scene, or a three-dimensional game scene. The embodiments of the present application do not limit the dimension of the game scene. For example, the game scene can include the sky, land, ocean, etc. The land can include environmental elements such as deserts and cities. The user can control the game character to move in the game scene.
[0039] Among them, the game character: refers to a dynamic object that can be controlled in the game scene. Optionally, the game character can be a virtual character, a virtual animal, an anime character, etc. The game character can be a virtual image in the game scene used to represent the user. The game scene can include at least one game character. Each game character has its own shape and volume in the game scene and occupies a part of the space in the game scene. In a possible implementation manner, the user can control the game character to move in the game scene. For example, control the game character to run, jump, crawl, etc., and can also control the game character to use skills, virtual props, etc. provided by the application to fight with other game characters.
[0040] In this embodiment, the game character can be a virtual character controlled by the user through operations on the client. In some embodiments, the game character can be a virtual figure competing in the game scene. In some embodiments, the number of game characters participating in the interaction in the game scene can be preset or dynamically determined according to the number of clients joining the interaction.
[0041] The embodiments of the present application provide a control method, device, electronic device, and computer-readable storage medium for a game character. Specifically, the control method for the game character in the embodiments of the present application can be executed by an electronic device, where the electronic device can be a terminal or a server, etc. The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), etc. The terminal can also include a client, and the client can be a game application client, a browser client with a game program, or an instant messaging client, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing 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, and big data and artificial intelligence platforms.
[0042] For example, when the control method for the game character runs on the terminal, the terminal device stores a game application program and is used to present the virtual scene in the game screen. The terminal device is used to interact with the user through the graphical user interface. For example, the game application program is downloaded and installed on the terminal device and run. The way the terminal device provides the graphical user interface to the user can include various methods. For example, it can be rendered and displayed on the display screen of the terminal device, or the graphical user interface can be presented through holographic projection. For example, the terminal device can include a touch display screen and a processor. The touch display screen is used to present the graphical user interface and receive the operation instructions generated by the user acting on the graphical user interface. The graphical user interface includes the game screen, and the processor is used to run the game, generate the graphical user interface, respond to the operation instructions, and control the display of the graphical user interface on the touch display screen.
[0043] For example, when the control method of the game character runs on the server, it can be a cloud game. A cloud game refers to a game mode based on cloud computing. In the operation mode of a cloud game, the running entity of the game application and the entity presenting the game screen are separated. The storage and operation of the control method of the game character are completed on the cloud game server. The presentation of the game screen is completed on the cloud game client. The cloud game client is mainly used for receiving and sending game data and presenting the game screen. For example, the cloud game client can be a display device with data transmission function near the user side, such as a mobile terminal, a television, a computer, a personal digital assistant, etc. However, the terminal device for processing game data is the cloud game server in the cloud. When playing a game, the user operates the cloud game client to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses data such as the game screen, returns it to the cloud game client through the network. Finally, the game screen is decoded and output through the cloud game client.
[0044] Please refer to Figure 1 , Figure 1 which is a schematic diagram of the control system of the game character provided by an embodiment of the present application. The system may include at least one terminal 1000, at least one server 2000, at least one database 3000, and a network 4000. The terminal 1000 held by the user can be connected to the servers of different games through the network 4000. The terminal 1000 is any device with computing hardware that can support and execute software products corresponding to games. In addition, the terminal 1000 has one or more multi-touch screens for sensing and obtaining inputs of touch or swipe operations performed by the user at multiple points on one or more touch display screens. In addition, when the system includes multiple terminals 1000, multiple servers 2000, and multiple networks 4000, different terminals 1000 can be connected to each other through different networks 4000 and through different servers 2000. The network 4000 can be a wireless network or a wired network. For example, the wireless network can be a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, different terminals 1000 can also use their own Bluetooth network or hotspot network to connect to other terminals or to the server, etc. For example, multiple users can go online through different terminals 1000 and synchronize with each other through an appropriate network to support multi-player games. In addition, the system may include multiple databases 3000. The multiple databases 3000 are coupled to different servers 2000 and can continuously store information related to the game environment in the databases 3000 when different users are online for multi-player games.
[0045] The following will be described in detail with reference to the accompanying drawings. It should be noted that the description order of the following embodiments does not limit the preferred order of the embodiments. Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown in the drawings.
[0046] In this embodiment, a terminal is taken as an example for illustration. This embodiment provides a method for controlling a game character. The method provides a graphical user interface through a terminal device. The content displayed in the graphical user interface includes at least part of the game scene. The game scene includes a game character controlled by the terminal device and a virtual bunker, such as Figure 2 As shown, the specific process of the game character control method can be as follows:
[0047] 201. In response to the position of the game character and the first virtual bunker in the virtual bunker satisfying a preset position relationship, a crouching control is displayed in the associated area of the first virtual bunker.
[0048] Among them, the game character in this embodiment is the game character controlled by the current player, which can maintain different postures according to its position and the player's needs. For example, when the game character is currently behind a certain bunker, it can be in a crouching posture when in a crouching state, or in a standing posture when leaving the crouching state according to the player's needs, etc. This is not limited here, such as Figure 3a As shown, the game character 300 in the graphical user interface 330 can be in a crouching posture, a standing posture, etc., which can be specifically determined according to its position.
[0049] Among them, the virtual bunker in the game scene can be used for the game character to hide, such as Figure 3a As shown, there are currently a virtual bunker 321 and a virtual bunker 322 in the graphical user interface 330. When the position of the game character and a bunker in the virtual bunker satisfies a preset position relationship, the virtual bunker that satisfies the preset position relationship can be determined as the first virtual bunker. The associated area of the first virtual bunker can be an adjacent area in a certain direction of the area where the first virtual bunker is located, such as the upper area, the lower area, etc., or an overlapping area of the area where the first virtual bunker is located.
[0050] Among them, the crouching control refers to a control used to represent the game character controlled by the current player. The corresponding operation of the game character controlled by the current player can be instructed by operating the crouching control, such as being in a crouching state, leaving the crouching state, entering a virtual bunker for crouching, etc. The crouching control can specifically be in the form of a picture, a button, etc., such as Figure 3a As shown, the crouching control 310 displayed in the graphical user interface 330 represents the game character 300, and the terminal can instruct the game character 300 to perform corresponding operations by operating the crouching control 310.
[0051] In this embodiment, by displaying a crouching control in the associated area of the first virtual bunker, it can be ensured that when the current player has a need, the crouching control can be quickly used to control the game character to meet the player's needs, avoiding the problem of low accuracy caused by directly manually operating the game character, thereby improving the accuracy and convenience of operating the game character. Among them, in this embodiment, the currently running game can be any one of casual games, action games, role-playing games, strategy games, sports games, puzzle games, etc. that have bunkers. For example, the currently running game can be a third-person shooting game (TPS), and there is no restriction on the currently running game here.
[0052] Specifically, the above preset position relationship can be to set the maximum preset distance threshold between the position of the game character and a virtual bunker, that is, when the position distance between the game character and the first virtual bunker in the virtual bunkers is less than or equal to the preset distance threshold, a crouching control is displayed in the associated area of the first virtual bunker; it can also be to set the preset relative position direction between the position of the game character and a virtual bunker, that is, when the position direction between the game character and the first virtual bunker in the virtual bunkers meets the preset relative position direction, a crouching control is displayed in the associated area of the first virtual bunker.
[0053] Exemplarily, as Figure 3a shown, if it is set that Figure 3a among the virtual bunkers, the virtual bunker 321 is the first virtual bunker whose position meets the preset position relationship with the game character, then as Figure 3a shown, in the associated area of the virtual bunker 321, that is, the adjacent area on the left of the area where the virtual bunker 321 is located, a crouching control 310 is displayed.
[0054] 202. In response to the first touch operation on the crouching control, control the game character to enter the first virtual bunker and crouch.
[0055] In this embodiment, by operating the crouching control with the first touch operation to control the game character to enter the first virtual bunker and crouch, the problem of low accuracy caused by directly manually operating the game character is avoided, thereby improving the accuracy and convenience of operating the game character.
[0056] Among them, the above first touch operation can be a click operation, such as a single click operation, a double click operation, etc. There is no restriction on the specific operation method of the first touch operation here. For example, the player clicks on the crouching control to control the game character to enter the first virtual bunker and crouch, as Figure 3b shown.
[0057] In some embodiments, to avoid accidental triggering, the terminal may further include: after the game character squats behind the first virtual bunker, in response to a third touch operation on the squat control, controlling the game character to switch from the squat state to the standing state, that is, leaving the squat state as described above.
[0058] Wherein, the third touch operation may be a click operation, such as a single click operation, a double click operation, etc., and the specific operation method of the third touch operation is not limited here. For example, the player clicks on the squat control to control the game character to switch from the squat state to the standing state behind the first virtual bunker.
[0059] In some embodiments, after the game character enters the first virtual bunker and squats, the squat control can be displayed differently to enable the player to clearly know that the current game character is squatting behind a virtual bunker.
[0060] 203. In response to a second touch operation on the squat control, display a second bunker control within the associated area of the squat control, where the second bunker control is an identifier corresponding to a second virtual bunker in the game scene, and the second virtual bunker is a virtual bunker within a preset range from the game character.
[0061] Wherein, the second touch operation may be a long press operation, and the specific operation method of the second touch operation is not limited here.
[0062] Wherein, the second virtual bunker is a virtual bunker where the target game character in the current game scene can hide, that is, a virtual bunker within a preset range from the game character. Correspondingly, each second virtual bunker corresponds to a second bunker control, and the second bunker controls corresponding to the accessible second virtual bunkers can be displayed around the squat control within the associated area of the squat control. The bunker control may specifically be in the form of a picture, a button, etc., and the associated area of the squat control may be an area within a preset range centered on the squat control.
[0063] Exemplarily, as Figure 4 shown, in Figure 4 the graphical user interface 430, the game character 400 squatting behind the first virtual bunker 421 can currently enter the second virtual bunker, which is the virtual bunker 422, and the second bunker control 441 corresponding to the second virtual bunker 422 is displayed in the graphical user interface 430.
[0064] In this embodiment, to reduce the interference of irrelevant information during the game, trigger information can be set so that only when the player has a need, the corresponding bunker control for the virtual bunker that the target game character can currently enter is displayed around the crouching control in the graphical user interface, that is, the second bunker control corresponding to the second virtual bunker. Therefore, when the terminal obtains the second touch operation on the crouching control by the player through the graphical user interface, it indicates that the player currently has a need to move to a bunker and hide. The terminal can respond to the second touch operation on the crouching control, determine the second virtual bunker that the game character can currently enter from the virtual bunkers in the game scene, and thus display the second bunker control corresponding to the accessible second virtual bunker around the crouching control in the associated area of the crouching control in the graphical user interface.
[0065] It can be understood that by displaying the second bunker control corresponding to the second virtual bunker that the game character can currently enter around the crouching control in the graphical user interface, on the one hand, it can ensure that the accessible second virtual bunker can be quickly determined when the current player has a need, and on the other hand, it can also display the crouching control representing the game character and the second bunker control representing the currently accessible second virtual bunker, so as to control the game character through operating the control to achieve the player's needs, avoiding the problem of low accuracy caused by directly manually operating and controlling the game character, thereby improving the accuracy and convenience of operating the game character.
[0066] In some embodiments, a circular line centered on the crouching control can be displayed in the graphical user interface to display at least one second bunker control corresponding to the second virtual bunker on the circular line. For example Figure 4 the circular line displayed around the crouching control 410 in the graphical user interface 430 in, and control the second virtual bunker control 441 to be displayed on the circular line.
[0067] In some embodiments, to ensure that the player can clearly and accurately determine the second virtual bunker in the game scene based on the second bunker control, so as to avoid the situation of incorrect selection when choosing the second virtual bunker for the game character to hide, the display position of the second bunker control in the graphical user interface can be determined according to the position of the second virtual bunker in the game scene, the position of the game character in the game scene, and the display position of the crouching control in the graphical user interface.
[0068] Specifically, the first position relationship can be designed to match the second position relationship, where the first position relationship is the relationship between the display position of the second bunker control in the graphical user interface and the display position of the crouching control in the graphical user interface, and the second position relationship is the relationship between the position of the second virtual bunker in the game scene and the position of the game character in the game scene.
[0069] Wherein, the above matching may be that the first straight line corresponding to the first positional relationship is parallel to the second straight line corresponding to the second positional relationship, or the included angle between the first straight line corresponding to the first positional relationship and the second straight line corresponding to the second positional relationship is within a preset included angle range. Specifically, based on the display position of the second bunker control in the graphical user interface and the display position of the crouching control in the graphical user interface, a first straight line is generated; based on the position of the second virtual bunker in the game scene and the position of the game character in the game scene, a second straight line is generated.
[0070] Exemplarily, as Figure 4 shown, Figure 4 the first positional relationship between the second bunker control 441 and the crouching control 410 in [the figure] matches the second positional relationship between the second virtual bunker 422 and the game character 400 in the game scene.
[0071] Specifically, the display of the second bunker control within the associated area of the crouching control may include: obtaining the position of the accessible second virtual bunker in the game scene and the current position of the game character in the game scene, determining the second positional relationship between the accessible second virtual bunker and the game character in the game scene based on the position of the accessible second virtual bunker in the game scene and the current position of the game character in the game scene, determining the first positional relationship between the crouching control and the second bunker control corresponding to the accessible second virtual bunker according to the second positional relationship, and displaying the second bunker control corresponding to the accessible second virtual bunker at the corresponding position around the crouching control in the graphical user interface.
[0072] In some embodiments, there is at least one second virtual bunker in the game scene. The second virtual bunker in the game scene may include the second virtual bunker displayed in the graphical user interface, or may also include the second virtual bunker in the game scene that is not displayed in part of the graphical user interface. The area of the game scene that is not displayed in the graphical user interface may be determined according to the position of the game character. For example, with the position of the game character as the center, the area within a preset range includes the area of the game scene that is not displayed in the graphical user interface, wherein.
[0073] Specifically, the terminal can determine the positions of at least one virtual bunker in the game scene, respectively determine the distances between the game character and at least one virtual bunker in the game scene according to the current position of the game character and the positions of the virtual bunkers in the game scene, and select the second virtual bunkers with distances within the preset range from at least one virtual bunker in the game scene as the objects that the game character can currently enter.
[0074] Exemplarily, as Figure 5aAs shown, the terminal can use the current position of the game character 500 as the center and the distance threshold corresponding to the preset range as the radius to determine the selection range corresponding to the game character 500. That is, the dashed area in the graphical user interface 510 is the selection range corresponding to the game character. The virtual shelters in the game scene that are within the selection range corresponding to the game character are determined as the second virtual shelters that the game character can currently enter. That is, the virtual shelters 501 and 502 in the graphical user interface 510 are determined as the second virtual shelters that the game character 500 can currently enter, while the virtual shelter 503 is a shelter that the game character 500 cannot currently enter.
[0075] Exemplarily, as Figure 5b shown, the terminal can also use the position of the virtual shelter in the game scene as the center and the distance threshold corresponding to the preset range as the radius to determine the selection range corresponding to the virtual shelter in the game scene. That is, each dashed area in the graphical user interface 510 is the selection range corresponding to the virtual shelter in the game scene. Based on the current position of the game character 500, the virtual shelters with the game character within the selection range corresponding to the virtual shelter are determined as the second virtual shelters that the game character can currently enter. That is, the virtual shelters 504 and 505 in the graphical user interface 510 are determined as the second virtual shelters that the game character 500 can currently enter, while the virtual shelter 506 is an object that the game character 500 cannot currently enter.
[0076] In some embodiments, in order to reduce the number of operations during the game and speed up the speed of the game character when hiding after moving from the current position to a shelter in the game scene, the second shelter control corresponding to the second virtual shelter that the game character can currently enter can be continuously displayed around the crouching control in the graphical user interface. Specifically, the current position of the game character can be obtained in real time, and based on the current position of the game character, the second shelter control corresponding to the second virtual shelter that the game character can currently enter is determined, and then the second shelter control is displayed.
[0077] 204. In response to the selection operation for the second shelter control, control the game character to switch from the first virtual shelter to the second virtual shelter for crouching.
[0078] Among them, the above selection operation for the second shelter control may include: a click operation on the second shelter control; and / or, a drag operation of dragging the crouching control to the second shelter control; and / or, a sliding operation of sliding from the crouching control to the second shelter control, etc. The above selection operation for the second shelter control may also include: a drag operation of dragging the second shelter control to the crouching control; and / or, a sliding operation of sliding from the second shelter control to the crouching control, etc.
[0079] Among them, the above click operation can be a single click operation, a double click operation, etc. The specific operation method of the click operation is not limited here.
[0080] In this embodiment, after the terminal determines the second virtual bunker to crouch in, it controls the game character to switch from the first virtual bunker to the second virtual bunker to crouch, which can avoid the situation where the player cannot control the game character to perform the crouching action in time when the game character reaches the bunker, thereby improving the efficiency of the game character hiding after moving from one bunker to another in the game scene.
[0081] Exemplarily, as Figure 6 shown, if the selection operation for the second bunker control 641 is set, and the second bunker control 641 corresponds to the second virtual bunker 622, then in Figure 6 the graphical user interface 630, the game character 600 crouching behind the first virtual bunker 621 is switched from the first virtual bunker 621 to the second virtual bunker 622 to crouch.
[0082] In some embodiments, when the above selection operation for the second bunker control is a drag operation of dragging the crouching control to the second bunker control; and / or, a sliding operation of sliding from the crouching control to the second bunker control, when the crouching control is released after being dragged or slid to the second bunker control, the terminal needs to control the game character to switch from the first virtual bunker to the second virtual bunker to crouch.
[0083] Among them, to improve the response speed of the game character, the terminal can control the game character to move towards the second virtual bunker during the continuous process of dragging or sliding the crouching control, and when the crouching control is released after being dragged or slid to the second bunker control, control the game character to crouch at the second virtual bunker; the terminal can also control the game character to move towards the second virtual bunker when the crouching control is released after being dragged or slid to the second bunker control, and when moving to the second virtual bunker, control the game character to crouch at the second virtual bunker.
[0084] Exemplarily, as Figure 7a shown, in the graphical user interface 740, when the player presses the crouching control 710, it prompts the terminal to respond to the press operation and control the game character 700 to stand ready to move towards a certain bunker. Then, as Figure 7b shown, the terminal responds to the continuous process of the player dragging the crouching control 710 in the direction pointed by the arrow, and controls the game character 700 to move in the direction pointed by the arrow in the graphical user interface 740. Since the direction pointed by the arrow when the player drags the crouching control 710 corresponds to the second bunker control 730, the terminal controls the game character 700 to move towards the second virtual bunker 720 corresponding to the second bunker control 730. Then, as Figure 7cAs shown, until the crouching control 710 is dragged to the second cover control 730 and released, after controlling the game character 700 to crouch behind the second virtual cover 720 in the graphical user interface 740, as Figure 7c shown, at this time the game character 700 is in a crouching state.
[0085] In some embodiments, if the second touch operation is a long-press operation, then when the second cover control corresponding to the second virtual cover that can be entered is displayed through the long-press operation, the player can directly perform the drag operation of dragging the crouching control to the second cover control without releasing the crouching control; and / or, the sliding operation of sliding from the crouching control to the second cover control to control the game character to switch from the first virtual cover to the second virtual cover for crouching.
[0086] In some embodiments, after controlling the game character to crouch behind the second virtual cover, it may include: obtaining the surrounding environment of the second virtual cover, determining the hiding position of the second virtual cover according to the surrounding environment, and controlling the game character to crouch behind the second virtual cover according to the hiding position. Among them, the above-mentioned surrounding environment information includes the game environment within a specific range of the second virtual cover, the positions and orientations of other game characters except the game character within the specific range, etc.; the above-mentioned hiding position may be the positions corresponding to each direction of the second virtual cover.
[0087] In some embodiments, after controlling the game character to switch from the first virtual cover to the second virtual cover for crouching, the method further includes: hiding the crouching control and the second cover control displayed within the associated area of the crouching control.
[0088] In some embodiments, the terminal can also switch back from the second virtual cover to the first virtual cover. Specifically, it may include: after controlling the game character to switch from the first virtual cover to the second virtual cover for crouching, the method further includes: responding to the sliding operation from the second cover control to the crouching control, or responding to the drag operation of dragging the second cover control to the crouching control, or responding to the click operation on the crouching control, and controlling the game character to switch from the second virtual cover to the first virtual cover for crouching.
[0089] In some embodiments, the display of the second bunker control within the associated area of the crouch control may include: displaying a plurality of second bunker controls within the associated area of the crouch control, indicating that there are two or more second bunker controls currently, and the second virtual bunkers corresponding to the second bunker controls. Then, the response to the selection operation for the second bunker control to control the game character to switch from the first virtual bunker to the second virtual bunker for crouching includes: responding to the selection operation for the first target bunker control among the second bunker controls, that is, determining the first target bunker control from two or more second bunker controls, so as to control the game character to switch from the first virtual bunker to the first target bunker for crouching.
[0090] Further, after controlling the game character to switch from the first virtual bunker to the first target bunker for crouching, the method further includes: responding to the click operation for the crouch control, and controlling the game character to switch from the first target bunker to the second target bunker among the second bunker controls for crouching.
[0091] Wherein, the second target bunker is a bunker among the second bunker controls that satisfies a preset positional relationship with the position of the game character, so that by clicking on the crouch control, the game character can be controlled to switch from the first target bunker to the second target bunker among the second bunker controls for crouching.
[0092] In some embodiments, as Figure 8a shown, Figure 8a among the second bunker controls displayed around the crouch control 810 on the graphical user interface 840, in addition to the second bunker control 831 corresponding to the second virtual bunker 821 and the second bunker control 832 corresponding to the second virtual bunker 822 displayed in the graphical user interface, the second bunker controls displayed in the graphical user interface further include the second bunker control 833 corresponding to the second virtual bunker 823. For the sake of clear description, in this embodiment, the second virtual bunker 823 is described as the target virtual bunker, and correspondingly, the second bunker control 833 corresponding to the second virtual bunker 823 is described as the target bunker control.
[0093] The target virtual bunker is a second virtual bunker that is not currently displayed in the graphical user interface, that is, the player cannot see the surrounding environment of the target virtual bunker without adjusting the field of view of the game character 800. Therefore, for the convenience of the player to observe the surrounding environment of the game character when the game character moves towards the target virtual bunker, or for the convenience of the player to judge whether the target virtual bunker meets the expected hiding standard, in this embodiment, the surrounding environment of the target virtual bunker can be displayed to facilitate the player's operation or observation.
[0094] Specifically, the terminal can respond to a fourth touch operation on a target bunker control and display an observation window corresponding to the target virtual bunker. The observation window is used to display the game scene picture collected based on the position of the target virtual bunker in the game scene. The window size and position of the observation window can be set according to user needs. For example, it can be displayed near the target bunker control, such as Figure 8b As shown, when the player performs a fourth touch operation on the second bunker control 833, the terminal can respond to this fourth touch operation and display an observation window 850 corresponding to the second virtual bunker 823 in the graphical user interface 840.
[0095] Among them, the above-mentioned fourth touch operation can be a long-press operation, a click operation, etc. on the target bunker control. The specific operation method of the fourth touch operation is not limited here.
[0096] Specifically, if the operation methods corresponding to the fourth touch operation and the selection operation are the same, for example, both the fourth touch operation and the selection operation are click operations, then the terminal can regard the fourth touch operation and the selection operation as the same operation. That is, when the terminal responds to the click operation on the target bunker control and controls the game character to move towards the target virtual bunker until it squats behind the target virtual bunker, the observation window corresponding to the target virtual bunker is displayed at the same time; the terminal can also set the order of the fourth touch operation and the selection operation. That is, if the fourth touch operation is before the selection operation, then when the terminal responds to the first click operation on the target bunker control, the observation window corresponding to the target virtual bunker is displayed, and when the terminal responds to the second click operation on the target bunker control, the game character is controlled to switch to the target virtual bunker and squat.
[0097] As can be seen from the above, by providing a graphical user interface through a terminal device, the content displayed in the graphical user interface includes at least part of the game scene, and the game scene includes a game character controlled by the terminal device and a virtual bunker. And in response to the position of the game character and the first virtual bunker in the virtual bunker satisfying a preset position relationship, a crouching control is displayed in the associated area of the first virtual bunker, so as to prompt the current player to quickly enter the first virtual bunker through the crouching control when needed, that is, by responding to the first touch operation on the crouching control, controlling the game character to enter the first virtual bunker for crouching. Moreover, in the embodiment of the present application, by responding to the second touch operation on the crouching control, a second bunker control is displayed in the associated area of the crouching control, where the second bunker control is an identifier corresponding to the second virtual bunker in the game scene, and the second virtual bunker is a virtual bunker within a preset range from the game character, so as to ensure that the current player can quickly determine the virtual bunker that can be entered currently when needed, and can also conveniently and accurately perform corresponding operations based on the bunker control corresponding to the virtual bunker that can be entered currently, that is, by responding to the selection operation on the second bunker control, controlling the game character to switch from the first virtual bunker to the second virtual bunker for crouching, thus not only avoiding the position offset phenomenon when manually controlling the game character to move to the bunker required by the player, but also avoiding the situation where the player cannot timely control the game character to perform the crouching action when the game character reaches the bunker, thereby improving the efficiency of the game character hiding after moving from one bunker to another in the game scene.
[0098] To better implement the above method, the embodiment of the present application also provides a control device for a game character. The control device for the game character can be specifically integrated in an electronic device, such as a computer device, and the computer device can be a device such as a terminal or a server.
[0099] Among them, the terminal can be a device such as a mobile phone, a tablet computer, a smart Bluetooth device, a laptop computer, or a personal computer; the server can be a single server or a server cluster composed of multiple servers.
[0100] For example, in this embodiment, taking the control device for the game character being specifically integrated in the terminal as an example, the method of the embodiment of the present application will be described in detail. This embodiment provides a control device for a game character. The device provides a graphical user interface through a terminal device, and the content displayed in the graphical user interface includes at least part of the game scene, and the game scene includes a game character controlled by the terminal device and a virtual bunker, as Figure 9 shown, the control device for the game character may include:
[0101] The first control display module 901 is configured to, in response to the position of the game character and the first virtual bunker in the virtual bunker satisfying a preset position relationship, display a crouching control in the associated area of the first virtual bunker;
[0102] The first crouching control module 902 is configured to, in response to a first touch operation on the crouching control, control the game character to enter the first virtual bunker for crouching;
[0103] The second control display module 903 is configured to, in response to a second touch operation on the crouching control, display a second bunker control in the associated area of the crouching control, where the second bunker control is an identifier corresponding to a second virtual bunker in the game scene, and the second virtual bunker is a virtual bunker whose distance from the game character is within a preset range;
[0104] The second crouching control module 904 is configured to, in response to a selection operation on the second bunker control, control the game character to switch from the first virtual bunker to the second virtual bunker for crouching.
[0105] In some embodiments, the control device of the game character further includes a position determination module, and the position determination module is specifically configured to:
[0106] Determine the display position of the second bunker control in the graphical user interface according to the position of the second virtual bunker in the game scene, the position of the game character in the game scene, and the display position of the crouching control in the graphical user interface.
[0107] In some embodiments, the first position relationship matches the second position relationship, where the first position relationship is the relationship between the display position of the second bunker control in the graphical user interface and the display position of the crouching control in the graphical user interface, and the second position relationship is the relationship between the position of the second virtual bunker in the game scene and the position of the game character in the game scene.
[0108] In some embodiments, the selection operation on the second bunker control includes:
[0109] A click operation on the second bunker control; and / or,
[0110] A drag operation of dragging the crouching control to the second bunker control; and / or,
[0111] A slide operation of sliding from the crouching control to the second bunker control.
[0112] In some embodiments, the first touch operation is a click operation, and the second touch operation is a long press operation.
[0113] In some embodiments, the control device of the above game character further includes a control hiding module, and the control hiding module is specifically configured to:
[0114] Hide the crouching control and the second bunker control displayed within the associated area of the crouching control.
[0115] In some embodiments, the control device of the above game character further includes a third crouching control module, and the third crouching control module is specifically configured to:
[0116] In response to a sliding operation from the second bunker control to the crouching control, or a dragging operation of dragging the second bunker control to the crouching control, or a click operation on the crouching control, control the game character to switch from the second virtual bunker to the first virtual bunker for crouching.
[0117] In some embodiments, the above second control display module 903 is specifically configured to:
[0118] Display a plurality of second bunker controls within the associated area of the crouching control;
[0119] The above second crouching control module 904 is specifically configured to:
[0120] In response to a selection operation on the first target bunker control among the second bunker controls, control the game character to switch from the first virtual bunker to the first target bunker for crouching;
[0121] The control device of the above game character further includes a fourth crouching control module, and the fourth crouching control module is specifically configured to:
[0122] In response to a click operation on the crouching control, control the game character to switch from the first target bunker to the second target bunker among the second bunker controls for crouching.
[0123] In some embodiments, the control device of the above game character further includes a state switching module, and the state switching module is specifically configured to:
[0124] After the game character crouches in the first virtual bunker, in response to a third touch operation on the crouching control, control the game character to switch from the crouching state to the standing state.
[0125] As can be seen from the above, the control device of the game character in this embodiment provides a graphical user interface through a terminal device. The content displayed in the graphical user interface includes at least part of the game scene, the game character controlled by the terminal device and a virtual bunker in the game scene. And through the first control display module 901, when the position relationship between the game character and the first virtual bunker in the virtual bunker meets the preset position relationship, a crouching control is displayed in the associated area of the first virtual bunker, so as to prompt the current player to quickly enter the first virtual bunker through the crouching control when needed. That is, through the first crouching control module 902, in response to the first touch operation on the crouching control, the game character is controlled to enter the first virtual bunker for crouching. Moreover, in the embodiment of the present application, through the second control display module 903, in response to the second touch operation on the crouching control, a second bunker control is displayed in the associated area of the crouching control. Among them, the second bunker control is the identifier corresponding to the second virtual bunker in the game scene, and the second virtual bunker is a virtual bunker within a preset range from the game character. Thus, by determining the second bunker control, it is ensured that the current player can quickly determine the virtual bunker that can be entered currently when needed, and can also conveniently and accurately perform corresponding operations based on the bunker control corresponding to the currently enterable virtual bunker. That is, by responding to the selection operation on the second bunker control, the game character is controlled to switch from the first virtual bunker to the second virtual bunker for crouching, thereby not only avoiding the position deviation phenomenon when manually controlling the game character to move to the bunker required by the player, but also avoiding the situation where the player cannot timely control the game character to perform the crouching action when the game character reaches the bunker, thus improving the efficiency of the game character hiding after moving from one bunker to another in the game scene.
[0126] Correspondingly, the embodiment of the present application further provides an electronic device, which can be a terminal, and the terminal can be a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA), and other terminal devices. As Figure 10 shown, Figure 10Schematic diagram of the structure of the electronic device provided by the embodiment of the present application. The electronic device 100 includes a processor 101 having one or more processing cores, a memory 102 having one or more computer-readable storage media, and a computer program stored on the memory 102 and executable on the processor. Among them, the processor 101 is electrically connected to the memory 102. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the electronic device, and it may include more or fewer components than shown in the figure, or combine some components, or arrange different components.
[0127] The processor 101 is the control center of the electronic device 100, connecting various parts of the entire electronic device 100 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 102, and calling data stored in the memory 102, it executes various functions of the electronic device 100 and processes data, thereby monitoring the entire electronic device 100.
[0128] In the embodiment of the present application, the processor 101 in the electronic device 100 will load the instructions corresponding to the processes of one or more application programs into the memory 102 according to the following steps, and the processor 101 will run the application programs stored in the memory 102 to implement various functions:
[0129] In response to the position of the game character and the first virtual bunker in the virtual bunker satisfying a preset position relationship, a crouching control is displayed in the associated area of the first virtual bunker;
[0130] In response to a first touch operation on the crouching control, control the game character to enter the first virtual bunker for crouching;
[0131] In response to a second touch operation on the crouching control, a second bunker control is displayed within the associated area of the crouching control, where the second bunker control is an identifier corresponding to a second virtual bunker in the game scene, and the second virtual bunker is a virtual bunker within a preset range from the game character;
[0132] In response to a selection operation on the second bunker control, control the game character to switch from the first virtual bunker to the second virtual bunker for crouching.
[0133] In some embodiments, it further includes: determining the display position of the second bunker control in the graphical user interface according to the position of the second virtual bunker in the game scene, the position of the game character in the game scene, and the display position of the crouching control in the graphical user interface.
[0134] In some embodiments, the first positional relationship matches the second positional relationship, where the first positional relationship is the relationship between the display position of the second bunker control in the graphical user interface and the display position of the crouch control in the graphical user interface, and the second positional relationship is the relationship between the position of the second virtual bunker in the game scene and the position of the game character in the game scene.
[0135] In some embodiments, the selection operation for the second bunker control includes:
[0136] A click operation on the second bunker control; and / or,
[0137] A drag operation of dragging the crouch control to the second bunker control; and / or,
[0138] A swipe operation starting from the crouch control and swiping to the second bunker control.
[0139] In some embodiments, the first touch operation is a click operation, and the second touch operation is a long press operation.
[0140] In some embodiments, after controlling the game character to switch from the first virtual bunker to the second virtual bunker for crouching, the method further includes:
[0141] Hiding the crouch control and the second bunker control displayed within the associated area of the crouch control.
[0142] In some embodiments, after controlling the game character to switch from the first virtual bunker to the second virtual bunker for crouching, the method further includes:
[0143] In response to a swipe operation from the second bunker control to the crouch control, or in response to a drag operation of dragging the second bunker control to the crouch control, or in response to a click operation on the crouch control, controlling the game character to switch from the second virtual bunker to the first virtual bunker for crouching.
[0144] In some embodiments, displaying the second bunker control within the associated area of the crouch control includes:
[0145] Displaying a plurality of second bunker controls within the associated area of the crouch control;
[0146] In response to the selection operation for the second bunker control, controlling the game character to switch from the first virtual bunker to the second virtual bunker for crouching includes:
[0147] In response to the selection operation for the first target bunker control among the second bunker controls, controlling the game character to switch from the first virtual bunker to the first target bunker for crouching;
[0148] After controlling the game character to switch from the first virtual bunker to the first target bunker for crouching, the method further includes:
[0149] In response to a click operation on the crouching control, control the game character to switch from the first target bunker to the second target bunker in the second bunker control for crouching.
[0150] In some embodiments, it further includes:
[0151] After the game character crouches in the first virtual bunker, in response to a third touch operation on the crouching control, control the game character to switch from the crouching state to the standing state.
[0152] Thus, the electronic device 100 provided in this embodiment can bring the following technical effects: It not only avoids the position offset phenomenon when manually operating to control the game character to move to the bunker required by the player, but also avoids the situation where the player cannot timely control the game character to perform the crouching action after the game character reaches the bunker, thereby improving the efficiency of the game character hiding after moving from one bunker to another in the game scene.
[0153] For the specific implementation of each of the above operations, reference can be made to the previous embodiments, which will not be elaborated here.
[0154] Optionally, as Figure 10 shown, the electronic device 100 further includes: a touch display screen 103, a radio frequency circuit 104, an audio circuit 105, an input unit 106, and a power supply 107. Among them, the processor 101 is electrically connected to the touch display screen 103, the radio frequency circuit 104, the audio circuit 105, the input unit 106, and the power supply 107 respectively. Those skilled in the art can understand that Figure 10 the structure of the electronic device shown in
[0155] The touch display screen 103 can be used to display a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface. The touch display screen 103 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. The touch panel can be used to collect touch operations of the user on or near it (such as operations of the user using any suitable object or accessory such as a finger or a stylus on or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute the corresponding program. Optionally, the touch panel can include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch position of the user and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 101, and can receive and execute the commands sent by the processor 101. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 101 to determine the type of touch event. Subsequently, the processor 101 provides a corresponding visual output on the display panel according to the type of touch event. In the embodiments of the present application, the touch panel and the display panel can be integrated into the touch display screen 103 to implement input and output functions. However, in some embodiments, the touch panel and the touch panel can be implemented as two independent components to implement input and output functions. That is, the touch display screen 103 can also be used as part of the input unit 106 to implement the input function.
[0156] The radio frequency circuit 104 can be used to transmit and receive radio frequency signals to establish wireless communication with a network device or other electronic devices through wireless communication, and transmit and receive signals with the network device or other electronic devices.
[0157] The audio circuit 105 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 105 can transmit the electrical signal after converting the received audio data to the speaker, and the speaker converts it into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 105 and then converted into audio data. After the audio data is output to the processor 101 for processing, it is transmitted through the radio frequency circuit 104 to, for example, another electronic device, or the audio data is output to the memory 102 for further processing. The audio circuit 105 may also include an earphone jack to provide communication between the peripheral earphone and the electronic device.
[0158] The input unit 106 can be used to receive input digital, character information or user characteristic information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0159] The power supply 107 is used to supply power to each component of the electronic device 100. Optionally, the power supply 107 can be logically connected to the processor 101 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 107 can also include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, a power status indicator, etc.
[0160] Although Figure 10 not shown in the figure, the electronic device 100 may further include a camera, a sensor, a Wi-Fi module, a Bluetooth module, etc., which will not be elaborated here.
[0161] In the above embodiments, the descriptions of the various embodiments have their own emphases. For parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0162] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling relevant hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0163] For this reason, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored. The computer programs can be loaded by a processor to execute the steps in any one of the control methods of game characters provided by the embodiments of the present application. For example, the computer program can execute the following steps:
[0164] In response to the position of the game character and the first virtual bunker in the virtual bunker satisfying a preset position relationship, a crouching control is displayed in the associated area of the first virtual bunker;
[0165] In response to a first touch operation on the crouching control, control the game character to enter the first virtual bunker and crouch;
[0166] In response to a second touch operation on the crouching control, a second bunker control is displayed within the associated area of the crouching control, where the second bunker control is an identifier corresponding to a second virtual bunker in the game scene, and the second virtual bunker is a virtual bunker within a preset range from the game character;
[0167] In response to a selection operation on the second bunker control, control the game character to switch from the first virtual bunker to the second virtual bunker for crouching.
[0168] In some embodiments, it further includes: determining the display position of the second bunker control in the graphical user interface according to the position of the second virtual bunker in the game scene, the position of the game character in the game scene, and the display position of the crouching control in the graphical user interface.
[0169] In some embodiments, the first positional relationship matches the second positional relationship, where the first positional relationship is the relationship between the display position of the second bunker control in the graphical user interface and the display position of the crouching control in the graphical user interface, and the second positional relationship is the relationship between the position of the second virtual bunker in the game scene and the position of the game character in the game scene.
[0170] In some embodiments, the selection operation for the second bunker control includes:
[0171] A click operation on the second bunker control; and / or,
[0172] A drag operation of dragging the crouching control to the second bunker control; and / or,
[0173] A swipe operation starting from the crouching control and swiping to the second bunker control.
[0174] In some embodiments, the first touch operation is a click operation, and the second touch operation is a long press operation.
[0175] In some embodiments, after controlling the game character to switch from the first virtual bunker to the second virtual bunker for crouching, the method further includes:
[0176] Hide the crouching control and the second bunker control displayed in the associated area of the crouching control.
[0177] In some embodiments, after controlling the game character to switch from the first virtual bunker to the second virtual bunker for crouching, the method further includes:
[0178] In response to a swipe operation from the second bunker control to the crouching control, or a drag operation of dragging the second bunker control to the crouching control, or a click operation on the crouching control, control the game character to switch from the second virtual bunker to the first virtual bunker for crouching.
[0179] In some embodiments, displaying the second bunker control in the associated area of the crouching control includes:
[0180] Displaying multiple second bunker controls in the associated area of the crouching control;
[0181] In response to a selection operation on a second cover control, controlling a game character to switch from a first virtual cover to a second virtual cover for crouching, including:
[0182] In response to a selection operation on a first target cover control in the second cover control, controlling the game character to switch from the first virtual cover to the first target cover for crouching;
[0183] After controlling the game character to switch from the first virtual cover to the first target cover for crouching, the method further includes:
[0184] In response to a click operation on a crouching control, controlling the game character to switch from the first target cover to a second target cover in the second cover control for crouching.
[0185] In some embodiments, it further includes:
[0186] After the game character crouches in the first virtual cover, in response to a third touch operation on the crouching control, controlling the game character to switch from the crouching state to the standing state.
[0187] It can be seen that the computer program can be loaded by a processor to execute the steps in any of the game character control methods provided by the embodiments of the present application, thereby bringing the following technical effects: not only avoiding the position offset phenomenon when manually operating to control the game character to move to the cover required by the player, but also avoiding the situation where the player cannot timely control the game character to perform the crouching action when the game character reaches the cover, and further improving the efficiency of the game character hiding after moving from one cover to another in the game scene.
[0188] For the specific implementation of each of the above operations, reference can be made to the previous embodiments, which will not be elaborated here.
[0189] Among them, the computer-readable storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
[0190] Since the computer program stored in the computer-readable storage medium can execute the steps in any of the game character control methods provided by the embodiments of the present application, the beneficial effects achievable by any of the game character control methods provided by the embodiments of the present application can be realized. For details, refer to the previous embodiments, which will not be elaborated here.
[0191] The above has introduced in detail a method, apparatus, electronic device, and computer-readable storage medium for controlling a game character provided by an embodiment of the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A control method for a game character, characterized in that, a graphical user interface is provided by a terminal device, and the content displayed in the graphical user interface includes at least part of a game scene, a game character controlled by the terminal device, and a virtual bunker in the game scene. The method includes: responding to the position of the game character and a first virtual bunker in the virtual bunker satisfying a preset position relationship, and displaying a crouching control in the associated area of the first virtual bunker; responding to a first touch operation on the crouching control, and controlling the game character to enter the first virtual bunker for crouching; responding to a second touch operation on the crouching control, and displaying a plurality of second bunker controls in the associated area of the crouching control, where the second bunker control is an identifier corresponding to a second virtual bunker in the game scene, and the second virtual bunker is a virtual bunker within a preset range from the game character; responding to a selection operation on the second bunker control, determining a first target bunker control from the plurality of second bunker controls, and controlling the game character to switch from the first virtual bunker to the second virtual bunker corresponding to the first target bunker control for crouching; after the game character crouches in the first virtual bunker, responding to a third touch operation on the crouching control, and controlling the game character to switch from the crouching state to the standing state.
2. The method according to claim 1, characterized in that, the method further includes: determining the display position of the second bunker control in the graphical user interface according to the position of the second virtual bunker in the game scene, the position of the game character in the game scene, and the display position of the crouching control in the graphical user interface.
3. The method according to claim 2, characterized in that, a first position relationship matches a second position relationship, where the first position relationship is the relationship between the display position of the second bunker control in the graphical user interface and the display position of the crouching control in the graphical user interface, and the second position relationship is the relationship between the position of the second virtual bunker in the game scene and the position of the game character in the game scene.
4. The method according to claim 1, characterized in that, the selection operation on the second bunker control includes: a click operation on the second bunker control; and / or, a drag operation of dragging the crouching control to the second bunker control; and / or, a swipe operation starting from the crouching control to the second bunker control.
5. The method according to claim 1, characterized in that, the first touch operation is a click operation, and the second touch operation is a long press operation.
6. The method according to claim 1, characterized in that, after controlling the game character to switch from the first virtual bunker to the second virtual bunker for crouching, the method further includes: hiding the crouching control and the second bunker controls displayed in the associated area of the crouching control.
7. The method according to claim 1, characterized in that, After controlling the game character to switch from the first virtual bunker to the second virtual bunker for crouching, the method further includes: In response to a sliding operation from the second bunker control to the crouching control, or a dragging operation of dragging the second bunker control to the crouching control, or a click operation on the crouching control, controlling the game character to switch from the second virtual bunker to the first virtual bunker for crouching.
8. The method according to claim 1, wherein, after controlling the game character to switch from the first virtual bunker to the second virtual bunker corresponding to the first target bunker control for crouching, the method further includes: In response to a click operation on the crouching control, controlling the game character to switch from the second virtual bunker corresponding to the first target bunker control to the second target bunker in the second bunker control for crouching.
9. A control device for a game character, wherein, a graphical user interface is provided through a terminal device, and the content displayed in the graphical user interface includes at least part of a game scene, a game character controlled by the terminal device in the game scene, and virtual bunkers. The device includes: A first control display module, configured to display a crouching control in an associated area of the first virtual bunker in response to the position of the game character and the first virtual bunker in the virtual bunker satisfying a preset position relationship; A first crouching control module, configured to control the game character to enter the first virtual bunker for crouching in response to a first touch operation on the crouching control; A second control display module, configured to display a plurality of second bunker controls in an associated area of the crouching control in response to a second touch operation on the crouching control, wherein the second bunker control is an identifier corresponding to a second virtual bunker in the game scene, and the second virtual bunker is a virtual bunker within a preset range from the game character; A second crouching control module, configured to determine a first target bunker control from the plurality of second bunker controls in response to a selection operation on the second bunker control, and control the game character to switch from the first virtual bunker to the second virtual bunker corresponding to the first target bunker control for crouching; A state switching module, configured to control the game character to switch from a crouching state to a standing state in response to a third touch operation on the crouching control after the game character crouches in the first virtual bunker.
10. An electronic device, wherein, it includes a processor and a memory, and the memory stores multiple instructions; the processor loads the instructions from the memory to execute the steps in the control method for a game character according to any one of claims 1 to 8.
11. A computer-readable storage medium, wherein, the computer-readable storage medium stores multiple instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the control method for a game character according to any one of claims 1 to 8.
Citation Information
Patent Citations
Player character control method and device, electronic equipment and storage medium
CN114404986A