CN109960558B - Virtual object control method and device, computer storage medium and electronic equipment - Google Patents

Virtual object control method and device, computer storage medium and electronic equipment Download PDF

Info

Publication number
CN109960558B
CN109960558B CN201910244832.0A CN201910244832A CN109960558B CN 109960558 B CN109960558 B CN 109960558B CN 201910244832 A CN201910244832 A CN 201910244832A CN 109960558 B CN109960558 B CN 109960558B
Authority
CN
China
Prior art keywords
area
virtual object
virtual
visual angle
sliding
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910244832.0A
Other languages
Chinese (zh)
Other versions
CN109960558A (en
Inventor
党向前
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910244832.0A priority Critical patent/CN109960558B/en
Publication of CN109960558A publication Critical patent/CN109960558A/en
Application granted granted Critical
Publication of CN109960558B publication Critical patent/CN109960558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to the technical field of games, and particularly discloses a control method and device of a virtual object, a storage medium and an electronic device. The method comprises the following steps: detecting sliding operation in the interactive interface, and judging whether the sliding point position of the sliding operation moves from the virtual rocker area to the visual angle rotating area; and if the sliding point position moves from the virtual rocker area to the visual angle rotating area, controlling the virtual object to be converted from a displacement state to a visual angle rotating state, wherein the visual angle rotating area is provided at a preset distance on the periphery of the virtual rocker area. This is disclosed through whether the sliding operation in the detection interactive interface moves to the visual angle rotation region by virtual rocker region to confirm whether virtual object converts the visual angle rotation state into by the displacement state, can realize the dual control to virtual object's displacement and visual angle through single gesture operation, avoided visual angle control to the interrupt effect of other interactive skills, improved the smoothness nature of recreation.

Description

Virtual object control method and device, computer storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of game technologies, and in particular, to a method for controlling a virtual object, an apparatus for controlling a virtual object, a computer storage medium, and an electronic device.
Background
With the rapid development of computer technology and internet technology, more and more game applications are currently applied to touch terminals, and players in games often need to consider multiple dimensional interaction behaviors of virtual objects, such as attack, displacement, view angle conversion and the like.
In the current mobile phone game, the most basic interactive dimension is the control of displacement and view angle, while the universal interactive mode is that two hands of a player respectively control the interaction of multiple dimensions, for example, the left hand controls the displacement of a virtual object, the right hand controls the interaction of other dimensions of the virtual object (for example, view angle conversion, skill release and the like), the player needs to switch between the interactive behaviors of view angle, skill release and the like in the interactive process, the game is interrupted to a certain extent, the game operation efficiency is low, and the fluency of the game is influenced; in addition, in the current control method for the virtual object, a control for switching between a displacement state and a view angle state is provided, but the method prevents the player from moving when the player is in a view angle rotation state, brings discomfort to the player in operation, and prevents the player from being evaded in time when the player is attacked, thereby reducing the game competition experience of the player.
Therefore, it is necessary to provide a new control method of the virtual object.
It is to be noted that the information invented in the background section above is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure is directed to a method and an apparatus for controlling a virtual object, a computer storage medium, and an electronic device, so as to avoid, at least to a certain extent, problems of game interruption, low operation efficiency, poor user experience, and the like caused when a displacement state and a view angle rotation state of a virtual object are controlled to be switched.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to an aspect of the present disclosure, there is provided a method of controlling a virtual object, including: detecting sliding operation in the interactive interface, and judging whether the sliding point position of the sliding operation moves from the virtual rocker area to the visual angle rotation area; and if the sliding point position moves from the virtual rocker area to the visual angle rotating area, controlling the virtual object to be converted from a displacement state to a visual angle rotating state, wherein the visual angle rotating area is provided at the position of a preset distance on the periphery of the virtual rocker area.
In an exemplary embodiment of the present disclosure, the detecting a sliding operation in the interactive interface and determining whether a sliding point position of the sliding operation moves from a virtual rocker area to a view angle rotation area includes: judging whether the position of the sliding point moves from the virtual rocker area to an activation prompting area; if the position of the sliding point moves from the virtual rocker area to the activation prompt area, displaying the visual angle rotation area in a first display state; the activation prompting area is an area between the virtual rocker area and the visual angle rotating area.
In an exemplary embodiment of the present disclosure, after the controlling the virtual object to be converted from the displacement state to the view angle rotation state if the sliding point position moves from the virtual rocker area to the view angle rotation area, the method further includes: and displaying the visual angle rotating area in a second display state.
In an exemplary embodiment of the present disclosure, after the virtual object is converted from the displacement state to the perspective rotation state, the method includes: detecting a sliding track corresponding to sliding operation in the visual angle control area; and rotating the visual angle of the virtual object along the direction corresponding to the sliding track, and controlling the virtual object to keep a moving state.
In an exemplary embodiment of the present disclosure, when the virtual object is in the view angle rotation state, the method further includes: detecting position coordinates of a clicking operation in the virtual rocker area; and determining the direction corresponding to the position coordinates as a target moving direction, and controlling the virtual object to keep a moving state towards the target moving direction.
In an exemplary embodiment of the present disclosure, the method further comprises: detecting whether a target pressing operation exists in the virtual rocker area; if the target pressing operation exists in the virtual rocker area, controlling the virtual object to be in a static state, and displaying the visual angle rotating area in a second display state; and detecting a sliding track corresponding to the sliding operation in the visual angle control area, and rotating the visual angle of the virtual object along the direction corresponding to the sliding track.
In an exemplary embodiment of the present disclosure, when the virtual object is in the displacement state, the method includes: and detecting the sliding operation in the virtual rocker area, and controlling the virtual object to displace according to the sliding operation.
In an exemplary embodiment of the present disclosure, the method further comprises: detecting whether the position of the sliding point moves to the virtual rocker area from the visual angle rotating area or not; and if the sliding point position moves from the view angle rotating area to the virtual rocker area, controlling the virtual object to be converted from the current state to the displacement state, and canceling the second display state of the view angle rotating area.
According to an aspect of the present disclosure, there is provided an apparatus for controlling a virtual object, applied to a touch terminal capable of presenting an interactive interface, the apparatus including: the judging module is used for detecting the sliding operation in the interactive interface and judging whether the sliding point position of the sliding operation moves from the virtual rocker area to the visual angle rotating area; and the control module is used for controlling the virtual object to be converted from a displacement state to an angle of view rotation state if the sliding point position moves from the virtual rocker area to the angle of view rotation area.
According to an aspect of the present disclosure, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, implements a method of controlling a virtual object as recited in any one of the above.
According to an aspect of the present disclosure, there is provided an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the control method of the virtual object of any one of the above via execution of the executable instructions.
The control method of the virtual object in the exemplary embodiment of the present disclosure controls the switching of the virtual object between the displacement state and the displacement state by detecting whether the position of the sliding point of the sliding operation in the interactive interface moves from the virtual rocker area to the view angle rotation area. Through switching of the sliding point position between the virtual rocker area and the visual angle rotation area, the displacement of a player and the visual angle rotation can be controlled by a single gesture, the mutual exclusion effect of the visual angle rotation control and other interactive actions is avoided, and the smoothness and the operation efficiency of game operation are improved; meanwhile, the operation areas corresponding to the state control (displacement state and visual angle control state) and skill release of the virtual character are partitioned, so that the behavior habits of the player are met, the thinking cost of the player during selection and operation is reduced, and the game competition experience of the player is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
fig. 1 schematically illustrates a flowchart of a control method of a virtual object of an exemplary embodiment of the present disclosure;
2A-2E schematically illustrate a schematic diagram of a method of controlling a virtual object of an exemplary embodiment of the present disclosure;
fig. 3 schematically illustrates a flowchart of activating a view rotation area of an exemplary embodiment of the present disclosure;
fig. 4 schematically illustrates a flowchart of controlling a perspective rotation of a virtual object in a perspective rotation state according to an exemplary embodiment of the present disclosure;
fig. 5 schematically illustrates a flowchart of controlling a virtual object to be displaced in a viewing angle rotation state according to an exemplary embodiment of the present disclosure;
FIG. 6 schematically illustrates a flow chart for controlling a virtual object into a pure perspective rotated state, according to an exemplary embodiment of the present disclosure;
fig. 7 schematically illustrates a structural diagram of a control apparatus of a virtual object of an exemplary embodiment of the present disclosure;
FIG. 8 schematically illustrates a schematic diagram of a storage medium of an exemplary embodiment of the present disclosure; and
fig. 9 schematically shows a block diagram of an electronic device of an exemplary embodiment of the present disclosure.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
Exemplary embodiments will now be described more fully with reference to the accompanying drawings. The exemplary embodiments, however, may be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus their detailed description will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known structures, methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in the form of software, or in one or more software-hardened modules, or in different networks and/or processor devices and/or microcontroller devices.
In the related art, a good game experience can better attract players, wherein efficient and smooth game operation is one of the key factors for improving the game experience. The current universal interaction mode is that the left hand controls the displacement of the virtual character, the right hand controls the visual angle rotation of the virtual character, and meanwhile, the right hand also needs to control the switching between the visual angle rotation of the virtual character and the interaction actions such as skill release, so that when a player is in a visual angle rotation control state, the skill release cannot be carried out, the smooth feeling of a game is influenced, and the game experience of the player is reduced; in addition, in the related art, a control for switching the displacement state and the view angle control state is provided, but the two states cannot be considered in the process of switching the states through the control, the fluency of game operation is still influenced, discomfort is brought to a player, and the game experience is poor.
Based on this, in the present exemplary embodiment, a control method of a virtual object is first provided. Referring to fig. 1, the method for controlling a virtual object may include the steps of:
step S110: detecting sliding operation in the interactive interface, and judging whether the sliding point position of the sliding operation moves from the virtual rocker area to the visual angle rotation area;
step S120: and if the sliding point position moves from the virtual rocker area to the visual angle rotating area, controlling the virtual object to be converted from a displacement state to a visual angle rotating state, wherein the visual angle rotating area is provided at a preset distance on the periphery of the virtual rocker area.
According to the control method of the virtual object in the exemplary embodiment, the displacement and the view angle rotation of the player can be controlled by a single gesture through switching the position of the sliding point between the virtual rocker area and the view angle rotation area, so that the mutual exclusion effect of the view angle rotation control and other interactive actions is avoided, and the smoothness and the operation efficiency of game operation are improved; meanwhile, the operation areas corresponding to the state control (displacement state and visual angle control state) and skill release of the virtual character are partitioned, so that the behavior habits of the player are met, the thinking cost of the player during selection and operation is reduced, and the game competition experience of the player is improved.
The control method of the virtual object in the present exemplary embodiment will be further explained below.
In step S110, a sliding operation in the interactive interface is detected, and it is determined whether a sliding point position of the sliding operation moves from the virtual rocker area to the view angle rotation area.
In an exemplary embodiment of the present disclosure, the virtual rocker area is an area where the virtual character is controlled to move by the virtual direction key, and the virtual character can be controlled to move based on the sliding operation of the user in the virtual rocker area; the virtual rocker area may be square, circular, or semicircular, and the like, which is not limited in this disclosure. In the embodiment of the disclosure, a visual angle rotation area is provided at a preset distance on the periphery of the virtual rocker area, wherein the visual angle rotation area can be used as a trigger area for triggering a visual angle rotation state area; the peripheral distance of the virtual rocker area can be preset, the area surrounded by the virtual rocker area is used as the visual angle rotating area, and a certain area at the preset distance from the virtual rocker area can be used as the visual angle rotating area. 2A-2E are schematic diagrams illustrating a control method of a virtual object, and as shown in FIG. 2A, a virtual stick region 201 is provided, when the virtual object is in a displacement state, by detecting a sliding operation in the virtual stick region 201, and controlling the virtual object to displace according to the sliding operation; as shown in fig. 2B, a circular view angle rotation region 202 is provided at a predetermined distance on the outer circumference of the virtual rocker region 201; meanwhile, the area between the virtual joystick area 201 and the view angle rotation area 202 is set as an activation prompt area 203 to serve as a trigger area for activating the view angle rotation area, and of course, as shown in fig. 2C, a partial area in the view angle rotation area 202 may be intercepted to serve as a view angle rotation area 204, and a sector area between the view angle rotation area 204 and the virtual joystick area 201 may serve as an activation prompt area 205.
Specifically, before the position of the sliding point is moved to the visual angle rotating area from the virtual rocker area, the position of the sliding point is moved to the activation prompting area from the virtual rocker area to activate the visual angle rotating area, so that operation prompt and feedback are provided for a player visually, and misoperation of the player is prevented. Fig. 3 shows a flowchart of the activation of the view rotation area, and as shown in fig. 3, the activation process includes the following steps: in step S310, it is determined whether the position of the sliding point moves from the virtual joystick region to the activation prompt region, and as shown in fig. 2A, when the position of the sliding point is in the virtual joystick region 201, the interactive interface does not display the view angle rotation region, and the player can control the movement of the virtual object through the sliding operation in the virtual joystick region 201, so that when the view angle rotation of the player does not need to be controlled, the view angle rotation region is prevented from occupying the interface space of the interactive interface, and the game screen and the game operation of the player are prevented from being interfered; in step S320, if the position of the sliding point moves from the virtual joystick area to the activation prompt area, the view angle rotation area is displayed in a first display state, as shown in fig. 2B, when the position of the sliding point moves from the virtual joystick area 201 to the activation prompt area 203, the view angle rotation area 202 is triggered, and the view angle rotation area 202 is displayed in a first display mode, where displaying the view angle rotation area 202 in the first display mode may prompt the player that the position of the view angle rotation area is located, so as to prevent the player from performing a misoperation, the first display mode may be a breathing effect, and may also be displayed in a color different from that of the virtual joystick area 201, which is not specifically limited in this disclosure.
In step S120, if the position of the sliding point moves from the virtual joystick area to the view rotation area, the virtual object is controlled to be converted from the displacement state to the view rotation state.
In an exemplary embodiment of the present disclosure, referring to fig. 2D, when the position of the sliding point moves from the virtual rocker area 201, through the activation prompting area 203, to the viewing angle rotation area 202, the virtual object is controlled to be converted from the displacement state to the viewing angle rotation state; meanwhile, the viewing angle rotating area 202 may be displayed in the second display state so as to prompt the user that the viewing angle rotating state has been entered. The second display state is different from the first display state, for example, when the first display state is a respiratory movement effect, the second display state can be a certain fixed state, and the respiratory movement effect is cancelled; or, a color different from the first display state is selected for display, and of course, other display modes may be selected according to actual development requirements, and the present disclosure includes but is not limited to the above display modes. In addition, in the process that the sliding point position of the sliding operation in the interactive interface is activated by the virtual rocker area to enable the prompt area to slide to the visual angle rotation area, the track of the sliding point can be a linear track, a curve track and the like, and the track of the sliding point is only required to be continuously slid among the three areas, so that special requirements are not required in the method.
In an alternative embodiment, the orientation and direction of movement of the virtual object are maintained after the transition to the perspective rotated state. Therefore, under the condition that the virtual object is not influenced to move, the visual angle is rotated to check the nearby environment condition, and the continuity of the game process is improved.
Specifically, the viewing angle rotation state is a composite state, and after the virtual object enters the viewing angle rotation state, the orientation and the moving direction of the virtual object are always kept unchanged without active adjustment, so that the viewing angle of the virtual object can be controlled to rotate through the sliding operation in the viewing angle control area without influencing the traveling of the virtual object. The visual angle control area can be a non-virtual rocker area, namely, the visual angle of the virtual object can be controlled to rotate through sliding operation in the non-virtual rocker area; and a target area can also be selected as a viewing angle control area in the interactive interface, which is not particularly limited by the present disclosure. Fig. 4 shows a flowchart for controlling the rotation of the angle of view of the virtual object in the angle of view rotation state, and as shown in fig. 4, the process includes the following steps: in step S410, a sliding track corresponding to a sliding operation within the view angle control area is detected; in step S420, the angle of view of the virtual object is rotated in the direction corresponding to the sliding trajectory, and the virtual object is controlled to maintain the moving state. Specifically, the direction corresponding to the sliding operation may be determined according to the position of the end point of the sliding operation, or may be determined according to an included angle between a direction vector formed by the start point position coordinate and the end point position coordinate of the sliding operation and a preset axis in the view angle control area.
Further, when the virtual object is in the view angle rotation state, the view angle rotation of the virtual object can be controlled through a sliding operation in the view angle control area, and the moving direction of the virtual object can be controlled through an active clicking operation in the virtual joystick area. Specifically, fig. 5 shows a flowchart for controlling the virtual object to be displaced in the view angle rotating state, and as shown in fig. 5, the process includes: in step S510, position coordinates of a click operation within the virtual stick region are detected; in step S520, determining a direction corresponding to the position coordinates as a target moving direction, and controlling the virtual object to keep moving in the target moving direction; the target moving direction can be determined by the minimum angle formed by the position of the position coordinate of the clicking operation and the preset axis in the virtual rocker area.
It should be noted that, in the above exemplary embodiment, it is described that when the virtual object is in the view angle rotation state, the virtual object always keeps the moving state, and the orientation and the moving direction of the virtual object are kept unchanged without active adjustment; furthermore, the moving direction of the virtual object can be controlled by detecting the clicking operation in the virtual rocker area, namely, the visual angle rotating state integrates the dual functions of keeping displacement and visual angle rotation, the state switching and operation control process of the virtual object can be carried out through single gesture operation in the virtual rocker area, the visual angle rotating area and the visual angle control area, the interruption of the state switching to the game process is avoided, and the smoothness of the game operation is improved.
In addition, in the exemplary embodiment of the present disclosure, the virtual object may also be controlled to enter a pure view angle rotation state by detecting a pressing operation within the virtual joystick region, that is, the view angle of the virtual object is controlled to rotate while the virtual object remains in a stationary state. Fig. 6 shows a flowchart for controlling a virtual object to enter a pure view rotation state, as shown in fig. 6, the process includes:
in step S610, whether a target pressing operation exists in the virtual rocker area is detected.
In an exemplary embodiment of the present disclosure, the target pressing operation may be a single operation of double-clicking an interface, pressing for more than a preset time, and the like by touching the virtual rocker area with a finger, or a combination of a plurality of pressing operations may be used as the target pressing operation; the position of the target pressing operation can be any position in any direction of the virtual rocker area, and when the target pressing operation is detected, the virtual object can be in a displacement state, a visual angle rotation state or other states.
In step S620, if there is a target pressing operation in the virtual joystick region, the virtual object is controlled to be in a static state, and the view rotation region is displayed in a second display state.
In an exemplary embodiment of the present disclosure, if there is a target pressing operation in the virtual joystick region, the virtual object is controlled to be in a stationary state, and a viewing angle rotation state is displayed in the second display state, so as to prompt the player that the viewing angle of the virtual object can be currently adjusted.
In step S630, a sliding trajectory corresponding to the sliding operation within the view angle control area is detected, and the view angle of the virtual object is rotated in a direction corresponding to the sliding trajectory.
In the exemplary embodiment of the present disclosure, in accordance with the virtual object being in the viewing angle rotating state, the direction corresponding to the sliding operation may be determined according to the position of the end point of the sliding operation, or may be determined according to the included angle between the direction vector formed by the start point position coordinate and the end point position coordinate of the sliding operation and the preset axis in the viewing angle control area.
In an exemplary embodiment of the present disclosure, when it is not necessary to control the view angle rotation of the virtual object, it may be detected whether a slide point position of a slide operation in the interactive interface moves from the view angle rotation region to the virtual stick region; if the position of the sliding point moves from the view angle rotating area to the virtual rocker area, the virtual object is controlled to be converted from the current state to the displacement state, and the second display state of the view angle rotating area is cancelled, wherein the current state can be the view angle rotating state or the pure view angle rotating state (i.e. the state of being static but the view angle being controllable). Referring to fig. 2E, after the virtual object enters the displacement state, the view angle rotation area disappears, so that additional shielding of the interactive interface by the view angle rotation area is avoided, and interface space resources are saved.
In conclusion, by sliding the position of the sliding point between the virtual rocker area and the visual angle rotation area, the virtual object can be controlled by a single gesture to switch between the displacement state and the visual angle rotation state, so that the continuity of virtual object state switching is improved, and the improvement of the game operation efficiency is facilitated; meanwhile, the visual angle rotation state is a moving-visual angle control composite state, so that the dual functions of moving and visual angle switching are kept, and the operability and continuity of the game are improved. In addition, through the target pressing operation in the virtual rocker area, the virtual object can be kept static, and meanwhile, the switching of the visual angle is carried out, namely, through the control method of the virtual object, the virtual object can be controlled to be switched among a displacement state, a visual angle rotation state (keeping the movement state) and a pure visual angle control state (keeping the static state) through a single gesture, the fluency of the whole game is improved, and the operation efficiency of the game is improved.
In addition, in an exemplary embodiment of the present disclosure, a control apparatus of a virtual object is also provided. Referring to fig. 7, the control apparatus 700 of the virtual object may include a judgment module 710 and a control module 720. In particular, the amount of the solvent to be used,
a determining module 710, configured to detect a sliding operation in the interactive interface, and determine whether a sliding point position of the sliding operation moves from a virtual rocker area to a viewing angle rotation area;
a control module 720, configured to control the virtual object to be converted from a displacement state to a view rotation state if the sliding point position moves from the virtual rocker area to the view rotation area, where the view rotation area is provided at a preset distance on the outer periphery of the virtual rocker area.
The specific details of each module/unit in the above-mentioned apparatus have been described in detail in the embodiments of the method section, and thus are not described again.
In addition, in an exemplary embodiment of the present disclosure, a computer storage medium capable of implementing the above method is also provided. On which a program product capable of implementing the above-described method of the present specification is stored. In some possible embodiments, aspects of the present disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present disclosure described in the "exemplary methods" section above of this specification, when the program product is run on the terminal device.
Referring to fig. 8, a program product 800 for implementing the above method according to an exemplary embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided. As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 900 according to such an embodiment of the disclosure is described below with reference to fig. 9. The electronic device 900 shown in fig. 9 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present disclosure.
As shown in fig. 9, the electronic device 900 is embodied in the form of a general purpose computing device. Components of electronic device 900 may include, but are not limited to: the at least one processing unit 910, the at least one storage unit 920, a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910), and a display unit 940.
Wherein the storage unit stores program code that is executable by the processing unit 910 to cause the processing unit 910 to perform steps according to various exemplary embodiments of the present disclosure described in the above section "exemplary method" of the present specification.
The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM)9201 and/or a cache memory unit 9202, and may further include a read only memory unit (ROM) 9203.
Storage unit 920 may also include a program/utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 930 can be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 900 may also communicate with one or more external devices 1000 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 900, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 900 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interface 950. Also, the electronic device 900 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 960. As shown, the network adapter 960 communicates with the other modules of the electronic device 900 via the bus 930. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (9)

1. A control method of a virtual object is applied to a touch terminal capable of presenting an interactive interface, and is characterized by comprising the following steps:
detecting sliding operation in the interactive interface, and judging whether the sliding point position of the sliding operation moves from the virtual rocker area to the visual angle rotating area;
if the sliding point position moves from the virtual rocker area to the visual angle rotating area, the virtual object is controlled to be converted from a displacement state to a visual angle rotating state, wherein the visual angle rotating area is provided at a position with a preset distance from the periphery of the virtual rocker area;
detecting a sliding track corresponding to sliding operation in a visual angle control area, rotating the visual angle of the virtual object along the direction corresponding to the sliding track, and controlling the virtual object to keep a moving state;
and detecting the position coordinate of the clicking operation in the virtual rocker area, determining the direction corresponding to the position coordinate as a target moving direction, and controlling the virtual object to keep a moving state towards the target moving direction.
2. The method for controlling the virtual object according to claim 1, wherein the detecting a sliding operation in the interactive interface and determining whether a sliding point position of the sliding operation moves from a virtual joystick region to a view angle rotation region comprises:
judging whether the position of the sliding point moves from the virtual rocker area to an activation prompting area;
if the position of the sliding point moves from the virtual rocker area to the activation prompt area, displaying the visual angle rotation area in a first display state;
the activation prompting area is an area between the virtual rocker area and the visual angle rotating area.
3. The method for controlling a virtual object according to claim 1, wherein after the controlling the virtual object to be converted from the displacement state to the view angle rotation state if the sliding point position is moved from the virtual rocker region to the view angle rotation region, the method further comprises:
and displaying the visual angle rotating area in a second display state.
4. The method for controlling a virtual object according to claim 1, further comprising:
detecting whether a target pressing operation exists in the virtual rocker area;
if the target pressing operation exists in the virtual rocker area, controlling the virtual object to be in a static state, and displaying the visual angle rotating area in a second display state;
and detecting a sliding track corresponding to the sliding operation in the visual angle control area, and rotating the visual angle of the virtual object along the direction corresponding to the sliding track.
5. The method for controlling a virtual object according to any one of claims 1 to 4, when the virtual object is in the displacement state, comprising:
and detecting the sliding operation in the virtual rocker area, and controlling the virtual object to displace according to the sliding operation.
6. The method for controlling a virtual object according to claim 3 or 4, wherein the method further comprises:
detecting whether the position of the sliding point moves to the virtual rocker area from the visual angle rotating area or not;
and if the sliding point position moves from the view angle rotating area to the virtual rocker area, controlling the virtual object to be converted from the current state to the displacement state, and canceling the second display state of the view angle rotating area.
7. A control device of a virtual object is applied to a touch terminal capable of presenting an interactive interface, and is characterized by comprising:
the judging module is used for detecting the sliding operation in the interactive interface and judging whether the sliding point position of the sliding operation moves from the virtual rocker area to the visual angle rotating area;
the control module is used for controlling the virtual object to be converted from a displacement state to a visual angle rotation state if the sliding point position moves from the virtual rocker area to the visual angle rotation area, wherein the visual angle rotation area is provided at the position of a preset distance on the periphery of the virtual rocker area;
the control module is further used for detecting a sliding track corresponding to sliding operation in the visual angle control area, rotating the visual angle of the virtual object along the direction corresponding to the sliding track, and controlling the virtual object to keep a moving state; and detecting the position coordinate of the clicking operation in the virtual rocker area, determining the direction corresponding to the position coordinate as a target moving direction, and controlling the virtual object to keep a moving state towards the target moving direction.
8. A storage medium having stored thereon a computer program which, when executed by a processor, implements a method of controlling a virtual object according to any one of claims 1 to 6.
9. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of controlling a virtual object of any of claims 1 to 6 via execution of the executable instructions.
CN201910244832.0A 2019-03-28 2019-03-28 Virtual object control method and device, computer storage medium and electronic equipment Active CN109960558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910244832.0A CN109960558B (en) 2019-03-28 2019-03-28 Virtual object control method and device, computer storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910244832.0A CN109960558B (en) 2019-03-28 2019-03-28 Virtual object control method and device, computer storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN109960558A CN109960558A (en) 2019-07-02
CN109960558B true CN109960558B (en) 2022-06-14

Family

ID=67025146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910244832.0A Active CN109960558B (en) 2019-03-28 2019-03-28 Virtual object control method and device, computer storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN109960558B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110711388B (en) * 2019-11-08 2021-11-23 腾讯科技(深圳)有限公司 Virtual object control method, device and storage medium
CN111359211B (en) 2020-03-02 2022-01-25 腾讯科技(深圳)有限公司 Role conversion method and device, computer equipment and storage medium
CN111481923B (en) * 2020-05-18 2023-09-26 网易(杭州)网络有限公司 Rocker display method and device, computer storage medium and electronic equipment
CN111803935B (en) * 2020-07-23 2024-02-09 网易(杭州)网络有限公司 Method, device, equipment and storage medium for controlling rotation of virtual object
CN112245908A (en) * 2020-11-06 2021-01-22 网易(杭州)网络有限公司 Method and device for controlling game virtual character, storage medium and electronic equipment
CN112416196B (en) * 2020-11-19 2022-08-30 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and computer readable storage medium
CN113713372B (en) * 2021-09-09 2024-02-09 腾讯科技(深圳)有限公司 Virtual character control method and device, storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630374A (en) * 2015-12-17 2016-06-01 网易(杭州)网络有限公司 Virtual character control mode switching method and device
CN109045685A (en) * 2018-06-04 2018-12-21 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140218289A1 (en) * 2013-02-06 2014-08-07 Motorola Mobility Llc Electronic device with control interface and methods therefor
CN108434732A (en) * 2018-03-23 2018-08-24 网易(杭州)网络有限公司 Virtual object control method and device, storage medium, electronic equipment
CN108379844B (en) * 2018-03-30 2020-10-23 腾讯科技(深圳)有限公司 Method, device, electronic device and storage medium for controlling movement of virtual object

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630374A (en) * 2015-12-17 2016-06-01 网易(杭州)网络有限公司 Virtual character control mode switching method and device
CN109045685A (en) * 2018-06-04 2018-12-21 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109960558A (en) 2019-07-02

Similar Documents

Publication Publication Date Title
CN109960558B (en) Virtual object control method and device, computer storage medium and electronic equipment
CN107008003B (en) Information processing method, information processing device, electronic equipment and computer readable storage medium
CN108579089B (en) Virtual item control method and device, storage medium and electronic equipment
US11752432B2 (en) Information processing device and method of causing computer to perform game program
CN109460179B (en) Virtual object control method and device, electronic equipment and storage medium
CN109550247A (en) Virtual scene method of adjustment, device, electronic equipment and storage medium in game
CN107329690B (en) Virtual object control method and device, storage medium and electronic equipment
CN108553892B (en) Virtual object control method and device, storage medium and electronic equipment
CN109939433B (en) Operation control method and device of virtual card, storage medium and electronic equipment
CN109260713B (en) Virtual object remote assistance operation method and device, storage medium and electronic equipment
CN108776544B (en) Interaction method and device in augmented reality, storage medium and electronic equipment
CN111420395B (en) Interaction method and device in game, readable storage medium and electronic equipment
CN111773677B (en) Game control method and device, computer storage medium and electronic equipment
CN109542323B (en) Interaction control method and device based on virtual scene, storage medium and electronic equipment
CN111481923B (en) Rocker display method and device, computer storage medium and electronic equipment
CN111346369A (en) Shooting game interaction method and device, electronic equipment and storage medium
CN108355352B (en) Virtual object control method and device, electronic device and storage medium
CN111773703B (en) Game object display method, game object display device, storage medium and terminal equipment
CN111760272B (en) Game information display method and device, computer storage medium and electronic equipment
CN111530065A (en) Game control method and device, computer storage medium and electronic equipment
CN114011062A (en) Information processing method, information processing device, electronic equipment and storage medium
CN112263830B (en) Virtual target locking method, device, equipment and medium
CN107491262A (en) Virtual object control method and device, storage medium, electronic equipment
WO2024007675A1 (en) Virtual object switching method and apparatus, storage medium, and electronic apparatus
WO2022247318A1 (en) Game interface display method and apparatus, and device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant