WO2024051116A1 - Control method and apparatus for virtual character, and storage medium and terminal device - Google Patents

Control method and apparatus for virtual character, and storage medium and terminal device Download PDF

Info

Publication number
WO2024051116A1
WO2024051116A1 PCT/CN2023/079125 CN2023079125W WO2024051116A1 WO 2024051116 A1 WO2024051116 A1 WO 2024051116A1 CN 2023079125 W CN2023079125 W CN 2023079125W WO 2024051116 A1 WO2024051116 A1 WO 2024051116A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual
virtual character
touch operation
bunker
control
Prior art date
Application number
PCT/CN2023/079125
Other languages
French (fr)
Chinese (zh)
Inventor
苗浩琦
Original Assignee
网易(杭州)网络有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 网易(杭州)网络有限公司 filed Critical 网易(杭州)网络有限公司
Publication of WO2024051116A1 publication Critical patent/WO2024051116A1/en

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present disclosure relates to the field of computers, and specifically to a virtual character control method, device, computer-readable storage medium and terminal equipment.
  • Embodiments of the present disclosure provide a method and device for controlling a virtual character to improve the virtual character's avoidance success rate at a virtual bunker.
  • embodiments of the present disclosure provide a method for controlling a virtual character, providing a graphical user interface through a terminal device.
  • the graphical user interface includes at least part of a virtual scene, a moving joystick and a crouching control, and a graphical user interface located in the virtual scene.
  • the virtual character and the virtual bunker in the method include:
  • control the virtual character to crouch behind the first surface of the virtual bunker In response to the first touch operation on the crouch control, control the virtual character to crouch behind the first surface of the virtual bunker;
  • the virtual character When the virtual character moves in the target direction to the boundary position of the first surface, respond For the third touch operation of the mobile joystick, the virtual character is controlled to switch from the first surface of the virtual bunker to the back of the second surface of the virtual bunker to crouch, wherein the first surface adjacent to the second surface.
  • embodiments of the present disclosure also provide a control device for a virtual character, which is characterized in that a graphical user interface is provided through a terminal device, and the graphical user interface includes at least part of the virtual scene, a moving rocker, and a crouching control, and Virtual characters and virtual bunkers located in the virtual scene include:
  • a first control module configured to control the virtual character to crouch behind the first surface of the virtual bunker in response to a first touch operation on the crouch control
  • a second control module configured to respond to a second touch operation of the moving joystick in the target direction and control the virtual character to move behind the first surface in the target direction;
  • a third control module configured to, when the virtual character moves in the target direction to the boundary position of the first surface, in response to a third touch operation on the moving rocker, control the virtual character to move from the The first surface of the virtual bunker is switched to the rear of the second surface of the virtual bunker to crouch, wherein the first surface is adjacent to the second surface.
  • embodiments of the present disclosure also provide a computer-readable storage medium that stores a plurality of instructions, and the instructions are suitable for loading by the processor to execute the above-mentioned virtual character control method. A step of.
  • embodiments of the present disclosure also provide a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the feature is that when the processor executes the program, The steps in the method of controlling the virtual character are as described above.
  • the embodiment of the present disclosure controls the virtual character to crouch behind the first surface of the virtual bunker by responding to the first touch operation of the crouch control; and responding to the second touch operation of the moving rocker in the target direction.
  • the third touch operation of the mobile joystick controls the virtual character to switch from the first surface of the virtual bunker to the back of the second surface of the virtual bunker to crouch, wherein the first surface is connected to the second surface of the virtual bunker.
  • the second surface is adjacent.
  • the virtual character can be controlled to turn between the surfaces of the virtual bunker while in a crouching state, without adding other controls.
  • software and achieves more flexible control of virtual characters, simple and easy operation, thereby reducing the operating cost and running time of the game in the terminal device, and saving the power of the terminal device.
  • Figure 1a is a system schematic diagram of a virtual character control method provided by an embodiment of the present disclosure.
  • Figure 1b is a schematic flowchart of a virtual character control method provided by an embodiment of the present disclosure.
  • Figure 1c is a schematic diagram of a graphical user interface provided by an embodiment of the present disclosure.
  • Figure 1d is another schematic diagram of a graphical user interface provided by an embodiment of the present disclosure.
  • Figure 1e is another schematic diagram of a graphical user interface provided by an embodiment of the present disclosure.
  • Figure 1f is another schematic diagram of a graphical user interface provided by an embodiment of the present disclosure.
  • Figure 1g is another schematic diagram of a graphical user interface provided by an embodiment of the present disclosure.
  • Figure 2 is a schematic structural diagram of a virtual character control device provided by an embodiment of the present disclosure
  • Figure 3 is a schematic structural diagram of a terminal device provided by an embodiment of the present disclosure.
  • Embodiments of the present disclosure provide a virtual character control method, device, storage medium, and terminal device.
  • the virtual character control method in the embodiment of the present disclosure can be executed by a terminal device, where the terminal device can be a terminal or a server.
  • the terminal can be a terminal device such as a smartphone, 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), etc.
  • the terminal device can also include a client , the client may be a game application client, a browser client carrying a game program, or an instant messaging client, etc.
  • the server can be an independent physical server or multiple physical services Server clusters or distributed systems composed of servers can also provide 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 cloud servers for basic cloud computing services such as artificial intelligence platforms.
  • the terminal device when the virtual character control method is run on the terminal, the terminal device stores a game application program and presents part of the game scene in the game through the display component.
  • the terminal device is used to interact with the user through a graphical user interface, such as downloading, installing and running game applications through the terminal device.
  • the terminal device may provide the graphical user interface to the user in a variety of ways, for example, it may be rendered and displayed on the display screen of the terminal device, or the graphical user interface may be presented through holographic projection.
  • the terminal device may include a touch display screen and a processor
  • the touch display screen is used to present a graphical user interface and receive operating instructions generated by the user acting on the graphical user interface
  • the graphical user interface includes game screens
  • the processor is used to Run the game, generate a graphical user interface, respond to operating instructions, and control the display of the graphical user interface on the touch display.
  • Cloud gaming refers to a gaming method based on cloud computing.
  • the running body of the game application and the game screen presentation body are separated, and the storage and operation of the virtual character control method are completed on the cloud game server.
  • the game screen presentation 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.
  • the cloud game client can be close to the user side and has the data transmission function. Display devices, such as mobile terminals, televisions, computers, PDAs, personal digital assistants, etc., but the terminal device that controls the virtual character is a cloud game server in the cloud.
  • the user When playing a game, the user operates the cloud game client to send operating instructions to the cloud game server.
  • the cloud game server runs the game according to the operating instructions, encodes and compresses the game screen and other data, and returns it to the cloud game client through the network. Finally, through the cloud game The client decodes and outputs the game screen.
  • FIG. 1a is a system schematic diagram of a virtual character control method provided by an embodiment of the present disclosure.
  • the system may include at least one terminal device 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 device 1000 is any device having computing hardware capable of supporting and executing a software product corresponding to a game.
  • the terminal device 1000 has a function for sensing and obtaining user's touches performed at multiple points of one or more touch display screens or One or more multi-touch-sensitive screens for swipe input.
  • the network 4000 may be a wireless network or a wired network.
  • the wireless network may 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.
  • different terminal devices 1000 can also use their own Bluetooth networks or hotspot networks to connect to other terminals or to servers. For example, multiple users can be online through different terminal devices 1000 to connect through appropriate networks and synchronize with each other to support multi-user games.
  • the system may include multiple databases 3000 coupled to different servers 2000, and information related to the game environment may be continuously stored in the databases 3000 when different users play multi-user games online.
  • the embodiment of the present disclosure provides a method for controlling a virtual character, which can be executed by a terminal or a server.
  • the embodiment of the present disclosure takes the virtual character control method executed by the terminal as an example to illustrate.
  • the terminal includes a display component and a processor, and the display component is used to present a graphical user interface and receive operation instructions generated by the user acting on the display component.
  • the graphical user interface can control the local content of the terminal by responding to the received operation instructions, or it can control the content of the peer server by responding to the received operation instructions.
  • the operation instructions generated by the user acting on the graphical user interface include instructions for starting the game application, and the processor is configured to start the game application after receiving the instruction provided by the user to start the game application. Additionally, the processor is configured to render and draw a graphical user interface associated with the game on the touch display.
  • a touch display is a multi-touch screen that can sense simultaneous touches or swipes at multiple points on the screen. The user uses a finger to perform a touch operation on the graphical user interface. When the graphical user interface detects the touch operation, it controls different virtual characters in the graphical user interface of the game to perform actions corresponding to the touch operation.
  • the game may be any of a casual game, an action game, a role-playing game, a strategy game, a sports game, a puzzle game, a first person shooting game (FPS), and other games.
  • the game may include a virtual scene of the game drawn on the graphical user interface.
  • the virtual scene of the game may include one or more virtual characters controlled by the user (or users), such as virtual characters.
  • the virtual scene of the game may also include one or more obstacles, such as railings, ravines, walls, etc., to limit the movement of the virtual character, such as restricting the movement of one or more objects to a specific area within the virtual scene.
  • a virtual arena for the game The scene also includes one or more elements, such as skills, points, character health, energy, etc., to provide assistance to the user, provide virtual services, increase points related to the user's performance, etc.
  • the graphical user interface may present one or more indicators to provide instructional information to the user.
  • a game may include a user-controlled virtual character and one or more other virtual characters (such as enemy characters).
  • one or more other virtual characters are controlled by other users of the game.
  • one or more other virtual characters can be controlled by a computer, such as a robot using artificial intelligence (AI) algorithms, to implement a human-machine battle mode.
  • AI artificial intelligence
  • virtual characters possess various skills or abilities that game users use to achieve their goals.
  • an avatar possesses one or more weapons, props, tools, etc. that can be used to eliminate other objects from the game.
  • Such skills or abilities may be activated by the user of the game using one of a number of preset touch operations with the terminal's touch display.
  • the processor may be configured to present a corresponding game screen in response to an operation instruction generated by a user's touch operation.
  • the virtual character's control device may be integrated in a terminal device that has a storage unit and is equipped with a microprocessor and has computing capabilities.
  • FIG. 1b is a schematic flowchart of a first method for controlling a virtual character provided by an embodiment of the present disclosure.
  • the control methods of this virtual character include:
  • step 101 in response to the first touch operation on the crouch control, the virtual character is controlled to crouch behind the first surface of the virtual bunker.
  • the terminal device provides a graphical user interface
  • the graphical user interface can be opened by the user by controlling a game application installed on the terminal device.
  • the graphical user interface displays a three-dimensional virtual scene in the game scene.
  • the three-dimensional virtual scene is a virtual scene provided when the application runs on the terminal. It can be a simulation scene of the real world or a semi-simulated and semi-fictional scene. , or a purely fictional scenario.
  • the scene picture displayed on the graphical user interface is the scene picture presented when the virtual character observes the three-dimensional virtual scene.
  • the user controls the virtual character in the game scene through the terminal, and the virtual character observes three Three-dimensional virtual scenes can be realized through camera models.
  • the camera model when in the first-person perspective, the camera model is located on the head or neck of the target virtual character, and only the arms of the virtual character can be displayed in the graphical user interface; when it is in the first-person perspective, When in the third-person perspective, the camera model is located behind the target avatar, and only the upper body of the avatar can be displayed in the graphical user interface.
  • the graphical user interface is the scene image presented by observing the three-dimensional virtual scene from a certain perspective through the camera model.
  • Figure 1c is a first schematic diagram of a graphical user interface provided by an embodiment of the present disclosure.
  • the graphical user interface is presented on the screen of the terminal device 1000 and includes a virtual bunker 10 in the graphical user interface.
  • the virtual bunker 10 is composed of a plurality of bunker surfaces, and a virtual character crouching behind the first surface 11 of the virtual bunker 10 20. Movement control 30 and crouch control 40.
  • the user can control the virtual character 20 to crouch in the virtual bunker 10 from other postures such as a standing posture, a shooting posture, or a running posture through the first touch operation on the crouching control 40, and to be closest to the virtual bunker 10.
  • the first touch operation may be a click operation.
  • the virtual character 20 can also be equipped with a virtual firearm, and fire with the virtual firearm. Therefore, the graphical user interface also includes an attack control 50 for controlling the virtual firearm to fire.
  • the graphical user interface also includes a cursor control 60 that prompts the user with the current direction information of the virtual character 20, a map control 70 that prompts the user with the location of the virtual character 20 in the three-dimensional virtual environment, and so on. Wherein, the cursor control 60 is also provided with an indication control 61 for indicating the direction of the virtual character 20 in the cursor control 60 . It can be understood that the user graphical interface not only includes the above-mentioned logos and controls, but may also include other functional controls or logos, which are determined according to the specific game content and are not limited here.
  • virtual bunkers are a very important component.
  • Virtual characters can avoid attacks by other virtual characters by hiding behind bunkers, or attack other virtual characters by hiding behind bunkers. Sudden attack.
  • the method further includes:
  • the virtual character When the virtual character is in a crouching posture, the virtual character is controlled to switch from the crouching posture to a standing posture in response to a touch operation on the crouching control.
  • the posture of the virtual character can be controlled to switch from the original crouching posture to the standing posture.
  • the method further includes:
  • the crouching control is displayed.
  • the user can control the virtual character to move in the virtual scene through a sliding operation on the moving joystick.
  • the preset position relationship may be that the distance between the virtual character and the virtual bunker is a preset distance value.
  • the crouch control 40 can be hidden.
  • the crouching control 40 is displayed again.
  • step 102 in response to a second touch operation for moving the joystick toward the target direction, the virtual character is controlled to move behind the first surface toward the target direction.
  • Figure 1d is a second schematic diagram of a graphical user interface provided by an embodiment of the present disclosure.
  • the virtual character 20 is crouching on a certain surface of the virtual bunker 10 and receives the user's second touch operation on the moving joystick, it is determined that the virtual character 20 can only move along the preset route L of the virtual bunker 10 , since the virtual character 20 can only move along the preset route L, the second touch operation for moving the joystick can only be towards two opposite target directions of the preset route. For example, if the target direction of the movement control 30 is a sliding operation to the right, the virtual character 20 will be controlled to move to the right behind the first surface 11 .
  • the target direction is a direction parallel to the first surface.
  • the target directions are two opposite target directions toward the preset route, and the preset route L is parallel to the first surface 11, the target directions are parallel to the first surface.
  • step 103 when the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation of the mobile joystick, the virtual character is controlled to switch from the first surface of the virtual bunker to the edge of the virtual bunker. Crouching is performed behind a second surface, wherein the first surface is adjacent to the second surface.
  • Figure 1e is a third schematic diagram of a graphical user interface provided by an embodiment of the present disclosure.
  • the virtual character 20 moves in the target direction to the boundary position l of the first surface 11, at this time If the user performs a third touch operation on the mobile control 30, the virtual character 20 can be controlled to switch from the first surface 11 of the virtual bunker 10 to crouch behind the second surface 12 of the virtual bunker, wherein the first surface 11 is adjacent to said second surface 12 .
  • the method further includes:
  • the corner is displayed on the graphical user interface Progress indicator, wherein the corner progress indicator is used to represent the preset time period and the elapsed time period that the virtual character needs to wait for switching from the first surface to the back of the second surface.
  • Figure 1f is a fourth schematic diagram of a graphical user interface provided by an embodiment of the present disclosure.
  • the third touch operation may be a continuous operation. Therefore, during the duration of the third touch operation, the turning movements of the virtual character 20 between different bunker surfaces of the virtual bunker 10 will also be displayed in the graphical user interface.
  • a corner progress indicator 90 will be displayed on the graphical user interface. The corner progress indicator is used to represent the preset time period and the elapsed time period that the virtual character needs to wait for switching from the first surface to the second surface.
  • the method before controlling the virtual character to switch from the first surface of the virtual bunker to the back of the second surface of the virtual bunker to crouch, the method further includes:
  • the prerequisite for triggering the first virtual character to switch to the back of the second surface of the virtual bunker to perform the crouching corner process may also be to determine that the duration of the user's third touch operation on the mobile control satisfies the preset duration, for example 3s.
  • the method further includes:
  • the corner progress indicator appears in a full state.
  • the corner progress indicator 90 can be an arrow-shaped indicator, and a filling-style progress indicator can also be displayed in the arrow-shaped indicator.
  • the corner progress indicator 90 appears as The full state means that the duration of the third touch operation reaches the preset time, which can trigger the virtual character to switch corners between different cover surfaces of the virtual bunker.
  • the corner progress is marked as a curved bar with an arrow.
  • the curved line of the head is used to indicate the movement trajectory of the virtual character switching from the first surface of the virtual bunker to the rear of the second surface of the virtual bunker.
  • the corner progress indicator 90 is a curved bar with an arrow.
  • the curved bar is used to represent the movement trajectory of the virtual character switching from the first surface of the virtual bunker to the back of the second surface of the virtual bunker.
  • the arrow is used to indicate the moving direction of the virtual character when it moves along the movement trajectory.
  • Figure 1g is a fifth schematic diagram of a graphical user interface provided by an embodiment of the present disclosure. After the virtual character 20 completes the corner rotation, the virtual character 20 is behind the second surface 12 and is in a crouching posture.
  • the method further includes:
  • the corner progress indicator is hidden in response to the end of the third touch operation.
  • the second touch operation is a sliding operation
  • the third touch operation is a long press operation
  • the third touch operation and the second touch operation are continuous operations.
  • the second touch operation to control the virtual character to move in the target direction behind the first surface is for the mobile control operation.
  • Controlling the movement of the virtual character for the mobile control is generally a sliding operation for the mobile control.
  • the second touch operation can be a sliding operation.
  • the third touch operation is also an operation for the mobile control. Therefore, in order to improve the consistency and simplicity of user operations, the second touch operation and the third touch operation can be set as continuous operations. That is, the user performs a sliding operation on the mobile control to implement the second touch operation, and performs a long press operation to implement the third touch operation. For example, the user controls the virtual character to move behind the virtual bunker surface by sliding the finger on the movement control.
  • both the second touch operation and the third touch operation are sliding operations.
  • the third touch operation may also be the same sliding operation as the second touch operation, that is, when the virtual When the virtual character moves to the boundary position of a certain bunker surface, continue to slide, thereby realizing a third touch operation, controlling the virtual character to switch from one surface of the virtual bunker to the back of another surface to crouch.
  • controlling the virtual character to switch from the first surface of the virtual bunker to crouch behind the second surface of the virtual bunker includes:
  • the virtual character is controlled to switch from behind the first surface of the virtual bunker to behind the second surface of the virtual bunker in a crouching posture.
  • the virtual character when the virtual character switches from the first surface of the virtual bunker to the back of the second surface of the virtual bunker to crouch, the virtual character turns in a crouching posture, or it may first switch from the first surface of the virtual bunker to the back of the second surface of the virtual bunker.
  • the crouching posture behind the second surface is changed to a standing posture, and the corner is turned through the standing posture.
  • it is turned to the rear of the second surface, it is changed from the standing posture to the crouching posture.
  • the posture of the virtual character during the specific corner turning process is not limited here.
  • the embodiment of the present disclosure controls the virtual character to crouch behind the first surface of the virtual bunker by responding to the first touch operation of the crouch control; and in response to the second touch operation of moving the joystick in the target direction, Control the virtual character to move in the target direction behind the first surface; when the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation of the mobile joystick, control the virtual character to move from the virtual bunker to the boundary position of the first surface.
  • the first surface is switched to the rear of the second surface of the virtual bunker to crouch, wherein the first surface is adjacent to the second surface.
  • the virtual character can be controlled to turn between the surfaces of the virtual bunker while in a crouching state, without adding other controls, and more flexible control of the virtual character is achieved.
  • the control is simple and easy to operate, thereby reducing the operating cost and running time of the game in the terminal device, and saving the power of the terminal device.
  • the embodiment of the present disclosure also provides a device based on the above virtual character control method.
  • the meanings of the nouns are the same as those in the above virtual character control method.
  • Figure 2 is a schematic structural diagram of a virtual character control device provided by an embodiment of the present disclosure.
  • the virtual character control device may include a first control module 301, a second control module 302, and a third control module 303. wait.
  • the first control module 301 is configured to control the virtual character to crouch behind the first surface of the virtual bunker in response to the first touch operation on the crouch control;
  • the second control module 302 is configured to respond to the second touch operation of moving the joystick in the target direction. Operation, controlling the virtual character to move in the target direction behind the first surface;
  • the third control module 303 is configured to, when the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation on the moving rocker, control the virtual character from The first surface of the virtual bunker is switched to the rear of the second surface of the virtual bunker for crouching, wherein the first surface is adjacent to the second surface.
  • the device further includes:
  • a first display module configured to respond to a third touch operation on the moving rocker when the virtual character moves in the target direction to the boundary position of the first surface.
  • a corner progress indicator is displayed on the graphical user interface, where the corner progress indicator is used to represent a preset time period for the virtual character to wait after switching from the first surface to the second surface. and the elapsed time.
  • the device further includes:
  • a determining module configured to determine that the third touch operation duration reaches a preset duration.
  • the device further includes:
  • the second display module is configured to display the corner progress indicator in a full state when it is determined that the duration of the third touch operation reaches a preset duration.
  • the corner progress is identified as a curved line with an arrow, and the curved line with an arrow is used to indicate that the virtual character switches from the first surface of the virtual bunker to the first surface of the virtual bunker. Movement trajectory behind the second surface.
  • the device further includes:
  • a hiding module configured to hide the corner progress indicator in response to the end of the third touch operation before the effect duration of the third touch operation reaches the preset duration.
  • the target direction is a direction parallel to the first surface.
  • the second touch operation is a sliding operation
  • the third touch operation is a long press operation
  • the third touch operation and the second touch operation are continuous operations.
  • both the second touch operation and the third touch operation are sliding operations.
  • the third control module 303 includes:
  • a control submodule configured to control the virtual character to switch from behind the first surface of the virtual bunker to behind the second surface of the virtual bunker in a crouching posture.
  • the device further includes:
  • a fourth control module is configured to, when the virtual character is in a crouching posture, control the virtual character to switch from the crouching posture to a standing posture in response to a touch operation on the crouching control.
  • the device further includes:
  • a fifth control module configured to control the virtual character to move in the virtual scene in response to the sliding operation of the mobile joystick when the virtual character is in a standing posture
  • the third display module is configured to display the crouching control when the positions of the virtual character and the virtual bunker satisfy a preset position relationship.
  • the embodiment of the present disclosure controls the virtual character to crouch behind the first surface of the virtual bunker through the first control module 301 in response to the first touch operation on the crouch control; the second control module 302 In response to the second touch operation of the moving joystick in the target direction, control the virtual character to move in the target direction behind the first surface; the third control module 303 when the virtual character moves in the target direction When the target direction moves to the boundary position of the first surface, in response to the third touch operation of the moving joystick, the virtual character is controlled to switch from the first surface of the virtual bunker to the virtual bunker. crouching behind a second surface, wherein the first surface is adjacent to the second surface.
  • the virtual character can be controlled to turn between the surfaces of the virtual bunker while in a crouching state, without adding other controls, and more flexible control of the virtual character is achieved.
  • the control is simple and easy to operate, thereby reducing the operating cost and running time of the game in the terminal device, and saving the power of the terminal device.
  • inventions of the present disclosure also provide a terminal device.
  • the terminal device may be a terminal or a server.
  • the terminal may be a smartphone, a tablet computer, a notebook computer, a touch screen, a game console, or a personal computer (PC). ), personal digital assistant (Personal Digital Assistant, PDA) and other terminal devices.
  • Figure 3 is a schematic structural diagram of a terminal device provided by an embodiment of the present disclosure.
  • the terminal device 400 includes a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, and a computer program stored on the memory 402 and executable on the processor.
  • the processor 401 is electrically connected to the memory 402.
  • the structure of the terminal equipment shown in the figures does not constitute a limitation on the terminal equipment, and may include more or fewer components than shown in the figures, or combine certain components, or arrange different components.
  • the processor 401 is the control center of the terminal device 400, using various interfaces and lines to connect various parts of the entire terminal device 400, by running or loading software programs and/or modules stored in the memory 402, and calling the software programs and/or modules stored in the memory 402. data, perform various functions of the terminal device 400 and process data, thereby overall monitoring the terminal device 400.
  • the processor 401 in the terminal device 400 will follow the following steps to load instructions corresponding to the processes of one or more application programs into the memory 402, and the processor 401 will run the instructions stored in the memory. 402 application to achieve various functions:
  • the virtual character In response to the first touch operation on the crouch control, the virtual character is controlled to crouch behind the first surface of the virtual bunker; in response to the second touch operation on moving the joystick in the target direction, the virtual character is controlled behind the first surface Move in the target direction; when the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation of the mobile joystick, the virtual character is controlled to switch from the first surface of the virtual bunker to the third surface of the virtual bunker. Crouching is performed behind two surfaces, wherein the first surface is adjacent to the second surface.
  • the processor is further configured to perform: when the virtual character moves in the target direction to a boundary position of the first surface, in response to a third touch operation on the moving rocker, During the duration of the third touch operation, a corner progress indicator is displayed on the graphical user interface, wherein the corner progress indicator is used to represent the virtual character switching from the first surface to behind the second surface.
  • the processor is further configured to: determine that the duration of the third touch operation reaches a preset duration.
  • the processor is further configured to perform: when it is determined that the duration of the third touch operation reaches a preset duration, the corner progress indicator appears in a full state.
  • the processor is also configured to execute: the corner progress is identified as a curved bar with an arrow, and the curved bar with an arrow is used to indicate that the virtual character moves from the first surface of the virtual bunker Switch to the movement trajectory behind the second surface of the virtual bunker.
  • the processor is further configured to: before the duration of the third touch operation reaches the preset duration, in response to the end of the third touch operation, hide the corner progress indicator.
  • the processor is further configured to execute: the target direction is a direction parallel to the first surface.
  • the processor is further configured to perform: the second touch operation is a sliding operation, the third touch operation is a long press operation, and the third touch operation is the same as the second touch operation.
  • the control operation is continuous operation.
  • the processor is further configured to perform: both the second touch operation and the third touch operation are sliding operations.
  • the processor is further configured to: control the virtual character to switch from behind the first surface of the virtual bunker to behind the second surface of the virtual bunker in a crouching posture.
  • the processor is also configured to: when the virtual character is in a standing posture, control the virtual character to move in the virtual scene in response to a sliding operation on the mobile joystick;
  • the crouching control is displayed.
  • the processor is further configured to perform: when the virtual character is in a crouching posture, in response to a touch operation on the crouching control, control the virtual character to switch from the crouching posture to standing. attitude.
  • the embodiment of the present disclosure controls the virtual character to crouch behind the first surface of the virtual bunker by responding to the first touch operation of the crouch control; and responding to the second touch operation of the moving rocker in the target direction.
  • the third touch operation of the mobile joystick controls the virtual character to switch from the first surface of the virtual bunker to the back of the second surface of the virtual bunker to crouch, wherein the first surface is connected to the second surface of the virtual bunker.
  • the second surface is adjacent.
  • the virtual character can be controlled to turn between the surfaces of the virtual bunker while in a crouching state, without adding other controls, and more flexible control of the virtual character is achieved.
  • the control is simple and easy to operate, thereby reducing the operating cost and running time of the game in the terminal device, and saving the power of the terminal device.
  • the terminal device 400 also includes: a touch display screen 403 , a radio frequency circuit 404 , an audio circuit 405 , an input unit 406 and a power supply 407 .
  • the processor 401 is electrically connected to the touch display screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406 and the power supply 407 respectively. sexual connection.
  • the structure of the terminal device shown in FIG. 3 does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange different components.
  • the touch display screen 403 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface.
  • the touch display screen 403 may include a display panel and a touch panel.
  • 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 terminal device. These graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof.
  • the display panel can be configured in the form of liquid crystal display (LCD, Liquid Crystal Display), organic light-emitting diode (OLED, Organic Light-Emitting Diode), etc.
  • the touch panel can be used to collect the user's touch operations on or near it (such as the user's operations on or near the touch panel using a finger, stylus, or any suitable object or accessory), and generate corresponding operations instruction, and the operation instruction executes the corresponding program.
  • the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, 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 point coordinates, and then sends it to the touch controller. to the processor 401, and can receive commands sent by the processor 401 and execute them.
  • the touch panel can cover the display panel.
  • the touch panel When the touch panel detects a touch operation on or near the touch panel, it is sent to the processor 401 to determine the type of the touch event. Then the processor 401 provides information on the display panel according to the type of the touch event. Corresponding visual output.
  • the touch panel and the display panel can be integrated into the touch display 403 to realize input and output functions.
  • the touch panel and the touch panel can be used as two independent components to implement input and output functions. That is, the touch display screen 403 can also be used as a part of the input unit 406 to implement the input function.
  • the processor 401 executes a game application to generate a graphical user interface on the touch display 403.
  • the virtual scene on the graphical user interface contains at least one skill control area, and the skill control area contains at least one skill. controls.
  • the touch display screen 403 is used to present a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface.
  • the radio frequency circuit 404 can be used to send and receive radio frequency signals to establish wireless communication with network equipment or other terminal equipment through wireless communication, and to send and receive signals with the network equipment or other terminal equipment.
  • the audio circuit 405 can be used to provide audio between the user and the terminal device through speakers and microphones. frequency interface.
  • the audio circuit 405 can transmit the electrical signal converted from the received audio data to the speaker, which converts it into a sound signal and outputs it; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received and converted by the audio circuit 405
  • the audio data is processed by the audio data output processor 401 and then sent to, for example, another terminal device via the radio frequency circuit 404, or the audio data is output to the memory 402 for further processing.
  • Audio circuit 405 may also include an earphone jack to provide communication between peripheral earphones and the terminal device.
  • the input unit 406 can be used to receive input numbers, character information or user characteristic information (such as fingerprints, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. .
  • the power supply 407 is used to power various components of the terminal device 400 .
  • the power supply 407 can be logically connected to the processor 401 through a power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system.
  • Power supply 407 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
  • the terminal device 400 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described again here.
  • the terminal device controls the virtual character to crouch behind the first surface of the virtual bunker by responding to the first touch operation of the crouch control; and responds to the second touch operation of the moving joystick in the target direction.
  • the virtual character can be controlled to turn between the surfaces of the virtual bunker while in a crouching state, without adding other controls, and more flexible control of the virtual character is achieved.
  • the control is simple and easy to operate, thereby reducing the operating cost and running time of the game in the terminal device, and saving the power of the terminal device.
  • embodiments of the present disclosure provide a computer-readable storage medium in which multiple computer programs are stored.
  • the computer programs can be loaded by a processor to execute any skill control method provided by the embodiments of the disclosure. steps in.
  • the computer program can perform the following steps:
  • the virtual character In response to the first touch operation on the crouch control, the virtual character is controlled to crouch behind the first surface of the virtual bunker; in response to the second touch operation on moving the joystick in the target direction, the virtual character is controlled behind the first surface Move in the target direction; when the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation of the mobile joystick, the virtual character is controlled to switch from the first surface of the virtual bunker to the third surface of the virtual bunker. Crouching is performed behind two surfaces, wherein the first surface is adjacent to the second surface.
  • the method also includes:
  • a corner progress indicator is displayed on the graphical user interface, wherein the corner progress indicator is used to represent the preset time period and the elapsed time period that the virtual character needs to wait for switching from the first surface to the second surface.
  • the method before controlling the virtual character to switch from the first surface of the virtual bunker to the back of the second surface of the virtual bunker to crouch, the method further includes:
  • the method also includes:
  • the corner progress indicator appears in a full state.
  • the corner progress is marked as a curved line with an arrow, and the curved line with an arrow is used to indicate that the virtual character switches from the first surface of the virtual bunker to the second surface of the virtual bunker. Movement trajectory behind the surface.
  • the method also includes:
  • the corner progress indicator is hidden in response to the end of the third touch operation.
  • the target direction is a direction parallel to the first surface.
  • the second touch operation is a sliding operation
  • the third touch operation is a long press operation
  • the third touch operation and the second touch operation are continuous operations.
  • the second touch operation and the third touch operation are both sliding operations.
  • controlling the virtual character to switch from the first surface of the virtual bunker to crouch behind the second surface of the virtual bunker includes:
  • the virtual character is controlled to switch from behind the first surface of the virtual bunker to behind the second surface of the virtual bunker in a crouching posture.
  • the method also includes:
  • the virtual character When the virtual character is in a crouching posture, the virtual character is controlled to switch from the crouching posture to a standing posture in response to a touch operation on the crouching control.
  • the method also includes:
  • the crouching control is displayed.
  • the embodiment of the present disclosure controls the virtual character to crouch behind the first surface of the virtual bunker by responding to the first touch operation of the crouch control; and responding to the second touch operation of the moving rocker in the target direction.
  • the third touch operation of the mobile joystick controls the virtual character to switch from the first surface of the virtual bunker to the back of the second surface of the virtual bunker to crouch, wherein the first surface is connected to the second surface of the virtual bunker.
  • the second surface is adjacent.
  • the virtual character can be controlled to turn between the surfaces of the virtual bunker while in a crouching state, without adding other controls, and more flexible control of the virtual character is achieved.
  • the control is simple and easy to operate, thereby reducing the operating cost and running time of the game in the terminal device, and saving the power of the terminal device.
  • the storage medium may include: read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
  • the computer program stored in the storage medium can execute the steps in the method for controlling any virtual character provided by the embodiments of the present disclosure, it is possible to realize the control of any virtual character provided by the embodiments of the present disclosure.
  • the beneficial effects that the method can achieve are detailed in the previous embodiments and will not be described again here.

Abstract

Disclosed is a control method for a virtual character. The method comprises: in response to a second touch-control operation for a mobile joystick towards a target direction, controlling a virtual character, who crouches behind a first surface, to move towards the target direction behind the first surface; and when the virtual character moves to a boundary position of the first surface, in response to a third touch-control operation for the mobile joystick, controlling the virtual character to switch from crouching behind the first surface to crouching behind a second surface. As such, more flexible control over a virtual character is realized.

Description

虚拟角色的控制方法、装置、存储介质及终端设备Virtual character control method, device, storage medium and terminal equipment
本公开要求于2022年09月08日提交中国专利局、申请号为202211097766.7、发明名称为“虚拟角色的控制方法、装置、存储介质及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure requires the priority of the Chinese patent application submitted to the China Patent Office on September 8, 2022, with the application number 202211097766.7 and the invention title "Virtual Character Control Method, Device, Storage Medium and Terminal Equipment", and its entire content is approved by This reference is incorporated into this disclosure.
技术领域Technical field
本公开涉及计算机领域,具体涉及一种虚拟角色的控制方法、装置、计算机可读存储介质及终端设备。The present disclosure relates to the field of computers, and specifically to a virtual character control method, device, computer-readable storage medium and terminal equipment.
背景技术Background technique
近年来,伴随终端设备技术的发展以及普及,涌现出越来越多具备三维虚拟环境的应用程序,如:虚拟现实应用程序、三维地图程序、军事仿真程序、第一人称射击游戏(First person shooting game,FPS)、角色扮演游戏(Role-playing game,RPG)等。In recent years, with the development and popularization of terminal device technology, more and more applications with three-dimensional virtual environments have emerged, such as: virtual reality applications, three-dimensional map programs, military simulation programs, and first-person shooting games. , FPS), role-playing game (Role-playing game, RPG), etc.
现有技术中,以FPS类游戏为例,用户需要控制虚拟角色的移动,从而实现控制虚拟角色在虚拟掩体后进行躲避。但是现有的以掩体射击为核心的游戏中,对虚拟角色的控制还不够灵活,不能满足用户的多样需求。In the existing technology, taking FPS games as an example, the user needs to control the movement of the virtual character to control the virtual character to avoid behind a virtual bunker. However, in existing games with cover shooting as the core, the control of virtual characters is not flexible enough to meet the diverse needs of users.
技术问题technical problem
本公开实施例提供一种虚拟角色的控制方法及装置,以提高虚拟角色在虚拟掩体处的躲避成功率。Embodiments of the present disclosure provide a method and device for controlling a virtual character to improve the virtual character's avoidance success rate at a virtual bunker.
技术解决方案Technical solutions
第一方面,本公开实施例提供一种虚拟角色的控制方法,通过终端设备提供图形用户界面,所述图形用户界面包括至少部分虚拟场景、移动摇杆和蹲伏控件,以及位于所述虚拟场景中的虚拟角色和虚拟掩体,所述方法包括:In a first aspect, embodiments of the present disclosure provide a method for controlling a virtual character, providing a graphical user interface through a terminal device. The graphical user interface includes at least part of a virtual scene, a moving joystick and a crouching control, and a graphical user interface located in the virtual scene. The virtual character and the virtual bunker in the method include:
响应针对所述蹲伏控件的第一触控操作,控制所述虚拟角色蹲伏于所述虚拟掩体第一表面的后方;In response to the first touch operation on the crouch control, control the virtual character to crouch behind the first surface of the virtual bunker;
响应针对所述移动摇杆朝目标方向的第二触控操作,控制所述虚拟角色在所述第一表面的后方朝所述目标方向进行移动;In response to a second touch operation of the moving joystick in the target direction, controlling the virtual character to move behind the first surface in the target direction;
当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应 针对所述移动摇杆的第三触控操作,控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏,其中,所述第一表面与所述第二表面相邻。When the virtual character moves in the target direction to the boundary position of the first surface, respond For the third touch operation of the mobile joystick, the virtual character is controlled to switch from the first surface of the virtual bunker to the back of the second surface of the virtual bunker to crouch, wherein the first surface adjacent to the second surface.
第二方面,本公开实施例还提供一种虚拟角色的控制装置,其特征在于,通过终端设备提供图形用户界面,所述图形用户界面包括至少部分虚拟场景、移动摇杆和蹲伏控件,以及位于所述虚拟场景中的虚拟角色和虚拟掩体,包括:In a second aspect, embodiments of the present disclosure also provide a control device for a virtual character, which is characterized in that a graphical user interface is provided through a terminal device, and the graphical user interface includes at least part of the virtual scene, a moving rocker, and a crouching control, and Virtual characters and virtual bunkers located in the virtual scene include:
第一控制模块,用于响应针对所述蹲伏控件的第一触控操作,控制所述虚拟角色蹲伏于所述虚拟掩体第一表面的后方;A first control module configured to control the virtual character to crouch behind the first surface of the virtual bunker in response to a first touch operation on the crouch control;
第二控制模块,用于响应针对所述移动摇杆朝目标方向的第二触控操作,控制所述虚拟角色在所述第一表面的后方朝所述目标方向进行移动;a second control module, configured to respond to a second touch operation of the moving joystick in the target direction and control the virtual character to move behind the first surface in the target direction;
第三控制模块,用于当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对所述移动摇杆的第三触控操作,控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏,其中,所述第一表面与所述第二表面相邻。A third control module configured to, when the virtual character moves in the target direction to the boundary position of the first surface, in response to a third touch operation on the moving rocker, control the virtual character to move from the The first surface of the virtual bunker is switched to the rear of the second surface of the virtual bunker to crouch, wherein the first surface is adjacent to the second surface.
第三方面,本公开实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有多条指令,所述指令适于处理器进行加载,以执行上述虚拟角色的控制方法中的步骤。In a third aspect, embodiments of the present disclosure also provide a computer-readable storage medium that stores a plurality of instructions, and the instructions are suitable for loading by the processor to execute the above-mentioned virtual character control method. A step of.
第四方面,本公开实施例还提供一种终端设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如上所述虚拟角色的控制方法中的步骤。In a fourth aspect, embodiments of the present disclosure also provide a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. The feature is that when the processor executes the program, The steps in the method of controlling the virtual character are as described above.
有益效果beneficial effects
本公开实施例通过响应针对所述蹲伏控件的第一触控操作,控制所述虚拟角色蹲伏于所述虚拟掩体第一表面的后方;响应针对所述移动摇杆朝目标方向的第二触控操作,控制所述虚拟角色在所述第一表面的后方朝所述目标方向进行移动;当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对所述移动摇杆的第三触控操作,控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏,其中,所述第一表面与所述第二表面相邻。以此,通过对移动摇杆的第三触控操作即可实现控制虚拟角色处于蹲伏的状态下在虚拟掩体的表面间进行转角,无需新增其他控 件,并且实现了对虚拟角色更灵活的控制,简单易操作,进而降低了终端设备中游戏的操作成本及运行时长,节省了终端设备的电量。The embodiment of the present disclosure controls the virtual character to crouch behind the first surface of the virtual bunker by responding to the first touch operation of the crouch control; and responding to the second touch operation of the moving rocker in the target direction. Touch operation to control the virtual character to move in the target direction behind the first surface; when the virtual character moves in the target direction to the boundary position of the first surface, respond to the The third touch operation of the mobile joystick controls the virtual character to switch from the first surface of the virtual bunker to the back of the second surface of the virtual bunker to crouch, wherein the first surface is connected to the second surface of the virtual bunker. The second surface is adjacent. In this way, through the third touch operation of the mobile joystick, the virtual character can be controlled to turn between the surfaces of the virtual bunker while in a crouching state, without adding other controls. software, and achieves more flexible control of virtual characters, simple and easy operation, thereby reducing the operating cost and running time of the game in the terminal device, and saving the power of the terminal device.
附图说明Description of the drawings
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例描述中所需要兑现的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For those skilled in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1a为本公开实施例提供的虚拟角色的控制方法的系统示意图。Figure 1a is a system schematic diagram of a virtual character control method provided by an embodiment of the present disclosure.
图1b为本公开实施例提供的虚拟角色的控制方法的一种流程示意图。Figure 1b is a schematic flowchart of a virtual character control method provided by an embodiment of the present disclosure.
图1c为本公开实施例提供的图形用户界面的一种示意图。Figure 1c is a schematic diagram of a graphical user interface provided by an embodiment of the present disclosure.
图1d为本公开实施例提供的图形用户界面示意图的另一种示意图。Figure 1d is another schematic diagram of a graphical user interface provided by an embodiment of the present disclosure.
图1e为本公开实施例提供的图形用户界面示意图的另一种示意图。Figure 1e is another schematic diagram of a graphical user interface provided by an embodiment of the present disclosure.
图1f为本公开实施例提供的图形用户界面示意图的另一种示意图。Figure 1f is another schematic diagram of a graphical user interface provided by an embodiment of the present disclosure.
图1g为本公开实施例提供的图形用户界面示意图的另一种示意图。Figure 1g is another schematic diagram of a graphical user interface provided by an embodiment of the present disclosure.
图2为本公开实施例提供的虚拟角色的控制装置的结构示意图;Figure 2 is a schematic structural diagram of a virtual character control device provided by an embodiment of the present disclosure;
图3为本公开实施例提供的终端设备的结构示意图。Figure 3 is a schematic structural diagram of a terminal device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only some, but not all, of the embodiments of the present disclosure. Based on the embodiments in this disclosure, all other embodiments obtained by those skilled in the art without making creative efforts fall within the scope of protection of this disclosure.
本公开实施例提供一种虚拟角色的控制方法、装置、存储介质及终端设备。具体地,本公开实施例的虚拟角色的控制方法可以由终端设备执行,其中,该终端设备可以为终端或者服务器等设备。该终端可以为智能手机、平板电脑、笔记本电脑、触控屏幕、游戏机、个人计算机(PC,Personal Computer)、个人数字助理(Personal Digital Assistant,PDA)等终端设备,终端设备还可以包括客户端,该客户端可以是游戏应用客户端、携带有游戏程序的浏览器客户端或即时通信客户端等。服务器可以是独立的物理服务器,也可以是多个物理服务 器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN、以及大数据和人工智能平台等基础云计算服务的云服务器。Embodiments of the present disclosure provide a virtual character control method, device, storage medium, and terminal device. Specifically, the virtual character control method in the embodiment of the present disclosure can be executed by a terminal device, where the terminal device can be a terminal or a server. The terminal can be a terminal device such as a smartphone, 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), etc. The terminal device can also include a client , the client may be a game application client, a browser client carrying a game program, or an instant messaging client, etc. The server can be an independent physical server or multiple physical services Server clusters or distributed systems composed of servers can also provide 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 cloud servers for basic cloud computing services such as artificial intelligence platforms.
例如,当该虚拟角色的控制方法运行于终端时,终端设备存储有游戏应用程序并通过显示组件呈现游戏中的部分游戏场景。终端设备用于通过图形用户界面与用户进行交互,例如通过终端设备下载安装游戏应用程序并运行。该终端设备将图形用户界面提供给用户的方式可以包括多种,例如,可以渲染显示在终端设备的显示屏上,或者,通过全息投影呈现图形用户界面。例如,终端设备可以包括触控显示屏和处理器,该触控显示屏用于呈现图形用户界面以及接收用户作用于图形用户界面产生的操作指令,该图形用户界面包括游戏画面,该处理器用于运行该游戏、生成图形用户界面、响应操作指令以及控制图形用户界面在触控显示屏上的显示。For example, when the virtual character control method is run on the terminal, the terminal device stores a game application program and presents part of the game scene in the game through the display component. The terminal device is used to interact with the user through a graphical user interface, such as downloading, installing and running game applications through the terminal device. The terminal device may provide the graphical user interface to the user in a variety of ways, for example, it may be rendered and displayed on the display screen of the terminal device, or the graphical user interface may be presented through holographic projection. For example, the terminal device may include a touch display screen and a processor, the touch display screen is used to present a graphical user interface and receive operating instructions generated by the user acting on the graphical user interface, the graphical user interface includes game screens, and the processor is used to Run the game, generate a graphical user interface, respond to operating instructions, and control the display of the graphical user interface on the touch display.
例如,当该虚拟角色的控制方法运行于服务器时,可以为云游戏。云游戏是指以云计算为基础的游戏方式。在云游戏的运行模式下,游戏应用程序的运行主体和游戏画面呈现主体是分离的,虚拟角色的控制方法的储存与运行是在云游戏服务器上完成的。而游戏画面呈现是在云游戏的客户端完成的,云游戏客户端主要用于游戏数据的接收、发送以及游戏画面的呈现,例如,云游戏客户端可以是靠近用户侧的具有数据传输功能的显示设备,如,移动终端、电视机、计算机、掌上电脑、个人数字助理等,但是进行虚拟角色的控制的终端设备为云端的云游戏服务器。在进行游戏时,用户操作云游戏客户端向云游戏服务器发送操作指令,云游戏服务器根据操作指令运行游戏,将游戏画面等数据进行编码压缩,通过网络返回云游戏客户端,最后,通过云游戏客户端进行解码并输出游戏画面。For example, when the control method of the virtual character runs on the server, it can be a cloud game. Cloud gaming refers to a gaming method based on cloud computing. In the running mode of cloud games, the running body of the game application and the game screen presentation body are separated, and the storage and operation of the virtual character control method are completed on the cloud game server. The game screen presentation 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 close to the user side and has the data transmission function. Display devices, such as mobile terminals, televisions, computers, PDAs, personal digital assistants, etc., but the terminal device that controls the virtual character is a cloud game server in the cloud. When playing a game, the user operates the cloud game client to send operating instructions to the cloud game server. The cloud game server runs the game according to the operating instructions, encodes and compresses the game screen and other data, and returns it to the cloud game client through the network. Finally, through the cloud game The client decodes and outputs the game screen.
请参阅图1a,图1a为本公开实施例提供的虚拟角色的控制方法的系统示意图。该系统可以包括至少一个终端设备1000,至少一个服务器2000,至少一个数据库3000,以及网络4000。用户持有的终端1000可以通过网络4000连接到不同游戏的服务器。终端设备1000是具有计算硬件的任何设备,该计算硬件能够支持和执行与游戏对应的软件产品。另外,终端设备1000具有用于感测和获得用户通过在一个或者多个触控显示屏的多个点执行的触摸或者 滑动操作的输入的一个或者多个多触敏屏幕。另外,当系统包括多个终端设备1000、多个服务器2000、多个网络4000时,不同的终端1000可以通过不同的网络4000、通过不同的服务器2000相互连接。网络4000可以是无线网络或者有线网络,比如无线网络为无线局域网(WLAN)、局域网(LAN)、蜂窝网络、2G网络、3G网络、4G网络、5G网络等。另外,不同的终端设备1000之间也可以使用自身的蓝牙网络或者热点网络连接到其他终端或者连接到服务器等。例如,多个用户可以通过不同的终端设备1000在线从而通过适当网络连接并且相互同步,以支持多用户游戏。另外,该系统可以包括多个数据库3000,多个数据库3000耦合到不同的服务器2000,并且可以将与游戏环境有关的信息在不同用户在线进行多用户游戏时连续地存储于数据库3000中。Please refer to Figure 1a, which is a system schematic diagram of a virtual character control method provided by an embodiment of the present disclosure. The system may include at least one terminal device 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 device 1000 is any device having computing hardware capable of supporting and executing a software product corresponding to a game. In addition, the terminal device 1000 has a function for sensing and obtaining user's touches performed at multiple points of one or more touch display screens or One or more multi-touch-sensitive screens for swipe input. In addition, when the system includes multiple terminal devices 1000, multiple servers 2000, and multiple networks 4000, different terminals 1000 can be connected to each other through different networks 4000 and different servers 2000. The network 4000 may be a wireless network or a wired network. For example, the wireless network may 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 terminal devices 1000 can also use their own Bluetooth networks or hotspot networks to connect to other terminals or to servers. For example, multiple users can be online through different terminal devices 1000 to connect through appropriate networks and synchronize with each other to support multi-user games. In addition, the system may include multiple databases 3000 coupled to different servers 2000, and information related to the game environment may be continuously stored in the databases 3000 when different users play multi-user games online.
本公开实施例提供了一种虚拟角色的控制方法,该方法可以由终端或服务器执行。本公开实施例以虚拟角色的控制方法由终端执行为例来进行说明。其中,该终端包括显示组件和处理器,该显示组件用于呈现图形用户界面以及接收用户作用于显示组件产生的操作指令。用户通过显示组件对图形用户界面进行操作时,该图形用户界面可以通过响应于接收到的操作指令控制终端本地的内容,也可以通过响应于接收到的操作指令控制对端服务器的内容。例如,用户作用于图形用户界面产生的操作指令包括用于启动游戏应用程序的指令,处理器被配置为在接收到用户提供的启动游戏应用程序的指令之后启动游戏应用程序。此外,处理器被配置为在触控显示屏上渲染和绘制与游戏相关联的图形用户界面。触控显示屏是能够感测屏幕上的多个点同时执行的触摸或者滑动操作的多触敏屏幕。用户在使用手指在图形用户界面上执行触控操作,图形用户界面在检测到触控操作时,控制游戏的图形用户界面中的不同虚拟角色执行与触控操作对应的动作。例如,该游戏可以为休闲游戏、动作游戏、角色扮演游戏、策略游戏、体育游戏、益智游戏、第一人称射击游戏(First person shooting game,FPS)等游戏中的任一种。其中,游戏可以包括在图形用户界面上绘制的游戏的虚拟场景。此外,游戏的虚拟场景中可以包括由用户(或用户)控制的一个或多个虚拟角色,诸如虚拟角色。另外,游戏的虚拟场景中还可以包括一个或多个障碍物,诸如栏杆、沟壑、墙壁等,以限制虚拟角色的移动,例如将一个或多个对象的移动限制到虚拟场景内的特定区域。可选地,游戏的虚拟场 景还包括一个或多个元素,诸如技能、分值、角色健康状态、能量等,以向用户提供帮助、提供虚拟服务、增加与用户表现相关的分值等。此外,图形用户界面还可以呈现一个或多个指示器,以向用户提供指示信息。例如,游戏可以包括用户控制的虚拟角色和一个或多个其他虚拟角色(诸如敌人角色)。在一个实施例中,一个或多个其他虚拟角色由游戏的其他用户控制。例如,一个或多个其他虚拟角色可以由计算机控制,诸如使用人工智能(AI)算法的机器人,实现人机对战模式。例如,虚拟角色拥有游戏用户用来实现目标的各种技能或能力。例如虚拟角色拥有可用于从游戏中消除其他对象的一种或多种武器、道具、工具等。这样的技能或能力可由游戏的用户使用与终端的触控显示屏的多个预设触控操作之一来激活。处理器可以被配置为响应于用户的触控操作产生的操作指令来呈现对应的游戏画面。The embodiment of the present disclosure provides a method for controlling a virtual character, which can be executed by a terminal or a server. The embodiment of the present disclosure takes the virtual character control method executed by the terminal as an example to illustrate. Wherein, the terminal includes a display component and a processor, and the display component is used to present a graphical user interface and receive operation instructions generated by the user acting on the display component. When the user operates the graphical user interface through the display component, the graphical user interface can control the local content of the terminal by responding to the received operation instructions, or it can control the content of the peer server by responding to the received operation instructions. For example, the operation instructions generated by the user acting on the graphical user interface include instructions for starting the game application, and the processor is configured to start the game application after receiving the instruction provided by the user to start the game application. Additionally, the processor is configured to render and draw a graphical user interface associated with the game on the touch display. A touch display is a multi-touch screen that can sense simultaneous touches or swipes at multiple points on the screen. The user uses a finger to perform a touch operation on the graphical user interface. When the graphical user interface detects the touch operation, it controls different virtual characters in the graphical user interface of the game to perform actions corresponding to the touch operation. For example, the game may be any of a casual game, an action game, a role-playing game, a strategy game, a sports game, a puzzle game, a first person shooting game (FPS), and other games. Wherein, the game may include a virtual scene of the game drawn on the graphical user interface. In addition, the virtual scene of the game may include one or more virtual characters controlled by the user (or users), such as virtual characters. In addition, the virtual scene of the game may also include one or more obstacles, such as railings, ravines, walls, etc., to limit the movement of the virtual character, such as restricting the movement of one or more objects to a specific area within the virtual scene. Optionally, a virtual arena for the game The scene also includes one or more elements, such as skills, points, character health, energy, etc., to provide assistance to the user, provide virtual services, increase points related to the user's performance, etc. Additionally, the graphical user interface may present one or more indicators to provide instructional information to the user. For example, a game may include a user-controlled virtual character and one or more other virtual characters (such as enemy characters). In one embodiment, one or more other virtual characters are controlled by other users of the game. For example, one or more other virtual characters can be controlled by a computer, such as a robot using artificial intelligence (AI) algorithms, to implement a human-machine battle mode. For example, virtual characters possess various skills or abilities that game users use to achieve their goals. For example, an avatar possesses one or more weapons, props, tools, etc. that can be used to eliminate other objects from the game. Such skills or abilities may be activated by the user of the game using one of a number of preset touch operations with the terminal's touch display. The processor may be configured to present a corresponding game screen in response to an operation instruction generated by a user's touch operation.
需要说明的是,图1a所示的虚拟角色的控制系统的系统示意图仅仅是一个示例,本公开实施例描述的虚拟角色的控制系统以及场景是为了更加清楚的说明本公开实施例的技术方案,并不构成对于本公开实施例提供的技术方案的限定,本领域普通技术人员可知,随着虚拟角色的控制系统的演变和新业务场景的出现,本公开实施例提供的技术方案对于类似的技术问题,同样适用。It should be noted that the system schematic diagram of the virtual character control system shown in Figure 1a is only an example. The virtual character control system and scenes described in the embodiments of the present disclosure are to more clearly illustrate the technical solutions of the embodiments of the present disclosure. This does not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. Persons of ordinary skill in the art will know that with the evolution of virtual character control systems and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present disclosure are not suitable for similar technologies. question, the same applies.
在本实施例中,将从虚拟角色的控制装置的角度进行描述,该虚拟角色的控制装置具体可以集成在具备储存单元并安装有微处理器而具有运算能力的终端设备中。In this embodiment, description will be made from the perspective of a virtual character's control device. The virtual character's control device may be integrated in a terminal device that has a storage unit and is equipped with a microprocessor and has computing capabilities.
请参阅图1b,图1b为本公开实施例提供的虚拟角色的控制方法的第一种流程示意图。该虚拟角色的控制方法包括:Please refer to Figure 1b, which is a schematic flowchart of a first method for controlling a virtual character provided by an embodiment of the present disclosure. The control methods of this virtual character include:
在步骤101中,响应针对蹲伏控件的第一触控操作,控制虚拟角色蹲伏于虚拟掩体第一表面的后方。In step 101, in response to the first touch operation on the crouch control, the virtual character is controlled to crouch behind the first surface of the virtual bunker.
其中,终端设备提供有图形用户界面,该图形用户界面可以为用户通过控制安装于终端设备上的游戏应用程序开启。图形用户界面所展示的为游戏场景中的三维虚拟场景,三维虚拟场景为应用程序在终端上运行时提供的虚拟场景,其可以是对真实世界的仿真场景,也可以是半仿真半虚构的场景,或者纯虚构场景。图形用户界面上所展示的场景画面为虚拟角色观察三维虚拟场景时呈现的场景画面。用户通过终端在游戏场景中操控虚拟角色,虚拟角色观察三 维虚拟场景可通过摄像机模型实现,以FPS游戏为例,当处于第一人称视角时,摄像机模型位于目标虚拟角色的头部或者颈部,图形用户界面中仅可显示出虚拟人物的手臂部分;当处于第三人称视角时,摄像机模型位于目标虚拟角色的后方,图形用户界面中仅可显示出虚拟人物的上半身部分。图形用户界面即为通过摄像机模型以一定视角观察三维虚拟场景所呈现的场景画面。Wherein, the terminal device provides a graphical user interface, and the graphical user interface can be opened by the user by controlling a game application installed on the terminal device. The graphical user interface displays a three-dimensional virtual scene in the game scene. The three-dimensional virtual scene is a virtual scene provided when the application runs on the terminal. It can be a simulation scene of the real world or a semi-simulated and semi-fictional scene. , or a purely fictional scenario. The scene picture displayed on the graphical user interface is the scene picture presented when the virtual character observes the three-dimensional virtual scene. The user controls the virtual character in the game scene through the terminal, and the virtual character observes three Three-dimensional virtual scenes can be realized through camera models. Taking FPS games as an example, when in the first-person perspective, the camera model is located on the head or neck of the target virtual character, and only the arms of the virtual character can be displayed in the graphical user interface; when it is in the first-person perspective, When in the third-person perspective, the camera model is located behind the target avatar, and only the upper body of the avatar can be displayed in the graphical user interface. The graphical user interface is the scene image presented by observing the three-dimensional virtual scene from a certain perspective through the camera model.
具体的,请参阅图1c,图1c为本公开实施例提供的图形用户界面示意图的第一种示意图。该图形用户界面为由终端设备1000的屏幕所呈现,在图形用户界面中包括虚拟掩体10,该虚拟掩体10由多个掩体表面构成,蹲伏于虚拟掩体10第一表面11的后方的虚拟角色20、移动控件30以及蹲伏控件40。其中,用户可通过对蹲伏控件40的第一触控操作来控制虚拟角色20由站立姿态、射击姿态或奔跑姿态等其他姿态来控制虚拟角色20蹲伏于虚拟掩体10中与虚拟掩体10最近的表面的后方,从而实现虚拟角色20的蹲伏姿态。第一触控操作可以为点击操作。针对于FPS类游戏,该虚拟角色20还可以配置有虚拟枪械,通过虚拟枪械进行开火射击、故图形用户界面内还包括用于控制虚拟枪械进行开火的攻击控件50。图形用户界面内还包括提示用户该虚拟角色20当前方向信息的游标控件60、提示用户虚拟角色20在三维虚拟环境中所处位置的地图控件70等。其中,在游标控件60中还设置有指示控件61,用于指示虚拟角色20在游标控件60中所处的方向。可以理解,用户图形界面内不仅包括上述标识以及控件,还可以包括有其他功能控件或标识,根据具体的游戏内容决定,此处不做限定。Specifically, please refer to Figure 1c, which is a first schematic diagram of a graphical user interface provided by an embodiment of the present disclosure. The graphical user interface is presented on the screen of the terminal device 1000 and includes a virtual bunker 10 in the graphical user interface. The virtual bunker 10 is composed of a plurality of bunker surfaces, and a virtual character crouching behind the first surface 11 of the virtual bunker 10 20. Movement control 30 and crouch control 40. The user can control the virtual character 20 to crouch in the virtual bunker 10 from other postures such as a standing posture, a shooting posture, or a running posture through the first touch operation on the crouching control 40, and to be closest to the virtual bunker 10. behind the surface, thereby realizing the crouching posture of the virtual character 20. The first touch operation may be a click operation. For FPS games, the virtual character 20 can also be equipped with a virtual firearm, and fire with the virtual firearm. Therefore, the graphical user interface also includes an attack control 50 for controlling the virtual firearm to fire. The graphical user interface also includes a cursor control 60 that prompts the user with the current direction information of the virtual character 20, a map control 70 that prompts the user with the location of the virtual character 20 in the three-dimensional virtual environment, and so on. Wherein, the cursor control 60 is also provided with an indication control 61 for indicating the direction of the virtual character 20 in the cursor control 60 . It can be understood that the user graphical interface not only includes the above-mentioned logos and controls, but may also include other functional controls or logos, which are determined according to the specific game content and are not limited here.
具体的,针对于FPS类游戏,虚拟掩体是很重要的组成部分,虚拟角色可通过在掩体后躲避的方式来躲避其他虚拟角色的攻击,或者通过在掩体后躲避的方式来对其他虚拟角色进行突然攻击。Specifically, for FPS games, virtual bunkers are a very important component. Virtual characters can avoid attacks by other virtual characters by hiding behind bunkers, or attack other virtual characters by hiding behind bunkers. Sudden attack.
在一些实施方式中,所述方法还包括:In some embodiments, the method further includes:
当所述虚拟角色处于蹲伏姿态时,响应针对所述蹲伏控件的触控操作,控制所述虚拟角色从所述蹲伏姿态切换至站立姿态。When the virtual character is in a crouching posture, the virtual character is controlled to switch from the crouching posture to a standing posture in response to a touch operation on the crouching control.
其中,当虚拟角色处于蹲伏姿态,且再次接收到用户针对于蹲伏控件的触控操作时,可以控制虚拟角色的姿态从原本的蹲伏姿态切换至站立姿态。Among them, when the virtual character is in the crouching posture and receives the user's touch operation on the crouching control again, the posture of the virtual character can be controlled to switch from the original crouching posture to the standing posture.
在一些实施方式中,所述方法还包括: In some embodiments, the method further includes:
当所述虚拟角色处于站立姿态时,响应针对所述移动摇杆的滑动操作,控制所述虚拟角色在所述虚拟场景中进行移动;When the virtual character is in a standing posture, control the virtual character to move in the virtual scene in response to the sliding operation of the mobile joystick;
当所述虚拟角色与所述虚拟掩体的位置满足预设位置关系时,显示所述蹲伏控件。When the positions of the virtual character and the virtual bunker satisfy a preset position relationship, the crouching control is displayed.
其中,当虚拟角色处于站立姿态时,用户可通过针对于移动摇杆的滑动操作来控制虚拟角色在虚拟场景中进行移动。Wherein, when the virtual character is in a standing posture, the user can control the virtual character to move in the virtual scene through a sliding operation on the moving joystick.
具体的,预设位置关系可以为虚拟角色与虚拟掩体之间的距离为预设距离值。当用户通过针对于移动摇杆的滑动操作来控制虚拟角色在虚拟场景中进行移动时,虚拟角色与虚拟掩体之间的距离超过预设距离值时,可隐藏蹲伏控件40,当虚拟角色与虚拟掩体之间的距离满足预设距离值时,再显示该蹲伏控件40。Specifically, the preset position relationship may be that the distance between the virtual character and the virtual bunker is a preset distance value. When the user controls the virtual character to move in the virtual scene through the sliding operation of the moving joystick, and the distance between the virtual character and the virtual bunker exceeds the preset distance value, the crouch control 40 can be hidden. When the distance between the virtual bunkers meets the preset distance value, the crouching control 40 is displayed again.
在步骤102中,响应针对移动摇杆朝目标方向的第二触控操作,控制虚拟角色在第一表面的后方朝目标方向进行移动。In step 102, in response to a second touch operation for moving the joystick toward the target direction, the virtual character is controlled to move behind the first surface toward the target direction.
其中,如图1d所示,图1d为本公开实施例提供的图形用户界面的第二种示意图。当虚拟角色20蹲伏于虚拟掩体10的某一掩体表面时,若接收到用户针对于移动摇杆的第二触控操作时,判定虚拟角色20仅能沿虚拟掩体10的预设路线L移动,由于虚拟角色20仅能沿预设路线L移动,故针对于移动摇杆的第二触控操作仅能是朝向预设路线的两个相反的目标方向。例如,针对于移动控件30的目标方向为方向向右的滑动操作,则会控制虚拟角色20在第一表面11的后方朝向右进行移动。As shown in Figure 1d, Figure 1d is a second schematic diagram of a graphical user interface provided by an embodiment of the present disclosure. When the virtual character 20 is crouching on a certain surface of the virtual bunker 10 and receives the user's second touch operation on the moving joystick, it is determined that the virtual character 20 can only move along the preset route L of the virtual bunker 10 , since the virtual character 20 can only move along the preset route L, the second touch operation for moving the joystick can only be towards two opposite target directions of the preset route. For example, if the target direction of the movement control 30 is a sliding operation to the right, the virtual character 20 will be controlled to move to the right behind the first surface 11 .
在一些实施方式中,所述目标方向为与所述第一表面平行的方向。In some embodiments, the target direction is a direction parallel to the first surface.
其中,由于目标方向为朝向预设路线的两个相反的目标方向,而预设路线L又是平行于第一表面11的,故目标方向平行于第一表面。Among them, since the target directions are two opposite target directions toward the preset route, and the preset route L is parallel to the first surface 11, the target directions are parallel to the first surface.
在步骤103中,当所述虚拟角色朝目标方向移动至第一表面的边界位置时,响应针对移动摇杆的第三触控操作,控制虚拟角色从虚拟掩体的第一表面切换至虚拟掩体的第二表面的后方进行蹲伏,其中,所述第一表面与所述第二表面相邻。In step 103, when the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation of the mobile joystick, the virtual character is controlled to switch from the first surface of the virtual bunker to the edge of the virtual bunker. Crouching is performed behind a second surface, wherein the first surface is adjacent to the second surface.
其中,如图1e所示,图1e为本公开实施例提供的图形用户界面的第三种示意图。当虚拟角色20朝目标方向移动至第一表面11的边界位置l时,此时 若用户针对于移动控件30进行第三触控操作,可控制虚拟角色20从虚拟掩体10的第一表面11切换至虚拟掩体的第二表面12的后方进行蹲伏,其中,所述第一表面11与所述第二表面12相邻。As shown in Figure 1e, Figure 1e is a third schematic diagram of a graphical user interface provided by an embodiment of the present disclosure. When the virtual character 20 moves in the target direction to the boundary position l of the first surface 11, at this time If the user performs a third touch operation on the mobile control 30, the virtual character 20 can be controlled to switch from the first surface 11 of the virtual bunker 10 to crouch behind the second surface 12 of the virtual bunker, wherein the first surface 11 is adjacent to said second surface 12 .
在一些实施方式中,所述方法还包括:In some embodiments, the method further includes:
当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对移动摇杆的第三触控操作,在第三触控操作持续期间,在图形用户界面上显示转角进度标识,其中,转角进度标识用于表征所述虚拟角色从所述第一表面切换至所述第二表面后方需等待的预设时长及已经过的时长。When the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation of the mobile joystick, during the duration of the third touch operation, the corner is displayed on the graphical user interface Progress indicator, wherein the corner progress indicator is used to represent the preset time period and the elapsed time period that the virtual character needs to wait for switching from the first surface to the back of the second surface.
其中,如图1f所示,图1f为本公开实施例提供的图形用户界面的第四种示意图。第三触控操作可以为持续性操作,故在第三触控操作的持续期间,在图形用户界面内也会显示虚拟角色20的在虚拟掩体10不同掩体表面间的转角动作,在转角过程中,图形用户界面上会显示转角进度标识90,该转角进度标识用于表征所述虚拟角色从所述第一表面切换至所述第二表面后方需等待的预设时长及已经过的时长。Among them, as shown in Figure 1f, Figure 1f is a fourth schematic diagram of a graphical user interface provided by an embodiment of the present disclosure. The third touch operation may be a continuous operation. Therefore, during the duration of the third touch operation, the turning movements of the virtual character 20 between different bunker surfaces of the virtual bunker 10 will also be displayed in the graphical user interface. During the turning process , a corner progress indicator 90 will be displayed on the graphical user interface. The corner progress indicator is used to represent the preset time period and the elapsed time period that the virtual character needs to wait for switching from the first surface to the second surface.
在一些实施方式中,所述控制虚拟角色从虚拟掩体的第一表面切换至虚拟掩体的第二表面的后方进行蹲伏之前,还包括:In some embodiments, before controlling the virtual character to switch from the first surface of the virtual bunker to the back of the second surface of the virtual bunker to crouch, the method further includes:
确定所述第三触控操作作用时长达到预设时长。It is determined that the third touch operation duration reaches a preset duration.
其中,触发第一虚拟角色切换至所述虚拟掩体的第二表面的后方进行蹲伏的转角过程的前提还可以为判定用户对移动控件的第三触控操作的作用时长满足预设时长,例如3s。The prerequisite for triggering the first virtual character to switch to the back of the second surface of the virtual bunker to perform the crouching corner process may also be to determine that the duration of the user's third touch operation on the mobile control satisfies the preset duration, for example 3s.
在一些实施方式中,所述方法还包括:In some embodiments, the method further includes:
当确定所述第三触控操作作用时长达到预设时长时,所述转角进度标识呈现为积满状态。When it is determined that the duration of the third touch operation reaches the preset duration, the corner progress indicator appears in a full state.
其中,请参阅图1f,转角进度标识90可以为箭头状标识,并且在箭头状标识内还可以显示有填充样式的进度示意,当填充满转角进度标识90时,即为转角进度标识90呈现为积满状态,而积满状态意味着第三触控操作作用时长达到预设时长,可以触发虚拟角色在虚拟掩体不同的掩体表面间的转角切换。Among them, please refer to Figure 1f. The corner progress indicator 90 can be an arrow-shaped indicator, and a filling-style progress indicator can also be displayed in the arrow-shaped indicator. When the corner progress indicator 90 is filled, the corner progress indicator 90 appears as The full state means that the duration of the third touch operation reaches the preset time, which can trigger the virtual character to switch corners between different cover surfaces of the virtual bunker.
在一些实施方式中,所述转角进度标识为带有箭头的曲线条,所述带有箭 头的曲线条用于指示所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方的移动轨迹。In some embodiments, the corner progress is marked as a curved bar with an arrow. The curved line of the head is used to indicate the movement trajectory of the virtual character switching from the first surface of the virtual bunker to the rear of the second surface of the virtual bunker.
其中,请参阅图1f,转角进度标识90为带有箭头的曲线条,曲线条用于表示虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方的移动轨迹,而箭头用于表示虚拟角色沿移动轨迹移动时的移动方向。Please refer to Figure 1f. The corner progress indicator 90 is a curved bar with an arrow. The curved bar is used to represent the movement trajectory of the virtual character switching from the first surface of the virtual bunker to the back of the second surface of the virtual bunker. , and the arrow is used to indicate the moving direction of the virtual character when it moves along the movement trajectory.
具体的,如图1g所示,图1g为本公开实施例提供的图形用户界面的第五种示意图。当虚拟角色20转角完毕后,虚拟角色20则在第二表面12的后方并处于蹲伏姿态。Specifically, as shown in Figure 1g, Figure 1g is a fifth schematic diagram of a graphical user interface provided by an embodiment of the present disclosure. After the virtual character 20 completes the corner rotation, the virtual character 20 is behind the second surface 12 and is in a crouching posture.
在一些实施方式中,所述方法还包括:In some embodiments, the method further includes:
在所述第三触控操作的作用时长达到所述预设时长前,响应所述第三触控操作的结束,隐藏所述转角进度标识。Before the effect duration of the third touch operation reaches the preset duration, the corner progress indicator is hidden in response to the end of the third touch operation.
其中,若在第三触控操作的作用时长达到所述预设时长前,用户结束了对移动控件的第三触控操作,则证明用户当前希望禁止虚拟角色进行转角,则隐藏转角进度标识,从而告知用户已中转角判定。Among them, if the user ends the third touch operation on the mobile control before the duration of the third touch operation reaches the preset duration, it proves that the user currently wants to prohibit the virtual character from turning the corner, and then the corner progress indicator is hidden, This notifies the user that corner determination has been completed.
在一些实施方式中,第二触控操作为滑动操作,第三触控操作为长按操作,且第三触控操作与第二触控操作为连续操作。In some embodiments, the second touch operation is a sliding operation, the third touch operation is a long press operation, and the third touch operation and the second touch operation are continuous operations.
其中,控制虚拟角色在第一表面的后方朝所述目标方向进行移动的第二触控操作是针对于移动控件操作的,针对于移动控件来控制虚拟角色移动一般为针对于移动控件的滑动操作,故第二触控操作可以为滑动操作。并且第三触控操作同样为针对于移动控件的操作,因此,为了提高用户操作的连贯性以及简便性,可以设定第二触控操作以及第三触控操作为连贯操作。也即用户通过针对于移动控件进行滑动操作来实现第二触控操作,并通过长按操作来实现第三触控操作。例如,用户通过手指针对于移动控件进行滑动,来控制虚拟角色在虚拟掩体表面的后方进行移动,在滑动的过程中若虚拟角色移动至某一掩体表面的边界位置时,则不进行滑动,但手指不离开移动控件,则实现第三触控操作的长按,从而触发虚拟角色从虚拟掩体的某一表面切换至另一表面的后方进行蹲伏。Wherein, the second touch operation to control the virtual character to move in the target direction behind the first surface is for the mobile control operation. Controlling the movement of the virtual character for the mobile control is generally a sliding operation for the mobile control. , so the second touch operation can be a sliding operation. Moreover, the third touch operation is also an operation for the mobile control. Therefore, in order to improve the consistency and simplicity of user operations, the second touch operation and the third touch operation can be set as continuous operations. That is, the user performs a sliding operation on the mobile control to implement the second touch operation, and performs a long press operation to implement the third touch operation. For example, the user controls the virtual character to move behind the virtual bunker surface by sliding the finger on the movement control. During the sliding process, if the virtual character moves to the boundary position of a certain bunker surface, the user will not slide, but Without leaving the mobile control, a long press of the third touch operation is performed, thereby triggering the virtual character to switch from one surface of the virtual bunker to the back of another surface to crouch.
在一些实施方式中,第二触控操作和第三触控操作均为滑动操作。In some implementations, both the second touch operation and the third touch operation are sliding operations.
其中,第三触控操作还可以为与第二触控操作相同的滑动操作,也即当虚 拟角色移动至某一掩体表面的边界位置时,继续进行滑动,从而实现第三触控操作,控制虚拟角色从虚拟掩体的某一表面切换至另一表面的后方进行蹲伏。The third touch operation may also be the same sliding operation as the second touch operation, that is, when the virtual When the virtual character moves to the boundary position of a certain bunker surface, continue to slide, thereby realizing a third touch operation, controlling the virtual character to switch from one surface of the virtual bunker to the back of another surface to crouch.
在一些实施方式中,控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏,包括:In some embodiments, controlling the virtual character to switch from the first surface of the virtual bunker to crouch behind the second surface of the virtual bunker includes:
控制所述虚拟角色以蹲伏姿态从所述虚拟掩体的第一表面的后方切换至所述虚拟掩体的第二表面的后方。The virtual character is controlled to switch from behind the first surface of the virtual bunker to behind the second surface of the virtual bunker in a crouching posture.
其中,虚拟角色从虚拟掩体的第一表面切换至虚拟掩体的第二表面的后方进行蹲伏的转角过程中,虚拟角色是以蹲伏姿态进行转角的,也可以是先从虚拟掩体第一表面的后方的蹲伏姿态变更为站立姿态,并通过站立姿态进行转角,当转至第二表面的后方时,再从站立姿态变更为蹲伏姿态。具体的转角过程中虚拟角色的姿态此处不做限定。Among them, when the virtual character switches from the first surface of the virtual bunker to the back of the second surface of the virtual bunker to crouch, the virtual character turns in a crouching posture, or it may first switch from the first surface of the virtual bunker to the back of the second surface of the virtual bunker. The crouching posture behind the second surface is changed to a standing posture, and the corner is turned through the standing posture. When it is turned to the rear of the second surface, it is changed from the standing posture to the crouching posture. The posture of the virtual character during the specific corner turning process is not limited here.
由上述可知,本公开实施例通过响应针对蹲伏控件的第一触控操作,控制虚拟角色蹲伏于虚拟掩体第一表面的后方;响应针对移动摇杆朝目标方向的第二触控操作,控制虚拟角色在第一表面的后方朝目标方向进行移动;当虚拟角色朝目标方向移动至第一表面的边界位置时,响应针对移动摇杆的第三触控操作,控制虚拟角色从虚拟掩体的第一表面切换至虚拟掩体的第二表面的后方进行蹲伏,其中,第一表面与第二表面相邻。以此,通过对移动摇杆的第三触控操作即可实现控制虚拟角色处于蹲伏的状态下在虚拟掩体的表面间进行转角,无需新增其他控件,并且实现了对虚拟角色更灵活的控制,简单易操作,进而降低了终端设备中游戏的操作成本及运行时长,节省了终端设备的电量。As can be seen from the above, the embodiment of the present disclosure controls the virtual character to crouch behind the first surface of the virtual bunker by responding to the first touch operation of the crouch control; and in response to the second touch operation of moving the joystick in the target direction, Control the virtual character to move in the target direction behind the first surface; when the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation of the mobile joystick, control the virtual character to move from the virtual bunker to the boundary position of the first surface. The first surface is switched to the rear of the second surface of the virtual bunker to crouch, wherein the first surface is adjacent to the second surface. In this way, through the third touch operation of the mobile joystick, the virtual character can be controlled to turn between the surfaces of the virtual bunker while in a crouching state, without adding other controls, and more flexible control of the virtual character is achieved. The control is simple and easy to operate, thereby reducing the operating cost and running time of the game in the terminal device, and saving the power of the terminal device.
为便于更好的实施本公开实施例提供的虚拟角色的控制方法,本公开实施例还提供一种基于上述虚拟角色的控制方法的装置。其中名词的含义与上述虚拟角色的控制方法中相同,具体实现细节可以参考方法实施例中的说明。In order to facilitate better implementation of the virtual character control method provided by the embodiment of the present disclosure, the embodiment of the present disclosure also provides a device based on the above virtual character control method. The meanings of the nouns are the same as those in the above virtual character control method. For specific implementation details, please refer to the description in the method embodiment.
请参阅图2,图2为本公开实施例提供的虚拟角色的控制装置的结构示意图,其中该虚拟角色的控制装置可以包括第一控制模块301、第二控制模块302、以及第三控制模块303等。Please refer to Figure 2. Figure 2 is a schematic structural diagram of a virtual character control device provided by an embodiment of the present disclosure. The virtual character control device may include a first control module 301, a second control module 302, and a third control module 303. wait.
第一控制模块301,用于响应针对所述蹲伏控件的第一触控操作,控制所述虚拟角色蹲伏于所述虚拟掩体第一表面的后方;The first control module 301 is configured to control the virtual character to crouch behind the first surface of the virtual bunker in response to the first touch operation on the crouch control;
第二控制模块302,用于响应针对所述移动摇杆朝目标方向的第二触控操 作,控制所述虚拟角色在所述第一表面的后方朝所述目标方向进行移动;The second control module 302 is configured to respond to the second touch operation of moving the joystick in the target direction. Operation, controlling the virtual character to move in the target direction behind the first surface;
第三控制模块303,用于当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对所述移动摇杆的第三触控操作,控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏,其中,所述第一表面与所述第二表面相邻。The third control module 303 is configured to, when the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation on the moving rocker, control the virtual character from The first surface of the virtual bunker is switched to the rear of the second surface of the virtual bunker for crouching, wherein the first surface is adjacent to the second surface.
在一些实施方式中,所述装置还包括:In some embodiments, the device further includes:
第一显示模块,用于当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对所述移动摇杆的第三触控操作,在所述第三触控操作持续期间,在所述图形用户界面上显示转角进度标识,其中,所述转角进度标识用于表征所述虚拟角色从所述第一表面切换至所述第二表面后方需等待的预设时长及已经过的时长。A first display module configured to respond to a third touch operation on the moving rocker when the virtual character moves in the target direction to the boundary position of the first surface. During the operation, a corner progress indicator is displayed on the graphical user interface, where the corner progress indicator is used to represent a preset time period for the virtual character to wait after switching from the first surface to the second surface. and the elapsed time.
在一些实施方式中,所述装置还包括:In some embodiments, the device further includes:
确定模块,用于确定所述第三触控操作作用时长达到预设时长。A determining module, configured to determine that the third touch operation duration reaches a preset duration.
在一些实施方式中,所述装置还包括:In some embodiments, the device further includes:
第二显示模块,用于当确定所述第三触控操作作用时长达到预设时长时,所述转角进度标识呈现为积满状态。The second display module is configured to display the corner progress indicator in a full state when it is determined that the duration of the third touch operation reaches a preset duration.
在一些实施方式中,所述转角进度标识为带有箭头的曲线条,所述带有箭头的曲线条用于指示所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方的移动轨迹。In some embodiments, the corner progress is identified as a curved line with an arrow, and the curved line with an arrow is used to indicate that the virtual character switches from the first surface of the virtual bunker to the first surface of the virtual bunker. Movement trajectory behind the second surface.
在一些实施方式中,所述装置还包括:In some embodiments, the device further includes:
隐藏模块,用于在所述第三触控操作的作用时长达到所述预设时长前,响应所述第三触控操作的结束,隐藏所述转角进度标识。A hiding module configured to hide the corner progress indicator in response to the end of the third touch operation before the effect duration of the third touch operation reaches the preset duration.
在一些实施方式中,所述目标方向为与所述第一表面平行的方向。In some embodiments, the target direction is a direction parallel to the first surface.
在一些实施方式中,所述第二触控操作为滑动操作,所述第三触控操作为长按操作,且所述第三触控操作与所述第二触控操作为连续操作。In some embodiments, the second touch operation is a sliding operation, the third touch operation is a long press operation, and the third touch operation and the second touch operation are continuous operations.
在一些实施方式中,所述第二触控操作和第三触控操作均为滑动操作。In some implementations, both the second touch operation and the third touch operation are sliding operations.
在一些实施方式中,所述第三控制模块303,包括:In some implementations, the third control module 303 includes:
控制子模块,用于控制所述虚拟角色以蹲伏姿态从所述虚拟掩体的第一表面的后方切换至所述虚拟掩体的第二表面的后方。 A control submodule configured to control the virtual character to switch from behind the first surface of the virtual bunker to behind the second surface of the virtual bunker in a crouching posture.
在一些实施方式中,所述装置还包括:In some embodiments, the device further includes:
第四控制模块,用于当所述虚拟角色处于蹲伏姿态时,响应针对所述蹲伏控件的触控操作,控制所述虚拟角色从所述蹲伏姿态切换至站立姿态。A fourth control module is configured to, when the virtual character is in a crouching posture, control the virtual character to switch from the crouching posture to a standing posture in response to a touch operation on the crouching control.
在一些实施方式中,所述装置还包括:In some embodiments, the device further includes:
第五控制模块,用于当所述虚拟角色处于站立姿态时,响应针对所述移动摇杆的滑动操作,控制所述虚拟角色在所述虚拟场景中进行移动;A fifth control module configured to control the virtual character to move in the virtual scene in response to the sliding operation of the mobile joystick when the virtual character is in a standing posture;
第三显示模块,用于当所述虚拟角色与所述虚拟掩体的位置满足预设位置关系时,显示所述蹲伏控件。The third display module is configured to display the crouching control when the positions of the virtual character and the virtual bunker satisfy a preset position relationship.
由上述可知,本公开实施例通过第一控制模块301响应针对所述蹲伏控件的第一触控操作,控制所述虚拟角色蹲伏于所述虚拟掩体第一表面的后方;第二控制模块302响应针对所述移动摇杆朝目标方向的第二触控操作,控制所述虚拟角色在所述第一表面的后方朝所述目标方向进行移动;第三控制模块303当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对所述移动摇杆的第三触控操作,控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏,其中,所述第一表面与所述第二表面相邻。以此,通过对移动摇杆的第三触控操作即可实现控制虚拟角色处于蹲伏的状态下在虚拟掩体的表面间进行转角,无需新增其他控件,并且实现了对虚拟角色更灵活的控制,简单易操作,进而降低了终端设备中游戏的操作成本及运行时长,节省了终端设备的电量。As can be seen from the above, the embodiment of the present disclosure controls the virtual character to crouch behind the first surface of the virtual bunker through the first control module 301 in response to the first touch operation on the crouch control; the second control module 302 In response to the second touch operation of the moving joystick in the target direction, control the virtual character to move in the target direction behind the first surface; the third control module 303 when the virtual character moves in the target direction When the target direction moves to the boundary position of the first surface, in response to the third touch operation of the moving joystick, the virtual character is controlled to switch from the first surface of the virtual bunker to the virtual bunker. crouching behind a second surface, wherein the first surface is adjacent to the second surface. In this way, through the third touch operation of the mobile joystick, the virtual character can be controlled to turn between the surfaces of the virtual bunker while in a crouching state, without adding other controls, and more flexible control of the virtual character is achieved. The control is simple and easy to operate, thereby reducing the operating cost and running time of the game in the terminal device, and saving the power of the terminal device.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of each of the above operations, please refer to the previous embodiments and will not be described again here.
相应的,本公开实施例还提供一种终端设备,该终端设备可以为终端或者服务器,该终端可以为智能手机、平板电脑、笔记本电脑、触控屏幕、游戏机、个人计算机(PC,Personal Computer)、个人数字助理(Personal Digital Assistant,PDA)等终端设备。如图3所示,图3为本公开实施例提供的终端设备的结构示意图。该终端设备400包括有一个或者一个以上处理核心的处理器401、有一个或一个以上计算机可读存储介质的存储器402及存储在存储器402上并可在处理器上运行的计算机程序。其中,处理器401与存储器402电性连接。本领域技术人员可以理解,图中示出的终端设备结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。 Correspondingly, embodiments of the present disclosure also provide a terminal device. The terminal device may be a terminal or a server. The terminal may be a smartphone, a tablet computer, a notebook computer, a touch screen, a game console, or a personal computer (PC). ), personal digital assistant (Personal Digital Assistant, PDA) and other terminal devices. As shown in Figure 3, Figure 3 is a schematic structural diagram of a terminal device provided by an embodiment of the present disclosure. The terminal device 400 includes a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, and a computer program stored on the memory 402 and executable on the processor. Among them, the processor 401 is electrically connected to the memory 402. Those skilled in the art can understand that the structure of the terminal equipment shown in the figures does not constitute a limitation on the terminal equipment, and may include more or fewer components than shown in the figures, or combine certain components, or arrange different components.
处理器401是终端设备400的控制中心,利用各种接口和线路连接整个终端设备400的各个部分,通过运行或加载存储在存储器402内的软件程序和/或模块,以及调用存储在存储器402内的数据,执行终端设备400的各种功能和处理数据,从而对终端设备400进行整体监控。The processor 401 is the control center of the terminal device 400, using various interfaces and lines to connect various parts of the entire terminal device 400, by running or loading software programs and/or modules stored in the memory 402, and calling the software programs and/or modules stored in the memory 402. data, perform various functions of the terminal device 400 and process data, thereby overall monitoring the terminal device 400.
在本公开实施例中,终端设备400中的处理器401会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器402中,并由处理器401来运行存储在存储器402中的应用程序,从而实现各种功能:In the embodiment of the present disclosure, the processor 401 in the terminal device 400 will follow the following steps to load instructions corresponding to the processes of one or more application programs into the memory 402, and the processor 401 will run the instructions stored in the memory. 402 application to achieve various functions:
响应针对蹲伏控件的第一触控操作,控制虚拟角色蹲伏于虚拟掩体第一表面的后方;响应针对移动摇杆朝目标方向的第二触控操作,控制虚拟角色在第一表面的后方朝目标方向进行移动;当虚拟角色朝目标方向移动至第一表面的边界位置时,响应针对移动摇杆的第三触控操作,控制虚拟角色从虚拟掩体的第一表面切换至虚拟掩体的第二表面的后方进行蹲伏,其中,第一表面与第二表面相邻。In response to the first touch operation on the crouch control, the virtual character is controlled to crouch behind the first surface of the virtual bunker; in response to the second touch operation on moving the joystick in the target direction, the virtual character is controlled behind the first surface Move in the target direction; when the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation of the mobile joystick, the virtual character is controlled to switch from the first surface of the virtual bunker to the third surface of the virtual bunker. Crouching is performed behind two surfaces, wherein the first surface is adjacent to the second surface.
可选的,所述处理器还用于执行:当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对所述移动摇杆的第三触控操作,在所述第三触控操作持续期间,在所述图形用户界面上显示转角进度标识,其中,所述转角进度标识用于表征所述虚拟角色从所述第一表面切换至所述第二表面后方需等待的预设时长及已经过的时长。Optionally, the processor is further configured to perform: when the virtual character moves in the target direction to a boundary position of the first surface, in response to a third touch operation on the moving rocker, During the duration of the third touch operation, a corner progress indicator is displayed on the graphical user interface, wherein the corner progress indicator is used to represent the virtual character switching from the first surface to behind the second surface. The preset time to wait and the time that has elapsed.
可选的,所述处理器还用于执行:确定所述第三触控操作作用时长达到预设时长。Optionally, the processor is further configured to: determine that the duration of the third touch operation reaches a preset duration.
可选的,所述处理器还用于执行:当确定所述第三触控操作作用时长达到预设时长时,所述转角进度标识呈现为积满状态。Optionally, the processor is further configured to perform: when it is determined that the duration of the third touch operation reaches a preset duration, the corner progress indicator appears in a full state.
可选的,所述处理器还用于执行:所述转角进度标识为带有箭头的曲线条,所述带有箭头的曲线条用于指示所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方的移动轨迹。Optionally, the processor is also configured to execute: the corner progress is identified as a curved bar with an arrow, and the curved bar with an arrow is used to indicate that the virtual character moves from the first surface of the virtual bunker Switch to the movement trajectory behind the second surface of the virtual bunker.
可选的,所述处理器还用于执行:在所述第三触控操作的作用时长达到所述预设时长前,响应所述第三触控操作的结束,隐藏所述转角进度标识。Optionally, the processor is further configured to: before the duration of the third touch operation reaches the preset duration, in response to the end of the third touch operation, hide the corner progress indicator.
可选的,所述处理器还用于执行:所述目标方向为与所述第一表面平行的方向。 Optionally, the processor is further configured to execute: the target direction is a direction parallel to the first surface.
可选的,所述处理器还用于执行:所述第二触控操作为滑动操作,所述第三触控操作为长按操作,且所述第三触控操作与所述第二触控操作为连续操作。Optionally, the processor is further configured to perform: the second touch operation is a sliding operation, the third touch operation is a long press operation, and the third touch operation is the same as the second touch operation. The control operation is continuous operation.
可选的,所述处理器还用于执行:所述第二触控操作和第三触控操作均为滑动操作。Optionally, the processor is further configured to perform: both the second touch operation and the third touch operation are sliding operations.
可选的,所述处理器还用于执行:控制所述虚拟角色以蹲伏姿态从所述虚拟掩体的第一表面的后方切换至所述虚拟掩体的第二表面的后方。Optionally, the processor is further configured to: control the virtual character to switch from behind the first surface of the virtual bunker to behind the second surface of the virtual bunker in a crouching posture.
可选的,所述处理器还用于执行:当所述虚拟角色处于站立姿态时,响应针对所述移动摇杆的滑动操作,控制所述虚拟角色在所述虚拟场景中进行移动;Optionally, the processor is also configured to: when the virtual character is in a standing posture, control the virtual character to move in the virtual scene in response to a sliding operation on the mobile joystick;
当所述虚拟角色与所述虚拟掩体的位置满足预设位置关系时,显示所述蹲伏控件。When the positions of the virtual character and the virtual bunker satisfy a preset position relationship, the crouching control is displayed.
可选的,所述处理器还用于执行:当所述虚拟角色处于蹲伏姿态时,响应针对所述蹲伏控件的触控操作,控制所述虚拟角色从所述蹲伏姿态切换至站立姿态。Optionally, the processor is further configured to perform: when the virtual character is in a crouching posture, in response to a touch operation on the crouching control, control the virtual character to switch from the crouching posture to standing. attitude.
本公开实施例通过响应针对所述蹲伏控件的第一触控操作,控制所述虚拟角色蹲伏于所述虚拟掩体第一表面的后方;响应针对所述移动摇杆朝目标方向的第二触控操作,控制所述虚拟角色在所述第一表面的后方朝所述目标方向进行移动;当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对所述移动摇杆的第三触控操作,控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏,其中,所述第一表面与所述第二表面相邻。以此,通过对移动摇杆的第三触控操作即可实现控制虚拟角色处于蹲伏的状态下在虚拟掩体的表面间进行转角,无需新增其他控件,并且实现了对虚拟角色更灵活的控制,简单易操作,进而降低了终端设备中游戏的操作成本及运行时长,节省了终端设备的电量。The embodiment of the present disclosure controls the virtual character to crouch behind the first surface of the virtual bunker by responding to the first touch operation of the crouch control; and responding to the second touch operation of the moving rocker in the target direction. Touch operation to control the virtual character to move in the target direction behind the first surface; when the virtual character moves in the target direction to the boundary position of the first surface, respond to the The third touch operation of the mobile joystick controls the virtual character to switch from the first surface of the virtual bunker to the back of the second surface of the virtual bunker to crouch, wherein the first surface is connected to the second surface of the virtual bunker. The second surface is adjacent. In this way, through the third touch operation of the mobile joystick, the virtual character can be controlled to turn between the surfaces of the virtual bunker while in a crouching state, without adding other controls, and more flexible control of the virtual character is achieved. The control is simple and easy to operate, thereby reducing the operating cost and running time of the game in the terminal device, and saving the power of the terminal device.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of each of the above operations, please refer to the previous embodiments and will not be described again here.
可选的,如图3所示,终端设备400还包括:触控显示屏403、射频电路404、音频电路405、输入单元406以及电源407。其中,处理器401分别与触控显示屏403、射频电路404、音频电路405、输入单元406以及电源407电 性连接。本领域技术人员可以理解,图3中示出的终端设备结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Optionally, as shown in FIG. 3 , the terminal device 400 also includes: a touch display screen 403 , a radio frequency circuit 404 , an audio circuit 405 , an input unit 406 and a power supply 407 . Among them, the processor 401 is electrically connected to the touch display screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406 and the power supply 407 respectively. sexual connection. Those skilled in the art can understand that the structure of the terminal device shown in FIG. 3 does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange different components.
触控显示屏403可用于显示图形用户界面以及接收用户作用于图形用户界面产生的操作指令。触控显示屏403可以包括显示面板和触控面板。其中,显示面板可用于显示由用户输入的信息或提供给用户的信息以及终端设备的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。触控面板可用于收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或在触控面板附近的操作),并生成相应的操作指令,且操作指令执行对应程序。可选的,触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器401,并能接收处理器401发来的命令并加以执行。触控面板可覆盖显示面板,当触控面板检测到在其上或附近的触摸操作后,传送给处理器401以确定触摸事件的类型,随后处理器401根据触摸事件的类型在显示面板上提供相应的视觉输出。在本公开实施例中,可以将触控面板与显示面板集成到触控显示屏403而实现输入和输出功能。但是在某些实施例中,触控面板与触控面板可以作为两个独立的部件来实现输入和输出功能。即触控显示屏403也可以作为输入单元406的一部分实现输入功能。The touch display screen 403 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 403 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 terminal 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 liquid crystal display (LCD, Liquid Crystal Display), organic light-emitting diode (OLED, Organic Light-Emitting Diode), etc. The touch panel can be used to collect the user's touch operations on or near it (such as the user's operations on or near the touch panel using a finger, stylus, or any suitable object or accessory), and generate corresponding operations instruction, and the operation instruction executes the corresponding program. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, 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 point coordinates, and then sends it to the touch controller. to the processor 401, and can receive commands sent by the processor 401 and execute them. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near the touch panel, it is sent to the processor 401 to determine the type of the touch event. Then the processor 401 provides information on the display panel according to the type of the touch event. Corresponding visual output. In the embodiment of the present disclosure, the touch panel and the display panel can be integrated into the touch display 403 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to implement input and output functions. That is, the touch display screen 403 can also be used as a part of the input unit 406 to implement the input function.
在本公开实施例中,通过处理器401执行游戏应用程序在触控显示屏403上生成图形用户界面,图形用户界面上的虚拟场景中包含至少一个技能控制区域,技能控制区域中包含至少一个技能控件。该触控显示屏403用于呈现图形用户界面以及接收用户作用于图形用户界面产生的操作指令。In this embodiment of the present disclosure, the processor 401 executes a game application to generate a graphical user interface on the touch display 403. The virtual scene on the graphical user interface contains at least one skill control area, and the skill control area contains at least one skill. controls. The touch display screen 403 is used to present a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface.
射频电路404可用于收发射频信号,以通过无线通信与网络设备或其他终端设备建立无线通讯,与网络设备或其他终端设备之间收发信号。The radio frequency circuit 404 can be used to send and receive radio frequency signals to establish wireless communication with network equipment or other terminal equipment through wireless communication, and to send and receive signals with the network equipment or other terminal equipment.
音频电路405可以用于通过扬声器、传声器提供用户与终端设备之间的音 频接口。音频电路405可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路405接收后转换为音频数据,再将音频数据输出处理器401处理后,经射频电路404以发送给比如另一终端设备,或者将音频数据输出至存储器402以便进一步处理。音频电路405还可能包括耳塞插孔,以提供外设耳机与终端设备的通信。The audio circuit 405 can be used to provide audio between the user and the terminal device through speakers and microphones. frequency interface. The audio circuit 405 can transmit the electrical signal converted from the received audio data to the speaker, which converts it into a sound signal and outputs it; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received and converted by the audio circuit 405 The audio data is processed by the audio data output processor 401 and then sent to, for example, another terminal device via the radio frequency circuit 404, or the audio data is output to the memory 402 for further processing. Audio circuit 405 may also include an earphone jack to provide communication between peripheral earphones and the terminal device.
输入单元406可用于接收输入的数字、字符信息或用户特征信息(例如指纹、虹膜、面部信息等),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The input unit 406 can be used to receive input numbers, character information or user characteristic information (such as fingerprints, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. .
电源407用于给终端设备400的各个部件供电。可选的,电源407可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源407还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The power supply 407 is used to power various components of the terminal device 400 . Optionally, the power supply 407 can be logically connected to the processor 401 through a power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system. Power supply 407 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
尽管图3中未示出,终端设备400还可以包括摄像头、传感器、无线保真模块、蓝牙模块等,在此不再赘述。Although not shown in FIG. 3 , the terminal device 400 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described again here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, each embodiment is described with its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
由上可知,本实施例提供的终端设备,通过响应针对蹲伏控件的第一触控操作,控制虚拟角色蹲伏于虚拟掩体第一表面的后方;响应针对移动摇杆朝目标方向的第二触控操作,控制虚拟角色在第一表面的后方朝目标方向进行移动;当虚拟角色朝目标方向移动至第一表面的边界位置时,响应针对移动摇杆的第三触控操作,控制虚拟角色从虚拟掩体的第一表面切换至虚拟掩体的第二表面的后方进行蹲伏,其中,第一表面与第二表面相邻。以此,通过对移动摇杆的第三触控操作即可实现控制虚拟角色处于蹲伏的状态下在虚拟掩体的表面间进行转角,无需新增其他控件,并且实现了对虚拟角色更灵活的控制,简单易操作,进而降低了终端设备中游戏的操作成本及运行时长,节省了终端设备的电量。It can be seen from the above that the terminal device provided in this embodiment controls the virtual character to crouch behind the first surface of the virtual bunker by responding to the first touch operation of the crouch control; and responds to the second touch operation of the moving joystick in the target direction. Touch operation to control the virtual character to move in the target direction behind the first surface; when the virtual character moves in the target direction to the boundary position of the first surface, respond to the third touch operation of the mobile joystick to control the virtual character Switching from the first surface of the virtual bunker to crouching behind the second surface of the virtual bunker, wherein the first surface is adjacent to the second surface. In this way, through the third touch operation of the mobile joystick, the virtual character can be controlled to turn between the surfaces of the virtual bunker while in a crouching state, without adding other controls, and more flexible control of the virtual character is achieved. The control is simple and easy to operate, thereby reducing the operating cost and running time of the game in the terminal device, and saving the power of the terminal device.
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步 骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments The steps can be completed through instructions, or through instructions to control related hardware. The instructions can be stored in a computer-readable storage medium and loaded and executed by the processor.
为此,本公开实施例提供一种计算机可读存储介质,其中存储有多条计算机程序,该计算机程序能够被处理器进行加载,以执行本公开实施例所提供的任一种技能的控制方法中的步骤。例如,该计算机程序可以执行如下步骤:To this end, embodiments of the present disclosure provide a computer-readable storage medium in which multiple computer programs are stored. The computer programs can be loaded by a processor to execute any skill control method provided by the embodiments of the disclosure. steps in. For example, the computer program can perform the following steps:
响应针对蹲伏控件的第一触控操作,控制虚拟角色蹲伏于虚拟掩体第一表面的后方;响应针对移动摇杆朝目标方向的第二触控操作,控制虚拟角色在第一表面的后方朝目标方向进行移动;当虚拟角色朝目标方向移动至第一表面的边界位置时,响应针对移动摇杆的第三触控操作,控制虚拟角色从虚拟掩体的第一表面切换至虚拟掩体的第二表面的后方进行蹲伏,其中,第一表面与第二表面相邻。In response to the first touch operation on the crouch control, the virtual character is controlled to crouch behind the first surface of the virtual bunker; in response to the second touch operation on moving the joystick in the target direction, the virtual character is controlled behind the first surface Move in the target direction; when the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation of the mobile joystick, the virtual character is controlled to switch from the first surface of the virtual bunker to the third surface of the virtual bunker. Crouching is performed behind two surfaces, wherein the first surface is adjacent to the second surface.
可选的,所述方法还包括:Optionally, the method also includes:
当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对所述移动摇杆的第三触控操作,在所述第三触控操作持续期间,在所述图形用户界面上显示转角进度标识,其中,所述转角进度标识用于表征所述虚拟角色从所述第一表面切换至所述第二表面后方需等待的预设时长及已经过的时长。When the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation on the moving rocker, during the duration of the third touch operation, on the A corner progress indicator is displayed on the graphical user interface, wherein the corner progress indicator is used to represent the preset time period and the elapsed time period that the virtual character needs to wait for switching from the first surface to the second surface.
可选的,所述控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏之前,还包括:Optionally, before controlling the virtual character to switch from the first surface of the virtual bunker to the back of the second surface of the virtual bunker to crouch, the method further includes:
确定所述第三触控操作作用时长达到预设时长。It is determined that the third touch operation duration reaches a preset duration.
可选的,所述方法还包括:Optionally, the method also includes:
当确定所述第三触控操作作用时长达到预设时长时,所述转角进度标识呈现为积满状态。When it is determined that the duration of the third touch operation reaches the preset duration, the corner progress indicator appears in a full state.
可选的,所述转角进度标识为带有箭头的曲线条,所述带有箭头的曲线条用于指示所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方的移动轨迹。Optionally, the corner progress is marked as a curved line with an arrow, and the curved line with an arrow is used to indicate that the virtual character switches from the first surface of the virtual bunker to the second surface of the virtual bunker. Movement trajectory behind the surface.
可选的,所述方法还包括:Optionally, the method also includes:
在所述第三触控操作的作用时长达到所述预设时长前,响应所述第三触控操作的结束,隐藏所述转角进度标识。 Before the effect duration of the third touch operation reaches the preset duration, the corner progress indicator is hidden in response to the end of the third touch operation.
可选的,所述目标方向为与所述第一表面平行的方向。Optionally, the target direction is a direction parallel to the first surface.
可选的,所述第二触控操作为滑动操作,所述第三触控操作为长按操作,且所述第三触控操作与所述第二触控操作为连续操作。Optionally, the second touch operation is a sliding operation, the third touch operation is a long press operation, and the third touch operation and the second touch operation are continuous operations.
可选的,所述第二触控操作和第三触控操作均为滑动操作。Optionally, the second touch operation and the third touch operation are both sliding operations.
可选的,所述控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏,包括:Optionally, the controlling the virtual character to switch from the first surface of the virtual bunker to crouch behind the second surface of the virtual bunker includes:
控制所述虚拟角色以蹲伏姿态从所述虚拟掩体的第一表面的后方切换至所述虚拟掩体的第二表面的后方。The virtual character is controlled to switch from behind the first surface of the virtual bunker to behind the second surface of the virtual bunker in a crouching posture.
可选的,所述方法还包括:Optionally, the method also includes:
当所述虚拟角色处于蹲伏姿态时,响应针对所述蹲伏控件的触控操作,控制所述虚拟角色从所述蹲伏姿态切换至站立姿态。When the virtual character is in a crouching posture, the virtual character is controlled to switch from the crouching posture to a standing posture in response to a touch operation on the crouching control.
可选的,所述方法还包括:Optionally, the method also includes:
当所述虚拟角色处于站立姿态时,响应针对所述移动摇杆的滑动操作,控制所述虚拟角色在所述虚拟场景中进行移动;When the virtual character is in a standing posture, control the virtual character to move in the virtual scene in response to the sliding operation of the mobile joystick;
当所述虚拟角色与所述虚拟掩体的位置满足预设位置关系时,显示所述蹲伏控件。When the positions of the virtual character and the virtual bunker satisfy a preset position relationship, the crouching control is displayed.
本公开实施例通过响应针对所述蹲伏控件的第一触控操作,控制所述虚拟角色蹲伏于所述虚拟掩体第一表面的后方;响应针对所述移动摇杆朝目标方向的第二触控操作,控制所述虚拟角色在所述第一表面的后方朝所述目标方向进行移动;当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对所述移动摇杆的第三触控操作,控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏,其中,所述第一表面与所述第二表面相邻。以此,通过对移动摇杆的第三触控操作即可实现控制虚拟角色处于蹲伏的状态下在虚拟掩体的表面间进行转角,无需新增其他控件,并且实现了对虚拟角色更灵活的控制,简单易操作,进而降低了终端设备中游戏的操作成本及运行时长,节省了终端设备的电量。The embodiment of the present disclosure controls the virtual character to crouch behind the first surface of the virtual bunker by responding to the first touch operation of the crouch control; and responding to the second touch operation of the moving rocker in the target direction. Touch operation to control the virtual character to move in the target direction behind the first surface; when the virtual character moves in the target direction to the boundary position of the first surface, respond to the The third touch operation of the mobile joystick controls the virtual character to switch from the first surface of the virtual bunker to the back of the second surface of the virtual bunker to crouch, wherein the first surface is connected to the second surface of the virtual bunker. The second surface is adjacent. In this way, through the third touch operation of the mobile joystick, the virtual character can be controlled to turn between the surfaces of the virtual bunker while in a crouching state, without adding other controls, and more flexible control of the virtual character is achieved. The control is simple and easy to operate, thereby reducing the operating cost and running time of the game in the terminal device, and saving the power of the terminal device.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of each of the above operations, please refer to the previous embodiments and will not be described again here.
其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。 The storage medium may include: read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
由于该存储介质中所存储的计算机程序,可以执行本公开实施例所提供的任一种虚拟角色的控制方法中的步骤,因此,可以实现本公开实施例所提供的任一种虚拟角色的控制方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Since the computer program stored in the storage medium can execute the steps in the method for controlling any virtual character provided by the embodiments of the present disclosure, it is possible to realize the control of any virtual character provided by the embodiments of the present disclosure. The beneficial effects that the method can achieve are detailed in the previous embodiments and will not be described again here.
以上对本公开实施例所提供的一种虚拟角色的控制方法、装置、存储介质及终端设备进行了详细介绍,本文中应用了具体个例对本公开的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本公开的方法及其核心思想;同时,对于本领域的技术人员,依据本公开的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本公开的限制。 The above is a detailed introduction to a virtual character control method, device, storage medium and terminal device provided by the embodiments of the present disclosure. This article uses specific examples to illustrate the principles and implementation methods of the present disclosure. The above embodiments The description is only used to help understand the methods and core ideas of the present disclosure; at the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present disclosure. In summary, The content of this specification should not be construed as limiting the disclosure.

Claims (20)

  1. 一种虚拟角色的控制方法,通过终端设备提供图形用户界面,所述图形用户界面包括至少部分虚拟场景、移动摇杆和蹲伏控件,以及位于所述虚拟场景中的虚拟角色和虚拟掩体,所述方法包括:A method for controlling a virtual character, providing a graphical user interface through a terminal device, the graphical user interface including at least part of a virtual scene, a mobile joystick and a crouching control, as well as a virtual character and a virtual bunker located in the virtual scene, so The methods include:
    响应针对所述蹲伏控件的第一触控操作,控制所述虚拟角色蹲伏于所述虚拟掩体第一表面的后方;In response to the first touch operation on the crouch control, control the virtual character to crouch behind the first surface of the virtual bunker;
    响应针对所述移动摇杆朝目标方向的第二触控操作,控制所述虚拟角色在所述第一表面的后方朝所述目标方向进行移动;In response to a second touch operation of the moving joystick in the target direction, controlling the virtual character to move behind the first surface in the target direction;
    当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对所述移动摇杆的第三触控操作,控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏,其中,所述第一表面与所述第二表面相邻。When the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation of the moving joystick, the virtual character is controlled to move from the first surface of the virtual bunker Switch to crouch behind a second surface of the virtual bunker, wherein the first surface is adjacent to the second surface.
  2. 根据权利要求1所述的控制方法,其中,所述方法还包括:The control method according to claim 1, wherein the method further includes:
    当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对所述移动摇杆的第三触控操作,在所述第三触控操作持续期间,在所述图形用户界面上显示转角进度标识,其中,所述转角进度标识用于表征所述虚拟角色从所述第一表面切换至所述第二表面后方需等待的预设时长及已经过的时长。When the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation on the moving rocker, during the duration of the third touch operation, on the A corner progress indicator is displayed on the graphical user interface, wherein the corner progress indicator is used to represent the preset time period and the elapsed time period that the virtual character needs to wait for switching from the first surface to the second surface.
  3. 根据权利要求2所述的控制方法,其中,所述控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏之前,还包括:The control method according to claim 2, wherein before controlling the virtual character to switch from the first surface of the virtual bunker to the rear of the second surface of the virtual bunker to crouch, it further includes:
    确定所述第三触控操作作用时长达到预设时长。It is determined that the third touch operation duration reaches a preset duration.
  4. 根据权利要求3所述的控制方法,其中,所述方法还包括:The control method according to claim 3, wherein the method further includes:
    当确定所述第三触控操作作用时长达到预设时长时,所述转角进度标识呈现为积满状态。When it is determined that the duration of the third touch operation reaches the preset duration, the corner progress indicator appears in a full state.
  5. 根据权利要求2所述的控制方法,其中,所述转角进度标识为带有箭头的曲线条,所述带有箭头的曲线条用于指示所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方的移动轨迹。The control method according to claim 2, wherein the corner progress indicator is a curved bar with an arrow, and the curved bar with an arrow is used to indicate that the virtual character switches from the first surface of the virtual bunker. Movement trajectory to the rear of the second surface of the virtual bunker.
  6. 根据权利要求2所述的控制方法,其中,所述方法还包括: The control method according to claim 2, wherein the method further includes:
    在所述第三触控操作的作用时长达到所述预设时长前,响应所述第三触控操作的结束,隐藏所述转角进度标识。Before the effect duration of the third touch operation reaches the preset duration, the corner progress indicator is hidden in response to the end of the third touch operation.
  7. 根据权利要求1所述的控制方法,其中,所述目标方向为与所述第一表面平行的方向。The control method according to claim 1, wherein the target direction is a direction parallel to the first surface.
  8. 根据权利要求1所述的控制方法,其中,所述第二触控操作为滑动操作,所述第三触控操作为长按操作,且所述第三触控操作与所述第二触控操作为连续操作。The control method according to claim 1, wherein the second touch operation is a sliding operation, the third touch operation is a long press operation, and the third touch operation is the same as the second touch operation. The operation is continuous.
  9. 根据权利要求1所述的控制方法,其中,所述第二触控操作和第三触控操作均为滑动操作。The control method according to claim 1, wherein the second touch operation and the third touch operation are both sliding operations.
  10. 根据权利要求1所述的控制方法,其中,所述控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏,包括:The control method according to claim 1, wherein the controlling the virtual character to switch from the first surface of the virtual bunker to crouch behind the second surface of the virtual bunker includes:
    控制所述虚拟角色以蹲伏姿态从所述虚拟掩体的第一表面的后方切换至所述虚拟掩体的第二表面的后方。The virtual character is controlled to switch from behind the first surface of the virtual bunker to behind the second surface of the virtual bunker in a crouching posture.
  11. 根据权利要求1所述的控制方法,其中,所述方法还包括:The control method according to claim 1, wherein the method further includes:
    当所述虚拟角色处于蹲伏姿态时,响应针对所述蹲伏控件的触控操作,控制所述虚拟角色从所述蹲伏姿态切换至站立姿态。When the virtual character is in a crouching posture, the virtual character is controlled to switch from the crouching posture to a standing posture in response to a touch operation on the crouching control.
  12. 根据权利要求1所述的控制方法,其中,所述方法还包括:The control method according to claim 1, wherein the method further includes:
    当所述虚拟角色处于站立姿态时,响应针对所述移动摇杆的滑动操作,控制所述虚拟角色在所述虚拟场景中进行移动;When the virtual character is in a standing posture, control the virtual character to move in the virtual scene in response to the sliding operation of the mobile joystick;
    当所述虚拟角色与所述虚拟掩体的位置满足预设位置关系时,显示所述蹲伏控件。When the positions of the virtual character and the virtual bunker satisfy a preset position relationship, the crouching control is displayed.
  13. 一种虚拟角色的控制装置,其特征在于,通过终端设备提供图形用户界面,所述图形用户界面包括至少部分虚拟场景、移动摇杆和蹲伏控件,以及位于所述虚拟场景中的虚拟角色和虚拟掩体,包括:A control device for a virtual character, characterized by providing a graphical user interface through a terminal device, the graphical user interface including at least part of a virtual scene, a moving rocker and a crouching control, as well as a virtual character located in the virtual scene and Virtual bunkers including:
    第一控制模块,用于响应针对所述蹲伏控件的第一触控操作,控制所述虚拟角色蹲伏于所述虚拟掩体第一表面的后方;A first control module configured to control the virtual character to crouch behind the first surface of the virtual bunker in response to a first touch operation on the crouch control;
    第二控制模块,用于响应针对所述移动摇杆朝目标方向的第二触控操作,控制所述虚拟角色在所述第一表面的后方朝所述目标方向进行移动; a second control module, configured to respond to a second touch operation of the moving joystick in the target direction and control the virtual character to move behind the first surface in the target direction;
    第三控制模块,用于当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对所述移动摇杆的第三触控操作,控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏,其中,所述第一表面与所述第二表面相邻。A third control module configured to, when the virtual character moves in the target direction to the boundary position of the first surface, in response to a third touch operation on the moving rocker, control the virtual character to move from the The first surface of the virtual bunker is switched to the rear of the second surface of the virtual bunker to crouch, wherein the first surface is adjacent to the second surface.
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有多条指令,所述指令适于处理器进行加载,以执行如下步骤:A computer-readable storage medium, characterized in that the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for loading by a processor to perform the following steps:
    响应针对蹲伏控件的第一触控操作,控制虚拟角色蹲伏于虚拟掩体第一表面的后方;In response to the first touch operation on the crouch control, control the virtual character to crouch behind the first surface of the virtual bunker;
    响应针对移动摇杆朝目标方向的第二触控操作,控制所述虚拟角色在所述第一表面的后方朝所述目标方向进行移动;In response to a second touch operation for moving the rocker toward the target direction, controlling the virtual character to move behind the first surface toward the target direction;
    当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对所述移动摇杆的第三触控操作,控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏,其中,所述第一表面与所述第二表面相邻。When the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation of the moving joystick, the virtual character is controlled to move from the first surface of the virtual bunker Switch to crouch behind a second surface of the virtual bunker, wherein the first surface is adjacent to the second surface.
  15. 根据权利要求14所述的计算机可读存储介质,其中,所述方法还包括:The computer-readable storage medium of claim 14, wherein the method further includes:
    当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对所述移动摇杆的第三触控操作,在所述第三触控操作持续期间,在所述图形用户界面上显示转角进度标识,其中,所述转角进度标识用于表征所述虚拟角色从所述第一表面切换至所述第二表面后方需等待的预设时长及已经过的时长。When the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation on the moving rocker, during the duration of the third touch operation, on the A corner progress indicator is displayed on the graphical user interface, wherein the corner progress indicator is used to represent the preset time period and the elapsed time period that the virtual character needs to wait for switching from the first surface to the second surface.
  16. 根据权利要求15所述的计算机可读存储介质,其中,所述控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏之前,还包括:The computer-readable storage medium according to claim 15, wherein before controlling the virtual character to switch from the first surface of the virtual bunker to the rear of the second surface of the virtual bunker to crouch, the method further includes: :
    确定所述第三触控操作作用时长达到预设时长。It is determined that the third touch operation duration reaches a preset duration.
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述方法还包括:The computer-readable storage medium of claim 16, wherein the method further includes:
    当确定所述第三触控操作作用时长达到预设时长时,所述转角进度标识呈现为积满状态。 When it is determined that the duration of the third touch operation reaches the preset duration, the corner progress indicator appears in a full state.
  18. 根据权利要求15所述的计算机可读存储介质,其中,所述转角进度标识为带有箭头的曲线条,所述带有箭头的曲线条用于指示所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方的移动轨迹。The computer-readable storage medium according to claim 15, wherein the corner progress indicator is a curved bar with an arrow, and the curved bar with an arrow is used to indicate that the virtual character moves from the first to the virtual bunker. A surface is switched to a movement trajectory behind the second surface of the virtual bunker.
  19. 根据权利要求15所述的计算机可读存储介质,其中,所述方法还包括:The computer-readable storage medium of claim 15, wherein the method further includes:
    在所述第三触控操作的作用时长达到所述预设时长前,响应所述第三触控操作的结束,隐藏所述转角进度标识。Before the effect duration of the third touch operation reaches the preset duration, the corner progress indicator is hidden in response to the end of the third touch operation.
  20. 一种终端设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现如下步骤:A terminal device includes a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the program:
    响应针对蹲伏控件的第一触控操作,控制虚拟角色蹲伏于虚拟掩体第一表面的后方;In response to the first touch operation on the crouch control, control the virtual character to crouch behind the first surface of the virtual bunker;
    响应针对移动摇杆朝目标方向的第二触控操作,控制所述虚拟角色在所述第一表面的后方朝所述目标方向进行移动;In response to a second touch operation for moving the rocker toward the target direction, controlling the virtual character to move behind the first surface toward the target direction;
    当所述虚拟角色朝所述目标方向移动至所述第一表面的边界位置时,响应针对所述移动摇杆的第三触控操作,控制所述虚拟角色从所述虚拟掩体的第一表面切换至所述虚拟掩体的第二表面的后方进行蹲伏,其中,所述第一表面与所述第二表面相邻。 When the virtual character moves in the target direction to the boundary position of the first surface, in response to the third touch operation of the moving joystick, the virtual character is controlled to move from the first surface of the virtual bunker Switch to crouch behind a second surface of the virtual bunker, wherein the first surface is adjacent to the second surface.
PCT/CN2023/079125 2022-09-08 2023-03-01 Control method and apparatus for virtual character, and storage medium and terminal device WO2024051116A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211097766.7A CN115999153A (en) 2022-09-08 2022-09-08 Virtual character control method and device, storage medium and terminal equipment
CN202211097766.7 2022-09-08

Publications (1)

Publication Number Publication Date
WO2024051116A1 true WO2024051116A1 (en) 2024-03-14

Family

ID=86018013

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/079125 WO2024051116A1 (en) 2022-09-08 2023-03-01 Control method and apparatus for virtual character, and storage medium and terminal device

Country Status (2)

Country Link
CN (1) CN115999153A (en)
WO (1) WO2024051116A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115999153A (en) * 2022-09-08 2023-04-25 网易(杭州)网络有限公司 Virtual character control method and device, storage medium and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100009734A1 (en) * 2006-10-13 2010-01-14 Kazutomo Sambongi Electronic play device, control method for electronic play device and game program
CN114225416A (en) * 2021-12-16 2022-03-25 网易(杭州)网络有限公司 Game control method and device
CN114404986A (en) * 2022-01-20 2022-04-29 网易(杭州)网络有限公司 Method and device for controlling player character, electronic device and storage medium
CN115999153A (en) * 2022-09-08 2023-04-25 网易(杭州)网络有限公司 Virtual character control method and device, storage medium and terminal equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100009734A1 (en) * 2006-10-13 2010-01-14 Kazutomo Sambongi Electronic play device, control method for electronic play device and game program
CN114225416A (en) * 2021-12-16 2022-03-25 网易(杭州)网络有限公司 Game control method and device
CN114404986A (en) * 2022-01-20 2022-04-29 网易(杭州)网络有限公司 Method and device for controlling player character, electronic device and storage medium
CN115999153A (en) * 2022-09-08 2023-04-25 网易(杭州)网络有限公司 Virtual character control method and device, storage medium and terminal equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
QINGFENGBAOBAO: "(GAME FOR PEACE) What is Bdily Movement?", BILIBILI, 10 August 2019 (2019-08-10), XP093147486, Retrieved from the Internet <URL:https://www.bilibili.com/video/BV1E4411X7yM/?spm_id_from=333.880.my_history.page.click&vd_source=d89ec58035d64af8e2c99ea27b596627> [retrieved on 20240403] *
W-TEACHER COMMENTARY: "[NEW STATE] Always Remember the Importance of Cover!", BILIBILI, 25 May 2022 (2022-05-25), pages 1 - 3, XP093147488, Retrieved from the Internet <URL:https://www.bilibili.com/video/BV1pY4y1G73G/?spm_id_from=333.880.my_history.page.click&vd_source=d89ec58035d64af8e2c99ea27b596627> [retrieved on 20240403] *

Also Published As

Publication number Publication date
CN115999153A (en) 2023-04-25

Similar Documents

Publication Publication Date Title
CN113101652A (en) Information display method and device, computer equipment and storage medium
CN113426124A (en) Display control method and device in game, storage medium and computer equipment
CN113082688A (en) Method and device for controlling virtual character in game, storage medium and equipment
CN114522423A (en) Virtual object control method and device, storage medium and computer equipment
WO2024051116A1 (en) Control method and apparatus for virtual character, and storage medium and terminal device
CN115040873A (en) Game grouping processing method and device, computer equipment and storage medium
CN115193049A (en) Virtual role control method, device, storage medium and computer equipment
WO2024045528A1 (en) Game control method and apparatus, and computer device and storage medium
WO2024011894A1 (en) Virtual-object control method and apparatus, and storage medium and computer device
CN113398566A (en) Game display control method and device, storage medium and computer equipment
WO2024031942A1 (en) Game prop control method and apparatus, computer device and storage medium
CN115501581A (en) Game control method and device, computer equipment and storage medium
CN114225412A (en) Information processing method, information processing device, computer equipment and storage medium
CN112245914B (en) Viewing angle adjusting method and device, storage medium and computer equipment
CN113867873A (en) Page display method and device, computer equipment and storage medium
CN114522429A (en) Virtual object control method and device, storage medium and computer equipment
CN113350801A (en) Model processing method and device, storage medium and computer equipment
CN113413600A (en) Information processing method, information processing device, computer equipment and storage medium
WO2024087786A1 (en) Game element display method and apparatus, computer device, and storage medium
CN115317893A (en) Virtual resource processing method and device, computer equipment and storage medium
CN115518375A (en) Game word skipping display method and device, computer equipment and storage medium
CN113398590B (en) Sound processing method, device, computer equipment and storage medium
CN115212567A (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN113398564A (en) Virtual role control method, device, storage medium and computer equipment
CN115193062A (en) Game control method, device, storage medium and computer equipment