WO2021218460A1 - 虚拟对象的控制方法、装置、终端及存储介质 - Google Patents

虚拟对象的控制方法、装置、终端及存储介质 Download PDF

Info

Publication number
WO2021218460A1
WO2021218460A1 PCT/CN2021/080852 CN2021080852W WO2021218460A1 WO 2021218460 A1 WO2021218460 A1 WO 2021218460A1 CN 2021080852 W CN2021080852 W CN 2021080852W WO 2021218460 A1 WO2021218460 A1 WO 2021218460A1
Authority
WO
WIPO (PCT)
Prior art keywords
displacement
operation signal
virtual object
control
direction corresponding
Prior art date
Application number
PCT/CN2021/080852
Other languages
English (en)
French (fr)
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 腾讯科技(深圳)有限公司
Priority to KR1020217038156A priority Critical patent/KR20210153131A/ko
Priority to SG11202112156VA priority patent/SG11202112156VA/en
Priority to JP2021564715A priority patent/JP2022534661A/ja
Publication of WO2021218460A1 publication Critical patent/WO2021218460A1/zh
Priority to US17/554,556 priority patent/US20220105432A1/en

Links

Images

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/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
    • 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/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • A63F13/2145Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads the surface being also a display device, e.g. touch screens
    • 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/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/218Input arrangements for video game devices characterised by their sensors, purposes or types using pressure sensors, e.g. generating a signal proportional to the pressure applied by the player
    • 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/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • 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/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
    • A63F13/426Processing 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 involving on-screen location information, e.g. screen coordinates of an area at which the player is aiming with a light gun
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • 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
    • A63F13/58Controlling game characters or game objects based on the game progress by computing conditions of game characters, e.g. stamina, strength, motivation or energy level
    • 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
    • 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/90Constructional details or arrangements of video game devices not provided for in groups A63F13/20 or A63F13/25, e.g. housing, wiring, connections or cabinets
    • A63F13/92Video game devices specially adapted to be hand-held while playing
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1056Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals involving pressure sensitive buttons
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1068Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted to detect the point of contact of the player on a surface, e.g. floor mat, touch pad
    • A63F2300/1075Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted to detect the point of contact of the player on a surface, e.g. floor mat, touch pad using a touch screen
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/807Role playing or strategy games

Definitions

  • the embodiments of the present application relate to the technical field of application development, and in particular to a method, device, terminal, and storage medium for controlling virtual objects.
  • the user when it is necessary to control the virtual object to perform a multi-stage displacement operation, the user can perform the operation after the virtual object performs a displacement operation, and control the virtual object to perform the next displacement operation.
  • the method in the above-mentioned related technology will cause the user to control the virtual object to perform multi-stage displacement, which requires interval operation control, resulting in low efficiency of the virtual object in performing the displacement operation, and poor computer interaction effect.
  • the embodiments of the present application provide a method, a device, a terminal, and a storage medium for controlling a virtual object, which can improve the efficiency of a displacement operation performed by the virtual object, thereby improving the interactive effect of the computer.
  • the technical solution is as follows:
  • an embodiment of the present application provides a method for controlling a virtual object, the method is executed by a terminal, and the method includes:
  • Displaying a user interface the user interface including a virtual object and a displacement control; the displacement control is used to control the virtual object to release displacement skills;
  • an embodiment of the present application provides a virtual object control device, the device is applied to a terminal, and the device includes:
  • An interface display module for displaying a user interface, the user interface including a virtual object and a displacement control; the displacement control is used to control the virtual object to release displacement skills;
  • a signal receiving module for receiving a first operation signal corresponding to the displacement control
  • An operation execution module configured to control the virtual object to perform a first displacement operation based on the first operation signal
  • the operation execution module is further configured to be based on the first displacement operation.
  • a second operation signal which controls the virtual object to perform a second displacement operation after the execution of the first displacement operation is completed.
  • the operation execution module includes:
  • a direction determining sub-module configured to determine the displacement direction corresponding to the second operation signal in response to receiving a second operation signal corresponding to the displacement control during the process of the virtual object performing the first displacement operation ;
  • a direction buffering sub-module for buffering the displacement direction corresponding to the second operation signal
  • the operation execution sub-module is configured to control the virtual object to perform a second displacement operation after the execution of the first displacement operation is completed based on the displacement direction corresponding to the second operation signal.
  • the direction determining submodule is configured to respond to the second operation signal being a sliding operation signal corresponding to the displacement control, and determine according to the sliding direction of the second operation signal The displacement direction corresponding to the second operation signal;
  • the target operation signal corresponding to the movement control control is not received, and the default direction is determined Is the displacement direction corresponding to the second operation signal, and the default direction refers to the orientation of the virtual object when the virtual character performs the first displacement operation.
  • the direction buffering submodule is further configured to delete the displacement direction corresponding to the second operation signal in response to the buffering duration of the displacement direction corresponding to the second operation signal reaching a set duration. Or, in response to the displacement direction corresponding to the second operation signal being used, the displacement direction corresponding to the second operation signal is deleted.
  • a third operation signal corresponding to the displacement control is received, and the direction is The determining sub-module is also used to determine the displacement direction corresponding to the third operation signal;
  • the direction buffer sub-module is also used to delete the buffered displacement direction corresponding to the second operation signal, and buffer the displacement direction corresponding to the third operation signal.
  • the device further includes:
  • the condition detection module is configured to detect whether the virtual object satisfies the condition for performing the second displacement operation after the execution of the first displacement operation is completed; wherein, the condition includes at least one of the following: the second operation The displacement direction corresponding to the signal is a movable direction, the virtual object is in a displaceable state, and the value of the virtual resource owned by the virtual object is greater than or equal to the resource threshold corresponding to the second displacement operation;
  • the operation execution module is configured to respond to the virtual object satisfying the condition and receive a second operation signal corresponding to the displacement control during the process in which the virtual object performs the first displacement operation, Based on the second operation signal, after the execution of the first displacement operation is completed, the virtual object is controlled to perform the second displacement operation.
  • an embodiment of the present application provides a terminal.
  • the terminal includes a processor and a memory.
  • the memory stores at least one instruction, at least one program, code set, or instruction set.
  • the at least one program, the code set or the instruction set is loaded and executed by the processor to realize the control method of the virtual object.
  • an embodiment of the present application provides a computer-readable storage medium, and at least one computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the virtual object described above. Control Method.
  • inventions of the present application provide a computer program product or computer program.
  • the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the virtual object control method in the various optional implementation manners described above.
  • the second displacement operation determines the second displacement operation by using the time during which the virtual object performs the first displacement operation, which saves the interval between the first displacement operation and the second displacement operation Time enables a seamless connection between the first displacement operation and the second displacement operation, improves the efficiency of the virtual object in performing the displacement operation, and further improves the interactive effect of the computer.
  • FIG. 1 is a flowchart of a method for controlling virtual objects provided by an embodiment of the present application
  • FIG. 2 is a flowchart of a method for controlling virtual objects provided by another embodiment of the present application.
  • FIGS. 3 to 6 are schematic diagrams of user interfaces involved in embodiments of the present application.
  • FIG. 7 is a schematic diagram of a displacement operation provided by an embodiment of the present application.
  • FIG. 8 is a flowchart of a method for controlling a virtual object provided by another embodiment of the present application.
  • FIG. 9 is a flowchart of a method for controlling a virtual object provided by another embodiment of the present application.
  • Fig. 10 is a block diagram of a virtual object control device provided by an embodiment of the present application.
  • FIG. 11 is a block diagram of a terminal provided by an embodiment of the present application.
  • the embodiment of the present application provides a terminal, which is an electronic device with data calculation, processing, and storage capabilities, and a target application program runs in the terminal.
  • the terminal may be a smart phone, a tablet computer, a PC (Personal Computer, personal computer), a wearable device, and the like.
  • the terminal is a mobile terminal device with a touch display screen, and the user can realize human-computer interaction through the touch display screen.
  • the target application may be a game application, such as a MOBA game application.
  • the MOBA game application is a game application in which users of two teams compete between teams.
  • MOBA game applications it can also be shooting game applications, multiplayer gun battle survival game applications, battle royale survival game applications, LBS (Location Based Service, location-based service) games Application programs and other types of game applications, which are not limited in the embodiment of this application.
  • MOBA game applications it can also be shooting game applications, multiplayer gun battle survival game applications, battle royale survival game applications, LBS (Location Based Service, location-based service) games Application programs and other types of game applications, which are not limited in the embodiment of this application.
  • the target application can also be other applications besides game applications, such as social applications, payment applications, video applications, music applications, shopping applications, news applications, etc.
  • the application program that provides the displacement control function of the virtual object is not limited in the embodiment of the present application.
  • the subject of executing each step may be the terminal.
  • the terminal may be a client running the above-mentioned target application.
  • FIG. 1 shows a flowchart of a method for controlling virtual objects provided by an embodiment of the present application.
  • the control method of the virtual object can be executed by the terminal.
  • the method can include the following steps (110-140):
  • Step 110 Display the user interface.
  • the user interface may include virtual objects and displacement controls.
  • the user interface can be an interface in the target application.
  • the user interface can be displayed on the display panel of the terminal running the target application, or the user interface can also be displayed on other display panels through the projection screen of the terminal running the target application, or the user interface can also be displayed by projection Display, or the user interface may also be displayed through VR (Virtual Reality), AR (Augmented Reality, augmented reality) and other technologies, and the display mode of the user interface in the embodiment of the present application is not limited.
  • the user interface includes a first view layer and a second view layer.
  • the view layer is a layer used to display the contents of the user interface.
  • the display level of the first view layer is higher than the display level of the second view layer, that is, the first view layer is located above the second view layer.
  • the first view layer can be used to display operation controls for users to perform human-computer interaction
  • the second view layer can be used to display virtual environment pictures. Since the display level of the first view layer is higher than the display level of the second view layer, the operation controls are displayed on the upper layer of the virtual environment screen, which ensures that the operation controls respond in time to the user's touch operation.
  • the first view layer is located on the upper layer of the second view layer, it may not block the display of the content in the second view layer. For example, part or all of the operation controls in the first view layer can be set in a semi-transparent state. To display.
  • the virtual object refers to the virtual role controlled by the user account in the application.
  • a virtual object refers to a game character controlled by a user account in the game application.
  • the virtual object may be in the form of a character, an animal, a cartoon, or other forms, and the embodiment of the present application does not limit the form of the virtual object.
  • the virtual object can be displayed in a three-dimensional form or in a two-dimensional form.
  • the embodiment of the present application does not limit the display form of the virtual object.
  • the displacement control may be a virtual control used to control the virtual object to perform displacement operations.
  • the displacement control is a displacement skill control
  • the displacement skill control refers to a control used to control the virtual object to release the displacement skill.
  • the virtual object may have at least one skill, such as displacement skill, attack skill, treatment skill, etc.
  • the user can trigger the displacement skill of the virtual object through the displacement skill control, so that the virtual object performs a corresponding displacement operation.
  • the displacement control may be a button or a virtual joystick. The embodiment of the present application does not limit the implementation of the displacement control.
  • a virtual environment screen may also be displayed in the user interface, and the virtual environment screen is used to display the virtual environment of the target application.
  • a virtual environment is a scene displayed (or provided) when the client of a target application (such as a game application) runs on a terminal.
  • the virtual environment refers to a scene created for virtual objects to perform activities (such as game competition), such as Virtual roads, virtual buildings (such as towers, walls, etc.), virtual maps, etc.
  • the virtual environment may be a simulation environment of the real world, a semi-simulation and semi-fictional environment, or a purely fictitious environment.
  • the virtual environment may be a two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment.
  • the embodiment of the present application does not limit the form of the virtual environment.
  • the virtual object in which the virtual object is located is a three-dimensional virtual environment
  • the virtual object may be a three-dimensional model created based on three-dimensional technology.
  • the virtual object has its own shape and volume in the three-dimensional virtual environment, and occupies a part of the space in the three-dimensional virtual environment.
  • Step 120 Receive a first operation signal corresponding to the displacement control.
  • the client can receive the first operation signal that the user acts on the displacement control.
  • the first operation signal may be a click operation signal, a sliding operation signal, or a long press operation signal, which is not limited in the embodiment of the present application.
  • Step 130 Control the virtual object to perform a first displacement operation based on the first operation signal.
  • the client terminal may determine the first displacement operation of the virtual object according to the first operation signal.
  • the first operation signal is used to determine the displacement direction and displacement distance of the first displacement operation; the virtual object is controlled to perform the first displacement operation according to the displacement direction and displacement distance of the first displacement operation.
  • the first operation signal is used to determine the displacement direction of the first displacement operation; the virtual object is controlled to perform the first displacement operation according to the displacement direction of the first displacement operation, where the displacement distance of the first displacement operation may be The preset fixed value.
  • the client receives a stop signal corresponding to the first displacement operation, or the operation time corresponding to the first displacement operation ends, the virtual object is controlled to stop performing the first displacement operation, that is, the first displacement operation is completed.
  • a movement control control is displayed in the user interface, and the movement operation performed by controlling the virtual object through the movement control control is called a regular movement operation.
  • the average displacement speed of the virtual object when performing a displacement operation is greater than the moving speed of the virtual object when performing a regular movement operation.
  • the displacement operation belongs to the skill type operation of the virtual object.
  • the first displacement operation is a uniform displacement
  • the displacement speed of the first displacement operation may be a specified multiple of the normal moving speed.
  • the specified multiple may be 1.2 times, 1.3 times, 1.5 times, 1.8 times, 2 times, 2.5 times, 3 times, etc.
  • the specific value of the displacement speed of the first displacement operation that is, the value of the designated multiple can be set by relevant technicians or users according to the actual situation, and the embodiment of the application does not limit this .
  • the first displacement operation is a variable speed displacement.
  • the first displacement operation may be to accelerate the displacement first, and then the displacement at a constant speed; or, accelerate the displacement first, and then decelerate the displacement; or, accelerate the displacement first, then move at a constant speed, and then decelerate the displacement.
  • the acceleration displacement may be a uniform acceleration displacement
  • the deceleration displacement may be a uniform deceleration displacement.
  • Step 140 In response to receiving a second operation signal corresponding to the displacement control during the process of the virtual object performing the first displacement operation, based on the second operation signal, after the execution of the first displacement operation is completed, control the virtual object to execute The second displacement operation.
  • the client terminal may receive the second operation signal that the user acts on the displacement control.
  • the second operation signal may be a click operation signal, a sliding operation signal, or a long press operation signal, which is not limited in the embodiment of the present application.
  • the client can control the virtual object to perform the second displacement operation according to the second operation signal.
  • the start position of the second displacement operation may be the end position of the first displacement operation.
  • controlling the virtual object to perform the second displacement operation refer to the related content of controlling the virtual object to perform the first displacement operation in step 130, which will not be repeated here.
  • the technical solution provided by the embodiments of the present application determines that the second displacement operation of the virtual object after the first displacement operation is completed is determined when the virtual object performs the first displacement operation. After one displacement operation is performed, it takes time to determine the next second displacement operation.
  • the technical solution provided by the embodiment of the present application determines the second displacement operation by using the time in the process of performing the first displacement operation by the virtual object, which saves The interval time between the execution of the first displacement operation and the second displacement operation enables a seamless connection between the first displacement operation and the second displacement operation, improves the efficiency of the virtual object performing the displacement operation, and thereby improves the computer interaction Effect.
  • FIG. 2 shows a flowchart of a method for controlling a virtual object provided by another embodiment of the present application.
  • This method can be executed by the terminal.
  • the terminal in response to receiving the second operation signal corresponding to the displacement control during the first displacement operation of the virtual object (that is, the above step 140), in the first displacement operation After the execution is completed, controlling the virtual object to perform the second displacement operation also includes the following steps (142-146):
  • Step 142 Determine the displacement direction corresponding to the second operation signal.
  • the client can determine the corresponding displacement direction.
  • the displacement direction corresponding to the second operation signal is used to control the virtual object to perform the second displacement operation.
  • the displacement direction 34 corresponding to the second operation signal is determined according to the sliding direction 33 of the second operation signal. . That is, if only the sliding operation signal 32 corresponding to the displacement control 31 is received, the second operation signal is the sliding operation signal 32 corresponding to the displacement control 31; if the sliding operation signal 32 corresponding to the displacement control 31 is received at the same time , And the target operation signal 36 corresponding to the movement control 35, the second operation signal is still the sliding operation signal 32 corresponding to the displacement control 31.
  • the response to the second operation signal is a click operation signal 41 corresponding to the displacement control 31, and when the second operation signal is received, a target corresponding to the movement control control 35 is also received.
  • the operation signal 44 according to the direction information 42 of the target operation signal 44, it is determined that the displacement direction 43 corresponding to the second operation signal is the direction corresponding to the direction information 42 of the target operation signal 44.
  • the target operation signal may be a sliding operation signal for the mobile control control 35.
  • the target operation signal may also be a click operation signal for the movement control control 35, and the displacement direction can be determined according to the click position of the click operation signal.
  • the displacement direction is determined based on the relative positional relationship between the click position and the center of the movement control control 35.
  • option controls that provide several directions (such as 4 directions, 8 directions, 16 directions, etc.), and by triggering the target direction option control, Determine the direction corresponding to the target direction option control as the displacement direction.
  • the direction option control can be an arrow indicating the corresponding direction, or a button displayed in the corresponding direction.
  • the response to the second operation signal is a click operation signal 41 corresponding to the displacement control 31, and when the second operation signal is received, the target corresponding to the movement control control 35 is not received.
  • the default direction is determined as the displacement direction 54 corresponding to the second operation signal.
  • the default direction refers to the orientation of the virtual object when the virtual object 51 performs the first displacement operation.
  • the virtual object 51 is performing the first displacement operation
  • its orientation is the displacement direction 52 corresponding to the first displacement operation.
  • the displacement direction corresponding to the second displacement operation may be the orientation of the virtual object when the second operation signal is received, or it may be the first displacement The orientation of the virtual object when the operation is completed.
  • the displacement direction corresponding to the second displacement operation as the orientation of the virtual object when the first displacement operation is completed as an example, as shown in FIG. 6, during the execution of the first displacement operation, the virtual object 61 The direction of the virtual object is transformed from the displacement direction 62 corresponding to the first displacement operation to the displacement direction 64.
  • the second displacement operation is performed, the virtual object is controlled to release the displacement skills along the displacement direction 64; wherein the virtual object is facing in the first displacement operation.
  • the change may be caused by the user's touch operation on the mobile control control 35 in the first displacement operation.
  • Step 144 Buffer the displacement direction corresponding to the second operation signal.
  • the displacement direction corresponding to the second operation signal may be cached in the local storage unit of the terminal for use in the following steps.
  • the client may receive multiple operation signals based on the displacement control during the process of the virtual object performing the first displacement operation, and the client may respectively buffer the displacement direction corresponding to each operation signal in the buffer queue. For example, when a new operation signal is received, the client replaces the original buffer displacement direction in the buffer queue with the displacement direction corresponding to the new operation signal, so that the displacement direction in the buffer queue remains the displacement direction corresponding to the latest operation signal .
  • the client sequentially buffers the displacement directions corresponding to each operation signal in the buffer queue, and after the last displacement operation is performed, the displacement direction in the frontmost position of the queue in the buffer queue , To obtain the displacement direction when the client controls the virtual object to perform the next displacement operation.
  • the displacement direction corresponding to the second operation signal is buffered, in response to the buffering duration of the displacement direction corresponding to the second operation signal reaching the set duration, the displacement direction corresponding to the second operation signal is deleted; or, in response to The displacement direction corresponding to the second operation signal is used, and the displacement direction corresponding to the second operation signal is deleted.
  • the client presets a corresponding set duration.
  • the buffering time length refers to the length of time that the displacement direction corresponding to the second operation signal has been buffered
  • the set time length refers to the maximum time length that the displacement direction corresponding to the second operation signal is allowed to be buffered.
  • the set duration may be equal to the duration corresponding to the first bit operation, or may be less than the duration corresponding to the first bit operation.
  • the set duration can be the designated proportion of the duration corresponding to the first digit operation.
  • the designated proportion can be 80%, 60%, 50%, 30%, etc.
  • the specified proportional relationship between the set duration and the duration corresponding to the first operation can be set by relevant technicians or users according to actual conditions, which is not limited in the embodiment of the present application.
  • Step 146 Based on the displacement direction corresponding to the second operation signal, after the execution of the first displacement operation is completed, control the virtual object to perform the second displacement operation.
  • the second operation signal as an example of an operation signal generated based on the latest displacement operation received by the client when the virtual object performs the first displacement operation, as shown in FIG. 7, in the time period 71, based on the user's first operation , Generate the first operation signal; in the time period 72, the client receives the first operation signal; in the time period 73, the virtual object performs the first displacement operation according to the first operation signal; the time period 73 includes sub-time periods 74, 75 and 76. In the sub-time period 74, a second operation signal is generated based on the user's second operation. In the time period 75, the client receives the second operation signal.
  • the client In the time period 76, if the client does not receive the displacement from the virtual object For operation related operation signals, the client maintains the second operation signal; if the client receives an operation signal related to the displacement operation of the virtual object in the time period 76, the client updates the second operation signal; After the operation signal performs the first displacement operation, in the time period 77, the virtual object performs the second displacement operation according to the second operation signal.
  • the virtual object can immediately perform the second displacement operation according to the second operation signal, so that the time period 73 corresponding to the first displacement operation and the time period 77 corresponding to the second displacement operation are different. There is no interval time, thereby improving the operation efficiency of controlling the displacement of the virtual object.
  • the method further includes the following steps:
  • the client When the virtual object performs the first displacement operation, after receiving the second operation signal, the client receives the third operation signal corresponding to the displacement control, indicating that the user wants the virtual object to perform the first displacement operation after the first displacement operation is completed.
  • the third displacement operation corresponding to the third operation signal is not performed. Therefore, the corresponding displacement direction can be determined according to the third operation signal, and the displacement direction corresponding to the buffered second operation signal can be replaced with the third displacement operation.
  • the displacement direction corresponding to the operation signal is updated to update the virtual object after the first displacement operation is performed, and the subsequent displacement operation improves the accuracy of controlling the virtual object to perform the displacement operation.
  • a mechanism for determining the displacement direction is provided.
  • the displacement direction of the virtual object is determined based on the direction information corresponding to the displacement control first, which solves the conflict of direction information.
  • the problem when there is only a click operation for the displacement control, the orientation of the virtual object is determined as the displacement direction, which simplifies the user's operation.
  • the method further includes the following steps:
  • the second operation signal corresponding to the displacement control is received, and based on the second operation signal, after the execution of the first displacement operation is completed, the virtual object is controlled to execute the second operation.
  • the condition includes at least one of the following: the displacement direction corresponding to the second operation signal is a movable direction, the virtual object is in a displaceable state, and the virtual object has The value of the virtual resource is greater than or equal to the resource threshold corresponding to the second displacement operation;
  • the virtual object when the virtual object does not satisfy the condition, the virtual object does not perform the second displacement operation.
  • Displacement obstacle elements refer to elements that cannot be passed by virtual objects set in the virtual scene.
  • the displacement obstacle elements can include terrain (such as mountains, high slopes, trenches, cliffs, etc.) that virtual objects cannot pass, and obstacles (such as stones, walls, etc.). Trees, etc.), other virtual objects (such as own virtual objects, enemy virtual objects, virtual objects not controlled by the user, etc.) and barriers released by other virtual objects to restrict the movement of virtual objects.
  • the virtual object is in a movable state, including the virtual object is not restricted to use displacement skills.
  • the displacement skills of the virtual object are restricted, including: the virtual object is using a skill that conflicts with the displacement skill, and the virtual object is restricted by the skills of other virtual objects (such as the skills released by other virtual objects are restricted to the same place or the movement speed slows down) Etc.), the displacement skill of the virtual object is in the cooling time, the virtual object is in the vehicle, the virtual object is in a dead state, and so on.
  • the displacement operation of the virtual object needs to consume virtual resources (such as virtual currency, virtual props, etc.) in the amount of the resource threshold.
  • virtual resources such as virtual currency, virtual props, etc.
  • the virtual object may satisfy the condition for performing the second displacement operation; when the value of the virtual resource owned by the virtual object is less than the required resource threshold, it is determined that the virtual object does not satisfy the condition for performing the second displacement operation.
  • the virtual object by setting the conditions for the second displacement operation of the virtual object, and detecting whether the virtual object meets the conditions for performing the second displacement operation, when the virtual object meets the conditions, the virtual object is controlled to perform the second displacement operation, compared with As long as the user performs the corresponding operation, the virtual object can execute the corresponding control mode of displacement operation, which enriches the method of controlling the virtual object.
  • FIG. 8 shows a flowchart of a virtual object control method provided by another embodiment of the present application. As shown in Figure 8, the method may include the following steps (801-808):
  • Step 801 Obtain a second operation signal
  • Step 802 determine whether the virtual object meets the condition, if yes, go to step 803; if not, go to step 804;
  • Step 803 Control the virtual object to perform a second displacement operation
  • Step 804 Buffer the displacement direction corresponding to the second operation signal
  • Step 805 in response to the completion of the first displacement operation, determine whether there is a buffered displacement direction, if yes, proceed to step 806; if not, proceed to step 805;
  • Step 806 judge whether the virtual object meets the condition, if yes, go to step 807; if not, go back to step 805;
  • Step 807 Control the virtual object to perform the second displacement operation
  • Step 808 Clear the displacement direction corresponding to the buffered second operation signal.
  • FIG. 9 shows a flowchart of a virtual object control method provided by another embodiment of the present application.
  • the method may include the following steps (901-916):
  • Step 901 Determine whether the touch operation of the displacement skill control is received, if yes, execute step 902; if not, then end the step;
  • Step 902 determine whether a touch operation based on the mobile control control is received, if yes, go to step 903; if not, go to step 905;
  • Step 903 Determine the direction information corresponding to the mobile control control
  • Step 904 input the direction information into the buffer
  • Step 905 detect whether the displacement skill control is slid, if yes, go to step 906; if not, go to step 907;
  • Step 906 determine the direction information corresponding to the displacement skill control, and execute step 904;
  • Step 907 Judging the output displacement direction according to the direction information of the input buffer
  • Step 908 perform the first displacement operation
  • Step 909 Determine whether a touch operation based on the displacement skill control is received, if yes, execute step 910; if not, then end the step;
  • Step 910 detect whether the movement control control is slid, if yes, go to step 911; if not, go to step 913;
  • Step 911 Determine direction information corresponding to the mobile control control
  • Step 912 input the direction information into the buffer
  • Step 913 detect whether the displacement skill control is slid, if yes, go to step 914; if not, go to step 915;
  • Step 914 determine the direction information corresponding to the displacement skill control, and execute step 912;
  • Step 915 Determine the output displacement direction according to the direction information of the input buffer
  • step 916 after the execution of the first displacement operation is completed, the second displacement operation is executed according to the output displacement direction, and the step ends.
  • FIG. 10 shows a block diagram of a virtual object control device provided by an embodiment of the present application.
  • the device has the function of realizing the example of the method for controlling the virtual object described above, and the function can be realized by hardware, or by hardware executing corresponding software.
  • the device can be the terminal described above, or it can be set on the terminal.
  • the device 1000 may include: an interface display module 1010, a signal receiving module 1020, and an operation execution module 1030.
  • the interface display module 1010 is configured to display a user interface.
  • the user interface includes a virtual object and a displacement control; the displacement control is used to control the virtual object to release displacement skills.
  • the signal receiving module 1020 is configured to receive a first operation signal corresponding to the displacement control.
  • the operation execution module 1030 is configured to control the virtual object to perform a first displacement operation based on the first operation signal.
  • the operation execution module 1030 is configured to The second operation signal controls the virtual object to perform a second displacement operation after the execution of the first displacement operation is completed.
  • the operation execution module 1030 includes:
  • a direction determining sub-module configured to determine the displacement direction corresponding to the second operation signal in response to receiving a second operation signal corresponding to the displacement control during the process of the virtual object performing the first displacement operation ;
  • a direction buffering sub-module for buffering the displacement direction corresponding to the second operation signal
  • the operation execution sub-module is configured to control the virtual object to perform a second displacement operation after the execution of the first displacement operation is completed based on the displacement direction corresponding to the second operation signal.
  • the direction determining submodule is configured to respond to the second operation signal being a sliding operation signal corresponding to the displacement control, and determine according to the sliding direction of the second operation signal The displacement direction corresponding to the second operation signal;
  • the target operation signal corresponding to the movement control control is not received, and the default direction is determined Is the displacement direction corresponding to the second operation signal, and the default direction refers to the orientation of the virtual object when the virtual character performs the first displacement operation.
  • the direction buffering submodule is further configured to delete the displacement direction corresponding to the second operation signal in response to the buffering duration of the displacement direction corresponding to the second operation signal reaching a set duration. Or, in response to the displacement direction corresponding to the second operation signal being used, the displacement direction corresponding to the second operation signal is deleted.
  • a third operation signal corresponding to the displacement control is received, and the The direction determining sub-module is also used to determine the displacement direction corresponding to the third operation signal;
  • the direction buffer sub-module is also used to delete the buffered displacement direction corresponding to the second operation signal, and buffer the displacement direction corresponding to the third operation signal.
  • the device further includes:
  • the condition detection module is configured to detect whether the virtual object satisfies the condition for performing the second displacement operation after the execution of the first displacement operation is completed; wherein, the condition includes at least one of the following: the second operation The displacement direction corresponding to the signal is a movable direction, the virtual object is in a displaceable state, and the value of the virtual resource owned by the virtual object is greater than or equal to the resource threshold corresponding to the second displacement operation;
  • the operation execution module 1030 is configured to respond to the virtual object satisfying the condition and receive a second operation signal corresponding to the displacement control when the virtual object performs the first displacement operation , Based on the second operation signal, after the execution of the first displacement operation is completed, controlling the virtual object to perform the second displacement operation.
  • the technical solution provided by the embodiments of the present application determines that the second displacement operation of the virtual object after the first displacement operation is completed is determined when the virtual object performs the first displacement operation, compared to the second displacement operation in the first displacement operation. After one displacement operation is completed, it takes time to determine the next second displacement operation.
  • the technical solution provided in the embodiment of the present application determines the second displacement operation by using the time in the process of performing the first displacement operation by the virtual object, which saves The interval time between the first displacement operation and the second displacement operation can be seamlessly connected between the first displacement operation and the second displacement operation, which improves the efficiency of the virtual object performing the displacement operation, thereby improving the interactive effect of the computer .
  • FIG. 11 shows a structural block diagram of a terminal 1100 according to an embodiment of the present application.
  • the terminal 1100 may be an electronic device such as a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia playback device, a wearable device, and a PC.
  • the terminal is used to implement the virtual object control method provided in the foregoing embodiment. Specifically:
  • the terminal 1100 includes a processor 1111 and a memory 1112.
  • the processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on.
  • the processor 1101 can be implemented in at least one hardware form among DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), PLA (Programmable Logic Array, Programmable Logic Array) .
  • the processor 1101 may also include a main processor and a coprocessor.
  • the main processor is a processor used to process data in the awake state, also called a CPU (Central Processing Unit, central processing unit); the coprocessor is A low-power processor used to process data in the standby state.
  • the processor 1101 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing content that needs to be displayed on the display screen.
  • the processor 1101 may further include an AI (Artificial Intelligence) processor, and the AI processor is used to process computing operations related to machine learning.
  • AI Artificial Intelligence
  • the memory 1102 may include one or more computer-readable storage media, which may be non-transitory.
  • the memory 1102 may also include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices.
  • the non-transitory computer-readable storage medium in the memory 1102 is used to store a computer program, and is configured to be executed by one or more processors to implement the above-mentioned control method of the virtual object.
  • the terminal 1100 may optionally further include: a peripheral device interface 1103 and at least one peripheral device.
  • the processor 1101, the memory 1102, and the peripheral device interface 1103 may be connected by a bus or a signal line.
  • Each peripheral device can be connected to the peripheral device interface 1103 through a bus, a signal line, or a circuit board.
  • the peripheral device includes: at least one of a radio frequency circuit 1104, a display screen 1105, a camera component 1106, an audio circuit 1107, a positioning component 1108, and a power supply 1109.
  • FIG. 11 does not constitute a limitation on the terminal 1100, and may include more or fewer components than shown in the figure, or combine certain components, or adopt different component arrangements.
  • a computer-readable storage medium is also provided, and at least one computer program is stored in the computer-readable storage medium.
  • the computer program is loaded and executed by a processor to implement the control method of the virtual object. All or part of the steps.
  • a computer program product or computer program is also provided.
  • the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes all or part of the steps of the virtual object control method provided by the foregoing method embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种虚拟对象的控制方法、装置、终端及存储介质,包括:显示用户界面,用户界面中包括虚拟对象和位移控件;接收对应于位移控件的第一操作信号;基于第一操作信号,控制虚拟对象执行第一位移操作;响应于在虚拟对象执行第一位移操作的过程中,接收到对应于位移控件的第二操作信号,基于第二操作信号,在第一位移操作执行完成后,控制虚拟对象执行第二位移操作。本发明能够提高虚拟对象执行位移操作的效率,提高计算机的交互效果。

Description

虚拟对象的控制方法、装置、终端及存储介质
本申请要求于2020年04月28日提交的、申请号为202010352292.0、发明名称为“虚拟对象的控制方法、装置、终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及应用程序开发技术领域,特别涉及一种虚拟对象的控制方法、装置、终端及存储介质。
背景技术
在MOBA(Multiplayer Online Battle Arena,多人在线战术竞技)游戏中,有时需要控制虚拟对象进行位移,如从一个位置跳跃或瞬移至另一个位置。
在相关技术中,当需要控制虚拟对象执行多段位移操作时,虚拟对象执行完一段位移后,用户才能执行操作,控制虚拟对象执行下一段位移。显然,上述相关技术中的方法会使得用户控制虚拟对象执行多段位移时,需要进行有间隔的操作控制,导致虚拟对象执行位移操作的效率较低,使得计算机的交互效果较差。
发明内容
本申请实施例提供了一种虚拟对象的控制方法、装置、终端及存储介质,可以提高虚拟对象执行位移操作的效率,进而提高计算机的交互效果。所述技术方案如下:
一方面,本申请实施例提供了一种虚拟对象的控制方法,所述方法由终端执行,所述方法包括:
显示用户界面,所述用户界面中包括虚拟对象和位移控件;所述位移控件用以控制所述虚拟对象释放位移技能;
接收对应于所述位移控件的第一操作信号;
响应于所述第一操作信号,控制所述虚拟对象执行第一位移操作;
响应于在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第二操作信号,基于所述第二操作信号,在所述第一位移操作执行完成后,控制所述虚拟对象执行第二位移操作。
另一方面,本申请实施例提供了一种虚拟对象的控制装置,所述装置应用于终端中,所述装置包括:
界面显示模块,用于显示用户界面,所述用户界面中包括虚拟对象和位移控件;所述位移控件用以控制所述虚拟对象释放位移技能;
信号接收模块,用于接收对应于所述位移控件的第一操作信号;
操作执行模块,用于基于所述第一操作信号,控制所述虚拟对象执行第一位移操作;
响应于所述信号接收模块在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第二操作信号,所述操作执行模块,还用于基于所述第二操作信号,在所述第一位移操作执行完成后,控制所述虚拟对象执行第二位移操作。
在一种可能的实现方式中,所述操作执行模块,包括:
方向确定子模块,用于响应于在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第二操作信号,确定所述第二操作信号对应的位移方向;
方向缓存子模块,用于缓存所述第二操作信号对应的位移方向;
操作执行子模块,用于基于所述第二操作信号对应的位移方向,在所述第一位移操作执行完成后,控制所述虚拟对象执行第二位移操作。
在一种可能的实现方式中,所述方向确定子模块,用于响应于所述第二操作信号为对应于所述位移控件的滑动操作信号,根据所述第二操作信号的滑动方向,确定所述第二操作信号对应的位移方向;
响应于所述第二操作信号为对应于所述位移控件的点击操作信号,且在接收所述第二操作信号时,还接收到对应于移动控制控件的目标操作信号,根据所述目标操作信号的方向信息,确定所述第二操作信号对应的位移方向;
响应于所述第二操作信号为对应于所述位移控件的点击操作信号,且在接 收所述第二操作信号时,未接收到对应于所述移动控制控件的目标操作信号,将默认方向确定为所述第二操作信号对应的位移方向,所述默认方向是指所述虚拟角色执行完成所述第一位移操作时,所述虚拟对象的朝向。
在一种可能的实现方式中,所述方向缓存子模块,还用于响应于所述第二操作信号对应的位移方向的缓存时长达到设定时长,删除所述第二操作信号对应的位移方向;或者,响应于所述第二操作信号对应的位移方向被使用,删除所述第二操作信号对应的位移方向。
在一种可能的实现方式中,响应于所述信号接收模块,在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第三操作信号,所述方向确定子模块,还用于确定所述第三操作信号对应的位移方向;
所述方向缓存子模块,还用于将缓存的所述第二操作信号对应的位移方向删除,并缓存所述第三操作信号对应的位移方向。
在一种可能的实现方式中,所述装置,还包括:
条件检测模块,用于在所述第一位移操作执行完成后,检测所述虚拟对象是否满足执行所述第二位移操作的条件;其中,所述条件包括以下至少一项:所述第二操作信号对应的位移方向为可移动方向、所述虚拟对象处于可位移状态、所述虚拟对象拥有的虚拟资源的数值大于或等于所述第二位移操作对应的资源阈值;
所述操作执行模块,用于响应于所述虚拟对象满足所述条件,且在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第二操作信号,基于所述第二操作信号,在所述第一位移操作执行完成后,控制所述虚拟对象执行所述第二位移操作。
再一方面,本申请实施例提供了一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现上述虚拟对象的控制方法。
又一方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条计算机程序,所述计算机程序由处理器加载并执 行,以实现上述虚拟对象的控制方法。
还一方面,本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述各种可选实现方式中的虚拟对象的控制方法。
本申请实施例提供的技术方案可以包括如下有益效果:
通过在虚拟对象执行第一位移操作的过程中,确定控制虚拟对象在第一位移操作执行完成后的第二位移操作,相比于在第一位移操作执行完成后,再花费时间确定接下来的第二位移操作,本申请实施例提供的技术方案,通过利用虚拟对象执行第一位移操作这一过程中的时间确定第二位移操作,节省了第一位移操作和第二位移操作之间的间隔时间,使得第一位移操作和第二位移操作之间可以实现无缝衔接,提高了虚拟对象执行位移操作的效率,进而提高计算机的交互效果。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请一个实施例提供的虚拟对象的控制方法的流程图;
图2是本申请另一个实施例提供的虚拟对象的控制方法的流程图;
图3至图6是本申请实施例涉及的用户界面的示意图;
图7是本申请一个实施例提供的位移操作的示意图;
图8是本申请另一个实施例提供的虚拟对象的控制方法的流程图;
图9是本申请另一个实施例提供的虚拟对象的控制方法的流程图;
图10是本申请一个实施例提供的虚拟对象的控制装置的框图;
图11是本申请一个实施例提供的终端的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的方法的例子。
本申请实施例提供了一种终端,该终端是具备数据计算、处理和存储能力的电子设备,该终端中运行有目标应用程序。该终端可以是智能手机、平板电脑、PC(Personal Computer,个人计算机)、可穿戴设备等。可选地,该终端是具备触摸显示屏的移动终端设备,用户能够通过该触摸显示屏实现人机交互。该目标应用程序可以是游戏应用程序,如MOBA类游戏应用程序。MOBA类游戏应用程序是两个队伍的用户进行队伍与队伍之间的竞争的游戏应用程序。当然,除了MOBA类游戏应用程序之外,还可以是射击类游戏应用程序、多人枪战类生存游戏应用程序、大逃杀生存类游戏应用程序、LBS(Location Based Service,基于位置服务)类游戏应用程序等其他类型的游戏应用程序,本申请实施例对此不作限定。
当然,在一些其他示例中,目标应用程序也可以是除游戏应用程序之外的其他应用程序,如社交应用程序、支付应用程序、视频应用程序、音乐应用程序、购物应用程序、新闻应用程序等提供有虚拟对象的位移控制功能的应用程序,本申请实施例对此不作限定。
本申请实施例提供的方法,各步骤的执行主体可以是该终端,比如,该终端可以是运行有上述目标应用程序的客户端。
下面通过几个实施例对本申请提供的技术方案进行介绍说明。
请参考图1,其示出了本申请一个实施例提供的虚拟对象的控制方法的流程 图。该虚拟对象的控制方法可以由终端执行,如图1所示,该方法可以包括如下几个步骤(110~140):
步骤110,显示用户界面。
该用户界面中可以包括虚拟对象和位移控件。用户界面可以是目标应用程序中的界面。用户界面可以显示在运行有目标应用程序的终端的显示面板中,或者,用户界面也可以通过运行有目标应用程序的终端通过投屏显示在其他显示面板中,或者,用户界面也可以通过投影进行显示,或者,用户界面还可以通过VR(Virtual Reality,虚拟现实)、AR(Augmented Reality,增强现实)等技术进行显示,本申请实施例用户界面的显示方式不作限定。可选地,用户界面包括第一视图层和第二视图层。视图层是用于显示用户界面的内容的图层。其中,第一视图层的显示层级高于第二视图层的显示层级,也就是说,第一视图层位于第二视图层的上层。第一视图层可用于显示供用户进行人机交互的操作控件,第二视图层可用于显示虚拟环境画面。由于第一视图层的显示层级高于第二视图层的显示层级,因此操作控件显示在虚拟环境画面的上层,这样就能够保证操作控件对用户的触控操作进行及时响应。需要说明的是,第一视图层虽然位于第二视图层的上层,但可以不对第二视图层中内容的显示造成遮挡,例如可以将第一视图层中的部分或全部操作控件以半透明状态进行显示。
其中,虚拟对象是指用户帐号在应用程序中控制的虚拟角色。以应用程序为游戏应用程序为例,虚拟对象是指用户帐号在游戏应用程序中控制的游戏角色。虚拟对象可以是人物形态,可以是动物、卡通或者其它形态,本申请实施例对虚拟对象的形态不作限定。虚拟对象可以三维形式展示,也可以二维形式展示,本申请实施例对虚拟对象的展示形式不作限定。位移控件可以是用于控制虚拟对象执行位移操作的虚拟控件。可选地,位移控件是位移技能控件,位移技能控件是指用于控制虚拟对象释放位移技能的控件。虚拟对象可以拥有至少一种技能,如位移技能、攻击技能、治疗技能等等,用户可以通过位移技能控件触发虚拟对象的位移技能,以使得虚拟对象执行对应的位移操作。可选地,位移控件可以按钮,也可以是虚拟摇杆,本申请实施例对位移控件的实现方式不作限定。
用户界面中还可以显示有虚拟环境画面,虚拟环境画面用于显示目标应用程序的虚拟环境。虚拟环境是目标应用程序(如游戏应用程序)的客户端在终 端上运行时显示(或提供)的场景,该虚拟环境是指营造出的供虚拟对象进行活动(如游戏竞技)的场景,如虚拟道路、虚拟建筑物(如塔、墙壁等)、虚拟地图等。该虚拟环境可以是对真实世界的仿真环境,也可以是半仿真半虚构的环境,还可以是纯虚构的环境。虚拟环境可以是二维虚拟环境,也可以是2.5维虚拟环境,或者是三维虚拟环境,本申请实施例对虚拟环境的形式不作限定。可选地,当虚拟对象所处的虚拟环境为三维虚拟环境时,虚拟对象可以是基于三维技术创建的三维立体模型。虚拟对象在三维虚拟环境中具有自身的形状和体积,占据三维虚拟环境中的一部分空间。
步骤120,接收对应于位移控件的第一操作信号。
客户端可以接收用户作用于位移控件的第一操作信号。可选地,第一操作信号可以是点击操作信号,也可以是滑动操作信号,还可以是长按操作信号,本申请实施例对此不作限定。
步骤130,基于第一操作信号,控制虚拟对象执行第一位移操作。
接收到第一操作信号后,客户端可以根据第一操作信号,确定虚拟对象的第一位移操作。在一些实施例中,通过第一操作信号,确定第一位移操作的位移方向和位移距离;控制虚拟对象按照第一位移操作的位移方向和位移距离执行第一位移操作。在另一些实施例中,通过第一操作信号,确定第一位移操作的位移方向;控制虚拟对象按照第一位移操作的位移方向执行第一位移操作,其中,第一位移操作的位移距离可以是预设的固定数值。可选地,当客户端接收到对应于第一位移操作的停止信号,或第一位移操作对应的操作时间结束后,控制虚拟对象停止执行第一位移操作,也即,完成第一位移操作。
可选地,用户界面中显示有移动控制控件,通过移动控制控件控制虚拟对象执行的移动操作被称为常规移动操作。虚拟对象执行位移操作时的平均位移速度,大于虚拟对象在执行常规移动操作时的移动速度。需要说明的是,虚拟对象的常规移动操作不属于虚拟对象的技能类操作。位移操作属于虚拟对象的技能类操作。
在一些实施例中,第一位移操作为匀速位移,第一位移操作的位移速度可以是正常移动速度指定倍数,示意性的,该指定倍数可以是1.2倍、1.3倍、1.5倍、1.8倍、2倍、2.5倍、3倍等,第一位移操作的位移速度的具体数值,也就是指定倍数的取值可以由相关技术人员或用户根据实际情况进行设定,本申请 实施例对此不作限定。
在另一些实施例中,第一位移操作为变速位移。示意性的,第一位移操作可以是先加速位移,再匀速位移;或者,先加速位移,再减速位移;或者,先加速位移,再匀速位移,再减速位移。其中,加速位移可以是匀加速位移,减速位移可以是匀减速位移。
步骤140,响应于在虚拟对象执行所述第一位移操作的过程中,接收到对应于位移控件的第二操作信号,基于第二操作信号,在第一位移操作执行完成后,控制虚拟对象执行第二位移操作。
在虚拟对象执行第一位移操作的过程中,客户端可以接收用户作用于位移控件的第二操作信号。可选地,第二操作信号可以是点击操作信号,也可以是滑动操作信号,还可以是长按操作信号,本申请实施例对此不作限定。
在第一位移操作执行完成后,客户端可以控制虚拟对象根据第二操作信号执行第二位移操作。第二位移操作的起点位置可以是第一位移操作的终点位置。
控制虚拟对象执行第二位移操作的实现方式,可以参考上述步骤130中,控制虚拟对象执行第一位移操作的相关内容,此处不再赘述。
综上所述,本申请实施例提供的技术方案,通过在虚拟对象执行第一位移操作的过程中,确定控制虚拟对象在第一位移操作执行完成后的第二位移操作,相比于在第一位移操作执行完成后,再花费时间确定接下来的第二位移操作,本申请实施例提供的技术方案,通过利用虚拟对象执行第一位移操作这一过程中的时间确定第二位移操作,节省了执行第一位移操作和第二位移操作之间的间隔时间,使得第一位移操作和第二位移操作之间可以实现无缝衔接,提高了虚拟对象执行位移操作的效率,进而提高计算机的交互效果。
请参考图2,其示出了本申请另一个实施例提供的虚拟对象的控制方法的流程图。该方法可以由终端执行,如图2所示,响应于在虚拟对象执行第一位移操作的过程中,接收到对应于位移控件的第二操作信号(即上述步骤140),在第一位移操作执行完成后,控制虚拟对象执行第二位移操作,还包括如下步骤(142~146):
步骤142,确定第二操作信号对应的位移方向。
根据第二操作信号,客户端可以确定对应的位移方向。其中,第二操作信 号对应的位移方向,用于控制虚拟对象执行第二位移操作。
在一个示例中,如图3所示,响应于第二操作信号为对应于位移控件31的滑动操作信号32,则根据第二操作信号的滑动方向33,确定第二操作信号对应的位移方向34。也就是说,若只接收到对应于位移控件31的滑动操作信号32,则第二操作信号为对应于位移控件31的滑动操作信号32;若同时接收到对应于位移控件31的滑动操作信号32,和对应于移动控制控件35的目标操作信号36,第二操作信号仍为对应于位移控件31的滑动操作信号32。
在另一个示例中,如图4所示,响应于第二操作信号为对应于位移控件31的点击操作信号41,且在接收第二操作信号时,还接收到对应于移动控制控件35的目标操作信号44,则根据目标操作信号44的方向信息42,确定第二操作信号对应的位移方向43为对应于目标操作信号44的方向信息42的方向。其中,目标操作信号可以是针对移动控制控件35的滑动操作信号。可选地,目标操作信号还可以是针对移动控制控件35的点击操作信号,根据点击操作信号的点击位置,可以确定位移方向。例如,根据点击位置与移动控制控件35的中心的相对位置关系,确定位移方向。又例如,在以移动控制控件35的中心为圆心的圆周上,显示有提供若干个方向(如4个方向、8个方向、16个方向等)选项控件,通过触发其中的目标方向选项控件,将目标方向选项控件对应的方向确定为位移方向。其中,方向选项控件可以是表示相应方向的箭头,也可以是显示在相应方向上的按钮。
在又一个示例中,如图5所示,响应于第二操作信号为对应于位移控件31的点击操作信号41,且在接收第二操作信号时,未接收到对应于移动控制控件35的目标操作信号,则将默认方向确定为第二操作信号对应的位移方向54,该默认方向是指虚拟对象51执行完第一位移操作时,虚拟对象的朝向。可选地,虚拟对象51在执行第一位移操作的过程中,其朝向即为第一位移操作对应的位移方向52,在第一位移操作执行结束后,在未接收到用户的方向调整指令时,其朝向不发生变化,也就是说,位移方向54与位移方向52保持一致。在一些实施例中,虚拟对象在执行第一位移操作时,其朝向发生变化,第二位移操作对应的位移方向,可以是接收到第二操作信号时虚拟对象的朝向,也可以是第一位移操作完成时虚拟对象的朝向,以第二位移操作对应的位移方向是第一位移操作完成时虚拟对象的朝向为例,如图6所示,在第一位移操作的执行过程 中,虚拟对象61的朝向由第一位移操作对应的位移方向62变换为位移方向64,在执行第二位移操作时,控制虚拟对象沿位移方向64释放位移技能;其中,虚拟对象在执行第一位移操作中朝向的改变可以是由用户在第一位移操作中对移动控制控件35的触控操作造成的。
步骤144,缓存第二操作信号对应的位移方向。
确定第二操作信号对应的位移方向之后,可以将第二操作信号对应的位移方向缓存在终端的本地存储单元中,以供下述步骤使用。可选地,客户端在虚拟对象执行第一位移操作的过程中,可以接收到多个基于位移控件的操作信号,客户端可以将各个操作信号对应的位移方向分别缓存到缓存队列中。例如,当接收到新的操作信号时,客户端将缓存队列中原有缓存的位移方向替换为新的操作信号对应的位移方向,使得缓存队列中的位移方向保持为最新的操作信号对应的位移方向。或者,在一种可能的实现方式中,客户端将各个操作信号对应的位移方向依次缓存到缓存队列中,在执行完上一个位移操作后,将缓存队列中处于队列最靠前位置的位移方向,获取为客户端控制虚拟对象执行下一个位移操作时的位移方向。
在一些实施例中,在缓存第二操作信号对应的位移方向之后,响应于第二操作信号对应的位移方向的缓存时长达到设定时长,删除第二操作信号对应的位移方向;或者,响应于第二操作信号对应的位移方向被使用,删除第二操作信号对应的位移方向。
对于第二操作信号对应的位移方向,客户端预设有对应的设定时长。缓存时长是指第二操作信号对应的位移方向已缓存的时长,设定时长是指第二操作信号对应的位移方向允许缓存的最大时长。当缓存时长达到设定时长后,或者,第二操作信号对应的位移方向被使用后,客户端可以删除第二操作信号对应的位移方向,以节省缓存资源,并且保证缓存内容的有效性和准确性。
其中,设定时长可以等于第一位操作对应的时长,也可以小于第一位操作对应的时长。当设定时长小于第一位操作对应的时长时,设定时长可以是第一位操作对应的时长指定比例,示意性的,该指定比例可以是80%、60%、50%、30%等,设定时长与第一位操作对应的时长的指定比例关系可以由相关技术人员或用户根据实际情况进行设定,本申请实施例对此不作限定。
步骤146,基于第二操作信号对应的位移方向,在第一位移操作执行完成后, 控制虚拟对象执行第二位移操作。
以该第二操作信号是在虚拟对象执行第一位移操作时,基于客户端最新接收到的位移操作生成的操作信号为例,如图7所示,在时间段71,基于用户的第一操作,生成第一操作信号;在时间段72,客户端接收第一操作信号;在时间段73,虚拟对象根据第一操作信号执行第一位移操作;时间按段73包括子时间段74、75和76,在子时间段74,基于用户的第二操作,生成第二操作信号,在时间段75,客户端接收第二操作信号,在时间段76,若客户端没有接收到与虚拟对象的位移操作相关的操作信号,客户端保持第二操作信号;若客户端在时间段76中接收到与虚拟对象的位移操作相关的操作信号,客户端更新该第二操作信号;在虚拟对象根据第一操作信号执行完第一位移操作后,在时间段77,虚拟对象根据第二操作信号执行第二位移操作。通过上述方法,可以在第一位移操作执行结束后,虚拟对象可以立即根据第二操作信号执行第二位移操作,使得第一位移操作对应的时间段73和第二位移操作对应的时间段77之间无间隔时间,从而提高了控制虚拟对象进行位移的操作效率。
在一些实施例中,该方法还包括如下步骤:
1、在缓存第二操作信号对应的位移方向之后,响应于在虚拟对象执行第一位移操作的过程中,接收对应于位移控件的第三操作信号,确定第三操作信号对应的位移方向;
2、将缓存的第二操作信号对应的位移方向删除,并缓存第三操作信号对应的位移方向。
虚拟对象执行第一位移操作的过程中,在接收到第二操作信号之后,客户端又接收到对应于位移控件的第三操作信号,表示用户希望虚拟对象在执行完第一位移操作后,执行第三操作信号对应的第三位移操作,而不是执行第二位移操作,因此,可以根据第三操作信号确定其对应的位移方向,并将缓存的第二操作信号对应的位移方向替换为第三操作信号对应的位移方向,从而更新虚拟对象在执行完第一位移操作后,接下来的位移操作,提高了控制虚拟对象执行位移操作的准确性。
在上述实现方式中,提供了一种位移方向的确定机制,当移动控制控件和位移控件都有方向信息输入时,优先根据位移控件对应的方向信息确定虚拟对 象的位移方向,解决了方向信息冲突的问题;当只有针对位移控件的点击操作时,将虚拟对象的朝向确定为位移方向,简化了用户操作。
在一些实施例中,该方法还包括如下步骤:
1、在响应于在虚拟对象执行第一位移操作的过程中,接收到对应于位移控件的第二操作信号,基于第二操作信号,在第一位移操作执行完成后,控制虚拟对象执行第二位移操作之前,检测虚拟对象是否满足执行第二位移操作的条件;其中,该条件包括以下至少一项:第二操作信号对应的位移方向为可移动方向、虚拟对象处于可位移状态、虚拟对象拥有的虚拟资源的数值大于或等于第二位移操作对应的资源阈值;
2、响应于虚拟对象满足条件,且在虚拟对象执行第一位移操作的过程中,接收到对应于位移控件的第二操作信号,基于第二操作信号,在第一位移操作执行完成后,控制虚拟对象执行所述第二位移操作。
可选地,当虚拟对象不满足条件时,虚拟对象不执行第二位移操作。
可选地,当第二操作信号对应的位移方向上不存在位移障碍元素时,确定第二操作信号对应的位移方向为可移动方向。位移障碍元素是指虚拟场景中设置的虚拟对象无法通过的元素,该位移障碍元素可以包括虚拟对象无法通过的地形(如高山、高坡、地沟、悬崖等)、障碍物(如石头、墙、树木等)、其他虚拟对象(如己方的虚拟对象、敌方的虚拟对象、非用户控制的虚拟对象等)以及其他虚拟对象释放的用于限制虚拟对象的移动的屏障障碍等。
虚拟对象处于可移动状态,包括虚拟对象没有被限制使用位移技能。虚拟对象的位移技能被限制使用,包括:虚拟对象正在使用与位移技能冲突的技能、虚拟对象被其他虚拟对象的技能限制了位移(如被其他虚拟对象释放的技能限制在原地或移动速度变慢等等)、虚拟对象的位移技能处于冷却时间、虚拟对象位于载具中、虚拟对象处于死亡状态等等。
在一些可能的实施例中,虚拟对象执行位移操作需要消耗资源阈值的量的虚拟资源(如虚拟货币、虚拟道具等),当虚拟对象拥有的虚拟资源的数值大于或等于所需的资源阈值时,确定虚拟对象有可能满足执行第二位移操作的条件;当虚拟对象拥有的虚拟资源的数值小于所需的资源阈值时,确定虚拟对象不满足执行第二位移操作的条件。
在上述实现方式中,通过对虚拟对象的第二位移操作设置条件,并检测虚拟对象是否满足执行第二位移操作的条件,当虚拟对象满足条件时,控制虚拟对象执行第二位移操作,相比于用户只要进行相应的操作,虚拟对象就能执行对应的位移操作的控制方式,丰富了控制虚拟对象的方法。
请参考图8,其示出了本申请另一个实施例提供的虚拟对象的控制方法的流程图。如图8所示,该方法可以包括如下步骤(801~808):
步骤801,获取第二操作信号;
步骤802,判断虚拟对象是否满足条件,若是,则执行步骤803;若否,则执行步骤804;
步骤803,控制虚拟对象执行第二位移操作;
步骤804,缓存第二操作信号对应的位移方向;
步骤805,响应于第一位移操作执行完成,判断是否存在缓存的位移方向,若是,则执行步骤806;若否,则继续执行步骤805;
步骤806,判断虚拟对象是否满足条件,若是,则执行步骤807;若否,则返回步骤805;
步骤807,控制虚拟对象执行第二位移操作;
步骤808,清除缓存的第二操作信号对应的位移方向。
请参考图9,其示出了本申请另一个实施例提供的虚拟对象的控制方法的流程图。如图9所示,该方法可以包括如下步骤(901~916):
步骤901,判断是否接收到位移技能控件的触控操作,若是,则执行步骤902;若否,则步骤结束;
步骤902,判断是否接收到基于移动控制控件的触控操作,若是,则执行步骤903;若否,则执行步骤905;
步骤903,确定移动控制控件对应的方向信息;
步骤904,将方向信息输入缓存;
步骤905,检测位移技能控件是否被滑动,若是,则执行步骤906;若否,则执行步骤907;
步骤906,确定位移技能控件对应的方向信息,并执行步骤904;
步骤907,根据输入缓存的方向信息判断输出的位移方向;
步骤908,执行第一位移操作;
步骤909,判断是否接收到基于位移技能控件的触控操作,若是,则执行步骤910;若否,则步骤结束;
步骤910,检测移动控制控件是否被滑动,若是,则执行步骤911;若否,则执行步骤913;
步骤911,确定移动控制控件对应的方向信息;
步骤912,将方向信息输入缓存;
步骤913,检测位移技能控件是否被滑动,若是,则执行步骤914;若否,则执行步骤915;
步骤914,确定位移技能控件对应的方向信息,并执行步骤912;
步骤915,根据输入缓存的方向信息确定输出的位移方向;
步骤916,第一位移操作执行完成后,根据输出的位移方向,执行第二位移操作,步骤结束。
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。
请参考图10,其示出了本申请一个实施例提供的虚拟对象的控制装置的框图。该装置具有实现上述虚拟对象的控制的方法示例的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。该装置可以是上文介绍的终端,也可以设置在终端上。该装置1000可以包括:界面显示模块1010、信号接收模块1020和操作执行模块1030。
所述界面显示模块1010,用于显示用户界面,所述用户界面中包括虚拟对象和位移控件;所述位移控件用以控制所述虚拟对象释放位移技能。
所述信号接收模块1020,用于接收对应于所述位移控件的第一操作信号。
所述操作执行模块1030,用于基于所述第一操作信号,控制所述虚拟对象执行第一位移操作。
响应于所述信号接收模块1020在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第二操作信号,所述操作执行模块1030,用于基于所述第二操作信号,在所述第一位移操作执行完成后,控制所述虚拟 对象执行第二位移操作。
在一种可能的实现方式中,所述操作执行模块1030,包括:
方向确定子模块,用于响应于在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第二操作信号,确定所述第二操作信号对应的位移方向;
方向缓存子模块,用于缓存所述第二操作信号对应的位移方向;
操作执行子模块,用于基于所述第二操作信号对应的位移方向,在所述第一位移操作执行完成后,控制所述虚拟对象执行第二位移操作。
在一种可能的实现方式中,所述方向确定子模块,用于响应于所述第二操作信号为对应于所述位移控件的滑动操作信号,根据所述第二操作信号的滑动方向,确定所述第二操作信号对应的位移方向;
响应于所述第二操作信号为对应于所述位移控件的点击操作信号,且在接收所述第二操作信号时,还接收到对应于移动控制控件的目标操作信号,根据所述目标操作信号的方向信息,确定所述第二操作信号对应的位移方向;
响应于所述第二操作信号为对应于所述位移控件的点击操作信号,且在接收所述第二操作信号时,未接收到对应于所述移动控制控件的目标操作信号,将默认方向确定为所述第二操作信号对应的位移方向,所述默认方向是指所述虚拟角色执行完成所述第一位移操作时,所述虚拟对象的朝向。
在一种可能的实现方式中,所述方向缓存子模块,还用于响应于所述第二操作信号对应的位移方向的缓存时长达到设定时长,删除所述第二操作信号对应的位移方向;或者,响应于所述第二操作信号对应的位移方向被使用,删除所述第二操作信号对应的位移方向。
在一种可能的实现方式中,响应于所述信号接收模块1020,在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第三操作信号,所述方向确定子模块,还用于确定所述第三操作信号对应的位移方向;
所述方向缓存子模块,还用于将缓存的所述第二操作信号对应的位移方向删除,并缓存所述第三操作信号对应的位移方向。
在一种可能的实现方式中,所述装置,还包括:
条件检测模块,用于在所述第一位移操作执行完成后,检测所述虚拟对象是否满足执行所述第二位移操作的条件;其中,所述条件包括以下至少一项: 所述第二操作信号对应的位移方向为可移动方向、所述虚拟对象处于可位移状态、所述虚拟对象拥有的虚拟资源的数值大于或等于所述第二位移操作对应的资源阈值;
所述操作执行模块1030,用于响应于所述虚拟对象满足所述条件,且在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第二操作信号,基于所述第二操作信号,在所述第一位移操作执行完成后,控制所述虚拟对象执行所述第二位移操作。
综上所述,本申请实施例提供的技术方案,通过在虚拟对象执行第一位移操作的过程中,确定控制虚拟对象在第一位移操作执行完成后的第二位移操作,相比于在第一位移操作执行完成后,再花费时间确定接下来的第二位移操作,本申请实施例提供的技术方案,通过利用虚拟对象执行第一位移操作这一过程中的时间确定第二位移操作,节省了第一位移操作和第二位移操作之间的间隔时间,使得第一位移操作和第二位移操作之间可以实现无缝衔接,提高了虚拟对象执行位移操作的效率,进而提高计算机的交互效果。
需要说明的是,上述实施例提供的装置,在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
请参考图11,其示出了本申请一个实施例提供的终端1100的结构框图。该终端1100可以是诸如手机、平板电脑、游戏主机、电子书阅读器、多媒体播放设备、可穿戴设备、PC等电子设备。该终端用于实施上述实施例中提供的虚拟对象的控制方法。具体来讲:
通常,终端1100包括有:处理器1111和存储器1112。
处理器1101可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器1101可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器1101也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处 理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1101可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1101还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。
存储器1102可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器1102还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1102中的非暂态的计算机可读存储介质用于存储计算机程序,且经配置以由一个或者一个以上处理器执行,以实现上述虚拟对象的控制方法。
在一些实施例中,终端1100还可选包括有:外围设备接口1103和至少一个外围设备。处理器1101、存储器1102和外围设备接口1103之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口1103相连。具体地,外围设备包括:射频电路1104、显示屏1105、摄像头组件1106、音频电路1107、定位组件1108和电源1109中的至少一种。
本领域技术人员可以理解,图11中示出的结构并不构成对终端1100的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。
在一些实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有至少一条计算机程序,该计算机程序由处理器加载并执行,以实现上述虚拟对象的控制方法的全部或部分步骤。
在一些实施例中,还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述各方法实施例提供的虚拟对象的控制方法的全部或部分步骤。
本领域技术人员在考虑说明书及实践这里公开的申请后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。

Claims (14)

  1. 一种虚拟对象的控制方法,其特征在于,所述方法由终端执行,所述方法包括:
    显示用户界面,所述用户界面中包括虚拟对象和位移控件;所述位移控件用以控制所述虚拟对象释放位移技能;
    接收对应于所述位移控件的第一操作信号;
    基于所述第一操作信号,控制所述虚拟对象执行第一位移操作;
    响应于在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第二操作信号,基于所述第二操作信号,在所述第一位移操作执行完成后,控制所述虚拟对象执行第二位移操作。
  2. 根据权利要求1所述的方法,其特征在于,所述响应于在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第二操作信号,基于所述第二操作信号,在所述第一位移操作执行完成后,控制所述虚拟对象执行第二位移操作,包括:
    响应于在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第二操作信号,确定所述第二操作信号对应的位移方向;
    缓存所述第二操作信号对应的位移方向;
    基于所述第二操作信号对应的位移方向,在所述第一位移操作执行完成后,控制所述虚拟对象执行第二位移操作。
  3. 根据权利要求2所述的方法,其特征在于,所述确定所述第二操作信号对应的位移方向,包括:
    响应于所述第二操作信号为对应于所述位移控件的滑动操作信号,根据所述第二操作信号的滑动方向,确定所述第二操作信号对应的位移方向;
    响应于所述第二操作信号为对应于所述位移控件的点击操作信号,且在接收所述第二操作信号时,还接收到对应于移动控制控件的目标操作信号,根据所述目标操作信号的方向信息,确定所述第二操作信号对应的位移方向;
    响应于所述第二操作信号为对应于所述位移控件的点击操作信号,且在接收所述第二操作信号时,未接收到对应于所述移动控制控件的目标操作信号, 将默认方向确定为所述第二操作信号对应的位移方向,所述默认方向是指所述虚拟角色执行完成所述第一位移操作时,所述虚拟对象的朝向。
  4. 根据权利要求2所述的方法,其特征在于,在缓存所述第二操作信号对应的位移方向之后,所述方法还包括:
    响应于所述第二操作信号对应的位移方向的缓存时长达到设定时长,删除所述第二操作信号对应的位移方向;
    或者,
    响应于所述第二操作信号对应的位移方向被使用,删除所述第二操作信号对应的位移方向。
  5. 根据权利要求2所述的方法,其特征在于,在缓存所述第二操作信号对应的位移方向之后,所述还包括:
    响应于在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第三操作信号,确定所述第三操作信号对应的位移方向;
    将缓存的所述第二操作信号对应的位移方向删除,并缓存所述第三操作信号对应的位移方向。
  6. 根据权利要求1至5任一项所述的方法,其特征在于,在所述响应于在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第二操作信号,基于所述第二操作信号,在所述第一位移操作执行完成后,控制所述虚拟对象执行第二位移操作之前,所述方法还包括:
    检测所述虚拟对象是否满足执行所述第二位移操作的条件;所述条件包括以下至少一项:所述第二操作信号对应的位移方向为可移动方向、所述虚拟对象处于可位移状态、所述虚拟对象拥有的虚拟资源的数值大于或等于所述第二位移操作对应的资源阈值;
    所述响应于在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第二操作信号,基于所述第二操作信号,在所述第一位移操作执行完成后,控制所述虚拟对象执行第二位移操作,包括:
    响应于所述虚拟对象满足所述条件,且在所述虚拟对象执行所述第一位移 操作的过程中,接收到对应于所述位移控件的第二操作信号,基于所述第二操作信号,在所述第一位移操作执行完成后,控制所述虚拟对象执行所述第二位移操作。
  7. 一种虚拟对象的控制装置,其特征在于,所述装置应用于终端中,所述装置包括:
    界面显示模块,用于显示用户界面,所述用户界面中包括虚拟对象和位移控件;所述位移控件用以控制所述虚拟对象释放位移技能;
    信号接收模块,用于接收对应于所述位移控件的第一操作信号;
    操作执行模块,用于基于所述第一操作信号,控制所述虚拟对象执行第一位移操作;
    响应于所述信号接收模块在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第二操作信号,所述操作执行模块,用于基于所述第二操作信号,在所述第一位移操作执行完成后,控制所述虚拟对象执行第二位移操作。
  8. 根据权利要求7所述的装置,其特征在于,所述操作执行模块,包括:
    方向确定子模块,用于响应于在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第二操作信号,确定所述第二操作信号对应的位移方向;
    方向缓存子模块,用于缓存所述第二操作信号对应的位移方向;
    操作执行子模块,用于基于所述第二操作信号对应的位移方向,在所述第一位移操作执行完成后,控制所述虚拟对象执行第二位移操作。
  9. 根据权利要求8所述的装置,其特征在于,所述方向确定子模块,用于响应于所述第二操作信号为对应于所述位移控件的滑动操作信号,根据所述第二操作信号的滑动方向,确定所述第二操作信号对应的位移方向;
    响应于所述第二操作信号为对应于所述位移控件的点击操作信号,且在接收所述第二操作信号时,还接收到对应于移动控制控件的目标操作信号,根据所述目标操作信号的方向信息,确定所述第二操作信号对应的位移方向;
    响应于所述第二操作信号为对应于所述位移控件的点击操作信号,且在接收所述第二操作信号时,未接收到对应于所述移动控制控件的目标操作信号,将默认方向确定为所述第二操作信号对应的位移方向,所述默认方向是指所述虚拟角色执行完成所述第一位移操作时,所述虚拟对象的朝向。
  10. 根据权利要求8所述的装置,其特征在于,所述方向缓存子模块,还用于响应于所述第二操作信号对应的位移方向的缓存时长达到设定时长,删除所述第二操作信号对应的位移方向;或者,响应于所述第二操作信号对应的位移方向被使用,删除所述第二操作信号对应的位移方向。
  11. 根据权利要求8所述的装置,其特征在于,响应于所述信号接收模块,在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第三操作信号,所述方向确定子模块,还用于确定所述第三操作信号对应的位移方向;
    所述方向缓存子模块,还用于将缓存的所述第二操作信号对应的位移方向删除,并缓存所述第三操作信号对应的位移方向。
  12. 根据权利要求7至11任一所述的装置,其特征在于,所述装置,还包括:
    条件检测模块,用于在所述第一位移操作执行完成后,检测所述虚拟对象是否满足执行所述第二位移操作的条件;其中,所述条件包括以下至少一项:所述第二操作信号对应的位移方向为可移动方向、所述虚拟对象处于可位移状态、所述虚拟对象拥有的虚拟资源的数值大于或等于所述第二位移操作对应的资源阈值;
    所述操作执行模块,用于响应于所述虚拟对象满足所述条件,且在所述虚拟对象执行所述第一位移操作的过程中,接收到对应于所述位移控件的第二操作信号,基于所述第二操作信号,在所述第一位移操作执行完成后,控制所述虚拟对象执行所述第二位移操作。
  13. 一种终端,其特征在于,所述终端包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、 所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如权利要求1至6任一项所述的虚拟对象的控制方法。
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有至少一条计算机程序,所述计算机程序由处理器加载并执行,以实现如权利要求1至6任一项所述的虚拟对象的控制方法。
PCT/CN2021/080852 2020-04-28 2021-03-15 虚拟对象的控制方法、装置、终端及存储介质 WO2021218460A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
KR1020217038156A KR20210153131A (ko) 2020-04-28 2021-03-15 가상 객체 제어 방법 및 장치, 단말, 및 저장 매체
SG11202112156VA SG11202112156VA (en) 2020-04-28 2021-03-15 Virtual object control method and apparatus, terminal, and storage medium
JP2021564715A JP2022534661A (ja) 2020-04-28 2021-03-15 仮想オブジェクトの制御方法並びにその装置、端末およびコンピュータプログラム
US17/554,556 US20220105432A1 (en) 2020-04-28 2021-12-17 Virtual object control method and apparatus, terminal, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010352292.0 2020-04-28
CN202010352292.0A CN111589135B (zh) 2020-04-28 2020-04-28 虚拟对象的控制方法、装置、终端及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/554,556 Continuation US20220105432A1 (en) 2020-04-28 2021-12-17 Virtual object control method and apparatus, terminal, and storage medium

Publications (1)

Publication Number Publication Date
WO2021218460A1 true WO2021218460A1 (zh) 2021-11-04

Family

ID=72180459

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/080852 WO2021218460A1 (zh) 2020-04-28 2021-03-15 虚拟对象的控制方法、装置、终端及存储介质

Country Status (6)

Country Link
US (1) US20220105432A1 (zh)
JP (1) JP2022534661A (zh)
KR (1) KR20210153131A (zh)
CN (1) CN111589135B (zh)
SG (1) SG11202112156VA (zh)
WO (1) WO2021218460A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111589135B (zh) * 2020-04-28 2022-03-04 腾讯科技(深圳)有限公司 虚拟对象的控制方法、装置、终端及存储介质
CN112619167A (zh) * 2020-12-21 2021-04-09 网易(杭州)网络有限公司 一种信息处理的方法、装置、计算机设备和介质
CN113101656B (zh) * 2021-05-13 2023-02-24 腾讯科技(深圳)有限公司 虚拟对象的控制方法、装置、终端及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150033143A1 (en) * 2013-07-26 2015-01-29 Pantech Co., Ltd. User terminal and method for displaying integrated communication history of the user terminal
US20160016079A1 (en) * 2011-11-09 2016-01-21 Nintendo Co., Ltd. Storage medium, input terminal device, control system, and control method
CN108379844A (zh) * 2018-03-30 2018-08-10 腾讯科技(深圳)有限公司 控制虚拟对象移动的方法、装置、电子装置及存储介质
CN109260702A (zh) * 2018-08-30 2019-01-25 腾讯科技(深圳)有限公司 虚拟场景中的虚拟载具控制方法、计算机设备及存储介质
CN109568956A (zh) * 2019-01-10 2019-04-05 网易(杭州)网络有限公司 游戏中的显示控制方法、装置、存储介质、处理器及终端
CN111589135A (zh) * 2020-04-28 2020-08-28 腾讯科技(深圳)有限公司 虚拟对象的控制方法、装置、终端及存储介质

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5376946A (en) * 1991-07-08 1994-12-27 Mikan; Peter J. Computer mouse simulator device
JP4932010B2 (ja) * 2010-01-06 2012-05-16 株式会社スクウェア・エニックス ユーザインタフェース処理装置、ユーザインタフェース処理方法、およびユーザインタフェース処理プログラム
JP6253690B2 (ja) * 2016-03-04 2017-12-27 株式会社コロプラ プログラム及びコンピュータ
WO2018042467A1 (ja) * 2016-08-31 2018-03-08 任天堂株式会社 ゲームプログラム、ゲーム処理方法、ゲームシステム、およびゲーム装置
JP6661513B2 (ja) * 2016-10-31 2020-03-11 株式会社バンク・オブ・イノベーション ビデオゲーム処理装置、及びビデオゲーム処理プログラム
GB2563243B (en) * 2017-06-07 2020-11-18 Sony Interactive Entertainment Inc Input method and apparatus
CN107930105A (zh) * 2017-10-23 2018-04-20 网易(杭州)网络有限公司 信息处理方法及装置、存储介质、电子设备
CN108037952B (zh) * 2017-11-30 2020-09-08 腾讯科技(成都)有限公司 对象操作的处理方法、对象操作数据的生成方法及装置
CN108037888B (zh) * 2017-12-11 2020-11-24 网易(杭州)网络有限公司 技能控制方法、装置、电子设备及存储介质
CN108379843B (zh) * 2018-03-16 2022-05-31 网易(杭州)网络有限公司 虚拟对象控制方法与装置
CN108434730A (zh) * 2018-03-22 2018-08-24 网易(杭州)网络有限公司 游戏对象的控制方法、装置、存储介质、处理器和终端
CN108525296B (zh) * 2018-04-24 2019-12-06 网易(杭州)网络有限公司 虚拟现实游戏中的信息处理方法、装置及处理器
CN109568965B (zh) * 2018-11-30 2020-10-16 广州要玩娱乐网络技术股份有限公司 目标单位移动方法、装置、存储介质和终端
CN109646943B (zh) * 2018-12-26 2022-11-04 网易(杭州)网络有限公司 一种位移技能的处理方法和装置
CN109847370A (zh) * 2019-03-26 2019-06-07 网易(杭州)网络有限公司 射击游戏的控制方法、装置、设备和存储介质
CN110538452B (zh) * 2019-09-09 2023-09-19 珠海金山数字网络科技有限公司 技能控制方法、装置、计算设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160016079A1 (en) * 2011-11-09 2016-01-21 Nintendo Co., Ltd. Storage medium, input terminal device, control system, and control method
US20150033143A1 (en) * 2013-07-26 2015-01-29 Pantech Co., Ltd. User terminal and method for displaying integrated communication history of the user terminal
CN108379844A (zh) * 2018-03-30 2018-08-10 腾讯科技(深圳)有限公司 控制虚拟对象移动的方法、装置、电子装置及存储介质
CN109260702A (zh) * 2018-08-30 2019-01-25 腾讯科技(深圳)有限公司 虚拟场景中的虚拟载具控制方法、计算机设备及存储介质
CN109568956A (zh) * 2019-01-10 2019-04-05 网易(杭州)网络有限公司 游戏中的显示控制方法、装置、存储介质、处理器及终端
CN111589135A (zh) * 2020-04-28 2020-08-28 腾讯科技(深圳)有限公司 虚拟对象的控制方法、装置、终端及存储介质

Also Published As

Publication number Publication date
SG11202112156VA (en) 2021-12-30
CN111589135B (zh) 2022-03-04
US20220105432A1 (en) 2022-04-07
JP2022534661A (ja) 2022-08-03
KR20210153131A (ko) 2021-12-16
CN111589135A (zh) 2020-08-28

Similar Documents

Publication Publication Date Title
KR102625233B1 (ko) 가상 객체를 제어하기 위한 방법, 및 관련 장치
WO2021218460A1 (zh) 虚拟对象的控制方法、装置、终端及存储介质
KR20220083839A (ko) 가상 장면을 표시하는 방법 및 장치, 그리고 기기 및 저장 매체
EP3970819B1 (en) Interface display method and apparatus, and terminal and storage medium
JP7451563B2 (ja) 仮想キャラクタの制御方法並びにそのコンピュータ機器、コンピュータプログラム、及び仮想キャラクタの制御装置
WO2018103633A1 (zh) 一种图像处理的方法及装置
EP3950080A1 (en) Method and apparatus for selecting virtual object, and device and storage medium
WO2021244306A1 (zh) 虚拟对象的选择方法、装置、设备及存储介质
JP2022540277A (ja) 仮想オブジェクト制御方法、装置、端末及びコンピュータプログラム
JP7453311B2 (ja) グラフィック処理のためのアセット認識コンピューティングアーキテクチャ
CN110716766A (zh) 游戏场景加载方法、装置、计算机可读介质及电子设备
CN111589114B (zh) 虚拟对象的选择方法、装置、终端及存储介质
WO2024016924A1 (zh) 视频处理方法、装置、电子设备及存储介质
US20230048826A1 (en) Virtual scene display method and apparatus, device, storage medium, and program product
WO2022156490A1 (zh) 虚拟场景中画面展示方法、装置、设备、存储介质及程序产品
CN114307129A (zh) 游戏交互控制方法、装置、设备及介质
WO2023216781A1 (zh) 虚拟角色的控制方法、装置、设备及存储介质
WO2023221879A1 (zh) 虚拟车辆的控制方法、装置、设备及计算机可读存储介质
WO2024067168A1 (zh) 基于社交场景的消息显示方法、装置、设备、介质及产品
US20220274020A1 (en) Method and apparatus for switching game character, and electronic device
CN116351059A (zh) 非玩家角色的控制方法、装置、计算机设备及存储介质
CN114522419A (zh) 射击游戏中散射场景呈现方法、装置、设备及介质

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2021564715

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20217038156

Country of ref document: KR

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21795338

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16-03-2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21795338

Country of ref document: EP

Kind code of ref document: A1