CN109918004B - Virtual role control method and device - Google Patents

Virtual role control method and device Download PDF

Info

Publication number
CN109918004B
CN109918004B CN201910167898.4A CN201910167898A CN109918004B CN 109918004 B CN109918004 B CN 109918004B CN 201910167898 A CN201910167898 A CN 201910167898A CN 109918004 B CN109918004 B CN 109918004B
Authority
CN
China
Prior art keywords
virtual
determining
virtual character
pressure
pressing operation
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
CN201910167898.4A
Other languages
Chinese (zh)
Other versions
CN109918004A (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 CN201910167898.4A priority Critical patent/CN109918004B/en
Publication of CN109918004A publication Critical patent/CN109918004A/en
Application granted granted Critical
Publication of CN109918004B publication Critical patent/CN109918004B/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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • 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/0485Scrolling or panning

Landscapes

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

Abstract

The present disclosure relates to a virtual character control apparatus and method. The device includes: the display module is used for controlling a display area of the touch equipment to display an operation interface, and the operation interface at least comprises a controllable virtual role; the event acquisition module is used for periodically detecting a touch event of the virtual rocker area, and the touch event simultaneously comprises sliding operation and pressing operation; the first determining module is used for determining a sliding track of sliding operation and determining the swing direction of a virtual rocker in a virtual rocker area according to the sliding track; the second determining module is used for determining the pressure value of the pressing operation and determining the attack operation of the virtual character according to the pressure value; and the action control module is used for controlling the virtual character to move according to the swinging direction of the virtual rocker and controlling the virtual character to execute the attack operation. The method can integrate the moving operation and the attacking operation which need to be respectively controlled by two hands in the prior art into a virtual rocker area for control.

Description

Virtual role control method and device
This application is a divisional application of a patent application having an application date of 2015, 12/17, an application number of 201510956017.9 and an invention name of "virtual character control method and apparatus".
Technical Field
The disclosure relates to the technical field of touch terminal display, in particular to a virtual character control method and a virtual character control device.
Background
With the rapid development of mobile communication technology, more and more game applications are appearing on touch terminals. In the running process of the game application, the touch terminal displays various game objects according to a certain layout so as to present game scenes to a user and provide a game operation interface.
Referring to fig. 1, an operation interface 10 of a touch terminal game application is shown, wherein a virtual joystick area 101 and an attack button 102 are respectively arranged on the left and right sides of the game operation interface 10. In the touch terminal game application, the operation steps when the user controls the own virtual character 103 in the game to attack the enemy virtual character 104 are as follows:
sliding the virtual joystick of the virtual joystick area 101 with one hand of the user moves the own virtual character 103 to a position where an attack can be initiated, for example, in an action-based game application, the own virtual character 103 faces the position of the enemy virtual character and the enemy virtual character 104 is within the attack range of the own virtual character 103 through continuous movement; after controlling the own virtual character 103 to complete the movement action, the other hand of the user clicks the attack button 102 to trigger the own virtual character to execute the attack action.
In the touch terminal game application, if a user autonomously controls the movement and attack of the own virtual character, two hands are generally required to cooperate with the attack button through the virtual joystick. Due to the operation mode, most touch terminal game applications cannot be operated by one hand, the game situation of the touch terminal game applications is limited, and the game is not favorable for playing by using the fragment time; in addition, in the tense battle, the two hands are not tightly combined in step operation, and a large misoperation rate exists.
It is to be noted that the information disclosed in the above background section 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
In order to solve some or all of the problems in the prior art, the present disclosure provides a virtual character control method and a virtual character control apparatus.
According to a first aspect of the embodiments of the present disclosure, a virtual character control apparatus is provided, which is applied to a touch device capable of implementing pressure sensing; the virtual character control apparatus includes:
the display module is used for controlling a display area of the touch equipment to display an operation interface, and the operation interface at least comprises a controllable virtual role;
the event acquisition module is used for periodically detecting a touch event of the virtual rocker area, and the touch event simultaneously comprises a sliding operation and a pressing operation;
the first determining module is used for determining a sliding track of sliding operation and determining the swinging direction of a virtual rocker in the virtual rocker area according to the sliding track;
the second determining module is used for determining the pressure value of the pressing operation and determining the attack operation of the virtual character according to the pressure value;
and the action control module is used for controlling the virtual role to move according to the swinging direction of the virtual rocker and controlling the virtual role to execute the attack operation.
In an exemplary embodiment of the present disclosure, the second determining module includes:
the judging unit is used for judging that the pressure value of the pressing operation is in a first pressure interval or a second pressure interval; the maximum value in the first pressure interval is smaller than the minimum value in the second pressure interval;
a first determination unit configured to determine that the virtual character does not perform an attack operation when a pressure value of the pressing operation is in the first pressure interval;
a second determining unit, configured to determine that the virtual character performs an attack operation when a pressure value of the pressing operation is in the second pressure interval.
In an exemplary embodiment of the disclosure, the second determining module further includes:
the first timing unit is used for acquiring the time that the pressure value of the pressing operation is continuously in the second pressure interval;
and the third determining unit is used for determining that the virtual character continuously executes the attack operation after the time that the pressure value of the pressing operation is continuously in the second pressure interval reaches a first preset time.
In an exemplary embodiment of the present disclosure, the second determining module includes:
the judging unit is used for judging that the pressure value of the pressing operation is in a first pressure interval, a second pressure interval or a third pressure interval; the maximum value in the first pressure interval is smaller than the minimum value in a second pressure interval, and the maximum value in the second pressure interval is smaller than the minimum value in a third pressure interval;
a first determination unit configured to determine that the virtual character does not perform an attack operation when a pressure value of the pressing operation is in the first pressure interval;
a second determination unit, configured to determine that the virtual character performs a first attack operation when a pressure value of the pressing operation is in the second pressure interval;
a third determining unit, configured to determine that the virtual character performs a second attack operation when the pressure value of the pressing operation is in the third pressure interval.
In an exemplary embodiment of the disclosure, the second determining module further includes:
the first timing unit is used for acquiring the time that the pressure value of the pressing operation is continuously in the second pressure interval;
a fourth determining unit, configured to determine that the virtual character continuously performs the first attack operation after a time that a pressure value of the pressing operation is continuously in the second pressure interval reaches a first predetermined time.
In an exemplary embodiment of the disclosure, the second determining module further includes:
the second timing unit is used for acquiring the time of the pressure value of the pressing operation lasting in the second pressure interval after the pressure value is separated from the third pressure interval;
a fifth determining unit, configured to determine that the virtual character does not perform an attack operation when a time during which a pressure value of the pressing operation is continuously in the second pressure interval is less than a second preset time.
In an exemplary embodiment of the present disclosure, the virtual character control apparatus further includes:
and the virtual rocker area registration module is used for registering the preset range of the display area as the virtual rocker area when the event acquisition module detects the touch event.
In an exemplary embodiment of the present disclosure, the virtual character control apparatus further includes:
and the virtual rocker area registration module is used for registering the corresponding range of the touch event in the display area as the virtual rocker area when the event acquisition module detects the touch event.
According to a second aspect of the embodiments of the present disclosure, a virtual character control method is provided, which is applied to a touch device capable of implementing pressure sensing; the virtual role control method comprises the following steps:
s1, controlling a display area of the touch control equipment to display an operation interface, wherein the operation interface at least comprises a controllable virtual role;
s2, periodically detecting a touch event of a virtual rocker area, wherein the touch event comprises a sliding operation and a pressing operation;
s3, determining a sliding track of sliding operation, and determining the swing direction of a virtual rocker in the virtual rocker area according to the sliding track;
s4, determining a pressure value of the pressing operation, and determining the attack operation of the virtual character according to the pressure value;
and S5, controlling the virtual character to move according to the swinging direction of the virtual rocker and controlling the virtual character to execute the attack operation.
In an exemplary embodiment of the present disclosure, the step S4 includes:
s41, judging that the pressure value of the pressing operation is in a first pressure interval or a second pressure interval; the maximum value in the first pressure interval is smaller than the minimum value in the second pressure interval;
s42, when the pressure value of the pressing operation is in the first pressure interval, determining that the virtual character does not execute the attack operation;
s43, when the pressure value of the pressing operation is in the second pressure interval, determining that the virtual character executes the attack operation.
In an exemplary embodiment of the present disclosure, the step S4 further includes:
s44, acquiring the time that the pressure value of the pressing operation is continuously in the second pressure interval;
and S45, determining that the virtual character continuously executes the attack operation after the time that the pressure value of the pressing operation is continuously in the second pressure interval reaches a first preset time.
In an exemplary embodiment of the present disclosure, the step S4 includes:
s41, judging that the pressure value of the pressing operation is in a first pressure interval, a second pressure interval or a third pressure interval; the maximum value in the first pressure interval is smaller than the minimum value in a second pressure interval, and the maximum value in the second pressure interval is smaller than the minimum value in a third pressure interval;
s42, when the pressure value of the pressing operation is in the first pressure interval, determining that the virtual character does not execute the attack operation;
s43, when the pressure value of the pressing operation is in the second pressure interval, determining that the virtual character executes a first attack operation;
and S44, when the pressure value of the pressing operation is in the third pressure interval, determining that the virtual character executes a second attack operation.
In an exemplary embodiment of the present disclosure, the step S4 further includes:
s45, acquiring the time that the pressure value of the pressing operation is continuously in the second pressure interval;
s46, after the time that the pressure value of the pressing operation is continuously in the second pressure interval reaches a first preset time, determining that the virtual character continuously executes the first attack operation.
In an exemplary embodiment of the present disclosure, the step S4 further includes:
s47, acquiring the duration of the pressure value of the pressing operation in the second pressure interval after the pressure value is separated from the third pressure interval;
and S48, when the time that the pressure value of the pressing operation is continuously in the second pressure interval is less than a second preset time, determining that the virtual character does not execute the attack operation.
In an exemplary embodiment of the present disclosure, the virtual character control method further includes:
s0., registering the preset range of the display area as the virtual joystick area when the touch event is detected in the step S1.
In an exemplary embodiment of the present disclosure, the virtual character control method further includes:
s0., when it is detected in the step S1 that a touch event occurs in the blank area of the operation interface, registering a range corresponding to the touch event in the operation interface as the virtual joystick area.
The virtual character control device in one embodiment of the disclosure can integrate the moving operation and the attacking operation which need to be respectively controlled by two hands in the prior art into one virtual rocker area for control based on a pressure-sensitive touch technology, and can control the virtual character to simultaneously perform the attacking operation and the moving operation, so that on one hand, a user can smoothly operate a game application by one hand, and the game application can adapt to more game situations; on the other hand, the adjustment time required by the user to start the attack is greatly reduced, so that the player can better perform instant reaction; on the other hand, an attack button interface in the prior art can be omitted, so that more space can be utilized for effective display, and better sensory experience is provided for a user while the screen utilization rate 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 accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 schematically shows an operation interface of a game application.
Fig. 2 schematically illustrates a block diagram of a virtual character control apparatus in an exemplary embodiment of the present disclosure.
Fig. 3 schematically illustrates an operation interface of a game application in an exemplary embodiment of the present disclosure.
Fig. 4 schematically illustrates a block diagram of a second determination module in an exemplary embodiment of the disclosure.
Fig. 5 schematically illustrates another block diagram of the second determination module in an exemplary embodiment of the disclosure.
Fig. 6 schematically illustrates an operation interface of another game application in the exemplary embodiment of the present disclosure.
Fig. 7 schematically illustrates a flowchart of a virtual character control method in an exemplary embodiment of the present disclosure.
Fig. 8 schematically shows a flowchart of step S4 in an exemplary embodiment of the present disclosure.
Fig. 9 schematically shows another flowchart of step S4 in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, 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 example embodiments to those skilled in the art. 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 the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
With the development of electronic technology, touch devices capable of sensing pressure have been implemented, so that new manipulation and input modes can be brought to users. For example, hua corporation and apple corporation both released touch-sensitive smart phones with pressure sensing in 2015. The touch equipment can sense the touch operation of a user to be used as the input of the touch equipment, and can sense the pressure, the position and the acting time, so that the pressure is independently used as the input of the touch equipment, or the pressure and other input modes are combined to be used as the input of the touch equipment, and a lot of convenience and interestingness are brought to the operation of the user.
In the present exemplary embodiment, a virtual character control apparatus is first provided, and the virtual character control apparatus is mainly applied to the touch device capable of implementing pressure sensing. The touch control device can be various touch control devices capable of realizing pressure sensing, such as a mobile phone, a tablet computer, a notebook computer, a game machine, a PDA and the like. Referring to fig. 2, the virtual character control apparatus 1 mainly includes an event acquisition module 11, a first determination module 12, a second determination module 13, an action control module 14, and a presentation module 15. Wherein:
the display module 15 is mainly used for controlling the display area of the touch device to display an operation interface 10. Referring to fig. 3, the game application controls the touch screen of the touch device through an Application Program Interface (API) of the touch device to display the game operation interface 10, and the operation interface 10 in the present exemplary embodiment may be the whole displayable area of the touch device, i.e. full screen display; or may be a part of a displayable area of the touch device, i.e., a window display. The operation interface 10 at least includes a controllable virtual character, such as a self virtual character 103, and may further include a virtual joystick area 101, where a virtual joystick is located in the virtual joystick area 101; in addition, the operation interface 10 may include other parts such as an enemy avatar 104, a neutral avatar, an friend avatar, a virtual battle scene, a virtual natural environment, operation buttons, and an information bar.
The event acquiring module 11 is mainly configured to periodically detect a touch event of the virtual joystick area 101, where the touch event includes a sliding operation and a pressing operation. With continued reference to that shown in FIG. 3, the user may perform a simple sliding operation, a simple pressing operation, and a pressing operation simultaneously with the sliding operation in the virtual rocker area 101 of the game interface 10. The pressing operation may be classified into a plurality of different levels according to the pressure value of the pressing operation, for example, into an extremely light pressing (which may be regarded as not pressing) and a normal pressing, or into a heavy pressing, a light pressing, and an extremely light pressing (which may be regarded as not pressing), and further levels may be classified according to the sensitivity of the pressure sensing module. Depending on the duration of the pressing operation, a single pressing operation may be divided into a short pressing operation and a long pressing operation. The specific division criteria of the pressing operation, such as how large the pressure value exceeds is the heavy pressure, how long the pressure value exceeds is the long pressure, etc., may be set by the user, the touch device manufacturer, or the game service provider according to the needs, which is not particularly limited in this exemplary embodiment.
The first determining module 12 is mainly configured to determine a sliding track of the sliding operation, and determine a swing direction of the virtual rocker in the virtual rocker area 101 according to the sliding track. For example, referring to fig. 3, according to the trajectory of the sliding operation of the user in the virtual stick region 101, if the sliding trajectory of the user's finger points to the 5 o ' clock direction of the origin of the virtual stick, it may be determined that the user controls the virtual stick to swing to the 5 o ' clock direction. In this exemplary embodiment, the virtual joystick may be represented as an origin that moves in a specific area following the user's finger, or may be represented as an operation panel that can be tilted in different directions, and the specific form may be set by the game service provider, without affecting the implementation of the virtual character control apparatus in this exemplary embodiment.
The second determining module 13 is mainly configured to determine a pressure value of the pressing operation, and determine an attack operation of the virtual character according to the pressure value. In this exemplary embodiment, the attack operation may be a normal attack operation or a special attack operation. In the present exemplary embodiment, the general attack operation mainly refers to an attack operation that can be initiated and executed by a virtual character at any time and quickly, and generally has no cooling time or an extremely short cooling time; the special attack operation mainly refers to an attack operation which needs to meet special conditions to be triggered, such as a heavy hit which needs to consume a certain magic value/angry value and the like to be released, a multiple attack, a legal attack and the like, and generally has cooling time. Further, the attack operation in the present exemplary embodiment mainly refers to an action performed by the virtual character on itself or another virtual character, and thus may further include a therapeutic action, a defensive action, a stealth action, and the like, without being limited to its literal meaning.
The action control module 14 is mainly used for controlling the virtual character to move according to the swing direction of the virtual rocker and controlling the virtual character to execute the attack operation. For example, as mentioned above, if the first determination module 12 determines that the user controls the virtual joystick to swing in the 5 o 'clock direction, the motion control module 14 may control the virtual character to move in the 5 o' clock direction of the current position; at the same time, the action control module 14 also controls the virtual character to execute the attack operation which the second determination module 13 determines needs to execute.
Through the virtual character control device in the exemplary embodiment, based on the pressure-sensitive touch technology, the movement operation and the attack operation which need to be respectively controlled by two hands in the prior art can be integrated into one virtual rocker area for control, and the virtual character can be controlled to simultaneously perform the attack operation and the movement operation, so that on one hand, a user can smoothly operate a game application with one hand, and the game application can adapt to more game situations; on the other hand, the adjustment time required by the user to start the attack is greatly reduced, so that the player can better perform instant reaction; on the other hand, an attack button interface in the prior art can be omitted, so that more space can be utilized for effective display, and better sensory experience is provided for a user while the screen utilization rate is improved.
Referring to fig. 4, in an exemplary embodiment of the present disclosure, the second determining module 13 may include a judging unit 131, a first determining unit 132, and a second determining unit 133.
The determining unit 131 is mainly configured to determine whether a pressure value of the pressing operation is in a first pressure interval or a second pressure interval, where a maximum value in the first pressure interval is smaller than a minimum value in the second pressure interval, and the first pressure interval and the second pressure interval are continuous intervals; for example, the first pressure range is 0 to X1Newton, the second pressure interval is X1~X2Newtons, and the like.
The first determining unit 132 is mainly configured to determine that the virtual character does not perform an attack operation when the pressure value of the pressing operation is in the first pressure interval. Since the user may be accompanied by a slight press during the sliding operation, in the present exemplary embodiment, the press operation in the first pressure interval with a smaller pressure value may be regarded as no press operation, so that it may be determined that the virtual character does not perform an attack operation, and the motion control module 14 may not respond to the press operation, so as to avoid a user from performing a wrong operation.
The second determining unit 133 is mainly configured to determine that the virtual character performs an attack operation when the pressure value of the pressing operation is in the second pressure interval. When the pressure value of the pressing operation is in the second pressure interval with a larger pressure value, it can be determined that the user really performs the pressing operation, so that the virtual character can be determined to perform the attack operation, and the action control module 14 controls the virtual character to perform the attack operation.
In addition, with continued reference to fig. 4, in an exemplary embodiment of the present disclosure, the second determining module 13 may further include a first timing unit 135 and a third determining unit 134. The first timing unit 135 is mainly configured to obtain a time when the pressure value of the pressing operation is continuously in the second pressure interval, that is, obtain a real time when the pressing operation is continuously performed. The third determining unit 134 is mainly configured to determine that the virtual character continuously executes the attack operation after the time that the pressure value of the pressing operation is continuously in the second pressure interval reaches the first predetermined time. The user can be caused to perform an automatic attack after long-pressing for the first predetermined time by the first timing unit 135 and the third determination unit 134. The first predetermined time may be defined by a game developer or may be customized by a user, which is not particularly limited in this exemplary embodiment. If the user stops the pressing operation within the first predetermined time, the pressure value of the pressing operation is in the first pressure interval, and the related embodiments corresponding thereto have been described in detail, so that the details are not repeated.
Referring to fig. 5, in an exemplary embodiment of the present disclosure, the second determining module 13 may include a judging unit 131, a first determining unit 132, a second determining unit 133, and a third determining unit 134.
The determining unit 131 is mainly configured to determine whether a pressure value of the pressing operation is in a first pressure interval, a second pressure interval, or a third pressure interval. The maximum value in the first pressure interval is smaller than the minimum value in a second pressure interval, the maximum value in the second pressure interval is smaller than the minimum value in a third pressure interval, and the first pressure interval, the second pressure interval and the third pressure interval are continuous intervals; for example, the first pressure range is 0 to X1Newton, the second pressure interval is X1~X2Newton, the third pressure interval is X2~X3Newtons, and the like.
The first determining unit 132 is mainly configured to determine that the virtual character does not perform an attack operation when the pressure value of the pressing operation is in the first pressure interval. Since the user may be accompanied by a slight press during the sliding operation, in the present exemplary embodiment, the press operation in the first pressure interval with a smaller pressure value may be regarded as no press operation, so that it may be determined that the virtual character does not perform an attack operation, and the motion control module 14 may not respond to the press operation, so as to avoid a user from performing a wrong operation.
The second determining unit 133 is mainly configured to determine that the virtual character executes the first attack operation when the pressure value of the pressing operation is in the second pressure interval. In this example embodiment, the pressing operation corresponding to the second pressure interval may be a tap operation performed by the user, and the first attack operation may be the above-mentioned general attack or a special attack defined by the user.
The third determining unit 134 is mainly configured to determine that the virtual character performs the second attack operation when the pressure value of the pressing operation is in the third pressure interval. In this example embodiment, the pressing operation corresponding to the third pressure interval may be a user re-pressing operation, and the second attack operation may be the special attack described above or a special attack defined by the user.
By arranging the second determining unit 133 and the third determining unit 134, not only can the user conveniently control the virtual character to simultaneously perform the attack operation and the moving operation, but also the user can conveniently perform different attack operations, and the operability of the game is further enriched while the user operation is not increased.
With continued reference to fig. 5, in an exemplary embodiment of the present disclosure, the second determining module 13 may further include a first timing unit 135 and a fourth determining unit 136. The first timing unit 135 is mainly configured to obtain a time that the pressure value of the pressing operation is continuously in the second pressure interval, that is, obtain a time that the tapping operation is continuously performed. The fourth determining unit 136 is mainly configured to determine that the virtual character continuously executes the attack operation after the time that the pressure value of the pressing operation is continuously in the second pressure interval reaches the first predetermined time. The first timing unit 135 and the fourth determination unit 136 may enable the user to perform an automatic attack after long-pressing for a first predetermined time. The first predetermined time may be defined by a game developer or may be customized by a user, which is not particularly limited in this exemplary embodiment. If the user stops the pressing operation or performs pressing with a larger pressure within the first predetermined time, the pressure value of the pressing operation is in the first pressure interval or the third pressure interval, which has been described in detail in the related embodiments, and thus will not be described again.
In addition, with continued reference to fig. 5, in an exemplary embodiment of the present disclosure, the second determining module 13 may further include a second timing unit 137 and a fifth determining unit 138. The second timing unit 137 is mainly configured to obtain a duration of the second pressure interval after the pressure value of the pressing operation is separated from the third pressure interval; a fifth determining unit 138, configured to determine that the virtual character does not perform an attack operation when a time during which the pressure value of the pressing operation is continuously in the second pressure interval is less than a second preset time. Since the release is usually accompanied by a short tap process after the press-down, and the user may not want to control the virtual character to execute the attack operation at this time, in this example embodiment, by providing the second timing unit 137 and the fifth determining unit 138, it is determined that the user needs to control the character to execute the first attack operation only when the duration of the second pressure interval after the pressure value of the press-down operation is separated from the third pressure interval is not less than the second preset time, that is, it is determined that the press-down is not accompanied by the press-down release, so as to further avoid the misoperation of the user.
In this example embodiment, the virtual character control apparatus may further include a virtual rocker area registration module. The virtual rocker area registration module is mainly configured to register a preset range of the operation interface 10 as the virtual rocker area 101 when the event acquisition module 11 detects the touch event. That is, in the present exemplary embodiment, the virtual joystick area 101 may register a fixed position of the operation interface 10 as the virtual joystick area 101, for example, the preset range is a circular area at the lower right corner of the operation interface 10.
In other exemplary embodiments of the present disclosure, the virtual joystick area registration module may also be mainly configured to register a corresponding range of the touch event in the operation interface 10 as the virtual joystick area 101 when the event acquisition module 11 detects that the touch event occurs in a blank area of the operation interface 10. Thus, as shown in fig. 6, when the user clicks a blank area without buttons in the operation interface 10, the location where the user clicks and the area near the location can be defined as the virtual joystick area 101, so that the virtual joystick area 101 can be changed in location with the mind of the user, and meanwhile, the problem that the virtual joystick area 101 can block objects in the game interface 10 in some fixed scenes in the prior art can be avoided.
Further, the present exemplary embodiment also provides a virtual character control method, which is applied to a touch device capable of implementing pressure sensing; referring to fig. 7, the virtual character controlling method may include the steps of:
s1, controlling a display area of the touch control equipment to display an operation interface, wherein the operation interface at least comprises a controllable virtual role;
s2, periodically detecting a touch event of a virtual rocker area, wherein the touch event comprises a sliding operation and a pressing operation;
s3, determining a sliding track of sliding operation, and determining the swing direction of a virtual rocker in the virtual rocker area according to the sliding track;
s4, determining a pressure value of the pressing operation, and determining the attack operation of the virtual character according to the pressure value;
and S5, controlling the virtual character to move according to the swinging direction of the virtual rocker and controlling the virtual character to execute the attack operation.
Referring to fig. 8, in the present exemplary embodiment, the step S4 may include:
s41, judging that the pressure value of the pressing operation is in a first pressure interval or a second pressure interval; the maximum value in the first pressure interval is smaller than the minimum value in the second pressure interval;
s42, when the pressure value of the pressing operation is in the first pressure interval, determining that the virtual character does not execute the attack operation;
s43, when the pressure value of the pressing operation is in the second pressure interval, determining that the virtual character executes the attack operation.
With continuing reference to fig. 8, in this example embodiment, the step S4 may further include:
s44, acquiring the time that the pressure value of the pressing operation is continuously in the second pressure interval;
and S45, determining that the virtual character continuously executes the attack operation after the time that the pressure value of the pressing operation is continuously in the second pressure interval reaches a first preset time.
Referring to fig. 9, in other example embodiments of the present disclosure, the step S4 may also include:
s41, judging that the pressure value of the pressing operation is in a first pressure interval, a second pressure interval or a third pressure interval; the maximum value in the first pressure interval is smaller than the minimum value in a second pressure interval, and the maximum value in the second pressure interval is smaller than the minimum value in a third pressure interval;
s42, when the pressure value of the pressing operation is in the first pressure interval, determining that the virtual character does not execute the attack operation;
s43, when the pressure value of the pressing operation is in the second pressure interval, determining that the virtual character executes a first attack operation;
and S44, when the pressure value of the pressing operation is in the third pressure interval, determining that the virtual character executes a second attack operation.
With continuing reference to that shown in fig. 9, in other example embodiments of the present disclosure, the second determining module may further include:
s45, acquiring the time that the pressure value of the pressing operation is continuously in the second pressure interval;
s46, after the time that the pressure value of the pressing operation is continuously in the second pressure interval reaches a first preset time, determining that the virtual character continuously executes the attack operation.
With continuing reference to fig. 9, in other example embodiments of the present disclosure, the step S4 may further include:
s47, acquiring the duration of the pressure value of the pressing operation in the second pressure interval after the pressure value is separated from the third pressure interval;
and S48, when the time that the pressure value of the pressing operation is continuously in the second pressure interval is less than a second preset time, determining that the virtual character does not execute the attack operation.
In this example embodiment, the virtual role control method may further include:
s0., when the event acquisition module detects the touch event, registering the preset range of the display area as the virtual joystick area.
In this example embodiment, the virtual role control method may further include:
s0. when the event acquisition module detects the touch event, registering the corresponding range of the touch event in the display area as the virtual rocker area.
The specific details of each step in the virtual character control method have been described in detail in the corresponding virtual character control method, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
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 touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
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 application 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 limited only by the appended claims.

Claims (10)

1. A virtual character control device is applied to touch equipment capable of realizing pressure sensing; characterized in that the virtual character control device comprises:
the display module is used for controlling a display area of the touch equipment to display an operation interface, and the operation interface at least comprises a controllable virtual role;
the event acquisition module is used for periodically detecting touch events in a virtual rocker area, wherein the touch events comprise sliding operation and pressing operation at the same time, and the sliding operation and the pressing operation are detected at the same time so as to control the virtual character to perform moving operation and attack operation at the same time;
the first determining module is used for determining a sliding track of sliding operation and determining the swinging direction of a virtual rocker in the virtual rocker area according to the sliding track;
the second determining module is used for determining a pressure value of the pressing operation and determining the attacking operation of the virtual character according to the pressure value;
and the action control module is used for controlling the virtual role to move according to the swinging direction of the virtual rocker and controlling the virtual role to execute the attack operation.
2. The avatar control apparatus of claim 1, wherein the second determining module comprises:
the judging unit is used for judging that the pressure value of the pressing operation is in a first pressure interval or a second pressure interval; the maximum value in the first pressure interval is smaller than the minimum value in the second pressure interval;
a first determination unit configured to determine that the virtual character does not perform an attack operation when a pressure value of the pressing operation is in the first pressure interval;
a second determining unit, configured to determine that the virtual character performs an attack operation when a pressure value of the pressing operation is in the second pressure interval.
3. The avatar control apparatus of claim 2, wherein the second determining module further comprises:
the first timing unit is used for acquiring the time that the pressure value of the pressing operation is continuously in the second pressure interval;
and the third determining unit is used for determining that the virtual character continuously executes the attack operation after the time that the pressure value of the pressing operation is continuously in the second pressure interval reaches a first preset time.
4. The virtual character control apparatus according to any one of claims 1 to 3, further comprising:
and the virtual rocker area registration module is used for registering the preset range of the display area as the virtual rocker area when the event acquisition module detects the touch event.
5. The virtual character control apparatus according to any one of claims 1 to 3, further comprising:
and the virtual rocker area registration module is used for registering the corresponding range of the touch event in the display area as the virtual rocker area when the event acquisition module detects the touch event.
6. A virtual character control method is applied to touch equipment capable of realizing pressure sensing; the virtual role control method is characterized by comprising the following steps:
s1, controlling a display area of the touch control equipment to display an operation interface, wherein the operation interface at least comprises a controllable virtual role;
s2, periodically detecting a touch event in a virtual rocker area, wherein the touch event comprises a sliding operation and a pressing operation at the same time, and the sliding operation and the pressing operation are detected at the same time so as to control the virtual character to perform a moving operation and an attacking operation at the same time;
s3, determining a sliding track of sliding operation, and determining the swing direction of a virtual rocker in the virtual rocker area according to the sliding track;
s4, determining a pressure value of the pressing operation, and determining the attacking operation of the virtual character according to the pressure value;
and S5, controlling the virtual character to move according to the swinging direction of the virtual rocker and controlling the virtual character to execute the attack operation.
7. The virtual character control method according to claim 6, wherein said step S4 includes:
s41, judging that the pressure value of the pressing operation is in a first pressure interval or a second pressure interval; the maximum value in the first pressure interval is smaller than the minimum value in the second pressure interval;
s42, when the pressure value of the pressing operation is in the first pressure interval, determining that the virtual character does not execute the attack operation;
s43, when the pressure value of the pressing operation is in the second pressure interval, determining that the virtual character executes the attack operation.
8. The virtual character control method according to claim 7, wherein said step S4 further comprises:
s44, acquiring the time that the pressure value of the pressing operation is continuously in the second pressure interval;
and S45, determining that the virtual character continuously executes the attack operation after the time that the pressure value of the pressing operation is continuously in the second pressure interval reaches a first preset time.
9. The virtual character control method according to any one of claims 6 to 8, characterized by further comprising:
s0., registering the preset range of the display area as the virtual joystick area when the touch event is detected in the step S1.
10. The virtual character control method according to any one of claims 6 to 8, characterized by further comprising:
s0., when it is detected in the step S1 that a touch event occurs in the blank area of the operation interface, registering a range corresponding to the touch event in the operation interface as the virtual joystick area.
CN201910167898.4A 2015-12-17 2015-12-17 Virtual role control method and device Active CN109918004B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910167898.4A CN109918004B (en) 2015-12-17 2015-12-17 Virtual role control method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510956017.9A CN105630350B (en) 2015-12-17 2015-12-17 Virtual role control method and device
CN201910167898.4A CN109918004B (en) 2015-12-17 2015-12-17 Virtual role control method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510956017.9A Division CN105630350B (en) 2015-12-17 2015-12-17 Virtual role control method and device

Publications (2)

Publication Number Publication Date
CN109918004A CN109918004A (en) 2019-06-21
CN109918004B true CN109918004B (en) 2021-04-23

Family

ID=56045354

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201510956017.9A Active CN105630350B (en) 2015-12-17 2015-12-17 Virtual role control method and device
CN201910167898.4A Active CN109918004B (en) 2015-12-17 2015-12-17 Virtual role control method and device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201510956017.9A Active CN105630350B (en) 2015-12-17 2015-12-17 Virtual role control method and device

Country Status (1)

Country Link
CN (2) CN105630350B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155553B (en) * 2016-07-05 2020-06-30 网易(杭州)网络有限公司 Virtual object motion control method and device
CN106492457A (en) * 2016-10-20 2017-03-15 北京乐动卓越科技有限公司 A kind of implementation method of full 3D actions mobile phone games fight interactive system and device
CN106843722B (en) * 2016-12-26 2019-12-31 上海莉莉丝网络科技有限公司 Touch control method and touch control device for touch terminal
CN107823884A (en) * 2017-11-27 2018-03-23 网易(杭州)网络有限公司 Destination object determines method, apparatus, electronic equipment and storage medium
CN107992252B (en) * 2017-11-28 2020-12-22 网易(杭州)网络有限公司 Information prompting method and device, electronic equipment and storage medium
CN108310770A (en) * 2018-01-05 2018-07-24 腾讯科技(深圳)有限公司 Control method, device, storage medium and the electronic device of virtual controlling object
CN109032493A (en) * 2018-08-03 2018-12-18 网易(杭州)网络有限公司 Information processing method, device and electronic equipment
CN109364476B (en) * 2018-11-26 2022-03-08 网易(杭州)网络有限公司 Game control method and device
CN109806579A (en) * 2019-02-01 2019-05-28 网易(杭州)网络有限公司 The control method of virtual objects, device, electronic equipment and storage medium in game
CN110898428B (en) * 2019-11-12 2021-09-03 腾讯科技(深圳)有限公司 Multi-virtual object interaction method, device, server and storage medium
CN111450530A (en) * 2020-03-17 2020-07-28 完美世界(重庆)互动科技有限公司 Method and device for controlling role behaviors
CN112698780A (en) * 2020-12-29 2021-04-23 贵阳动视云科技有限公司 Virtual rocker control method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040021663A1 (en) * 2002-06-11 2004-02-05 Akira Suzuki Information processing method for designating an arbitrary point within a three-dimensional space

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5371626B2 (en) * 2009-08-18 2013-12-18 キヤノン株式会社 Display control device, display control device control method, program, and storage medium
CN101853100A (en) * 2010-02-02 2010-10-06 杨开艳 Method of using touch module as game controller
JP5625612B2 (en) * 2010-08-19 2014-11-19 株式会社リコー Operation display device and operation display method
CN103809888B (en) * 2012-11-12 2016-12-21 北京三星通信技术研究有限公司 Mobile terminal and control method thereof
CN104267904A (en) * 2014-09-26 2015-01-07 深圳市睿德网络科技有限公司 Touch screen virtual unit control method and mobile terminal
CN104267854B (en) * 2014-10-16 2017-08-29 孙萍 The control method and device of touch screen terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040021663A1 (en) * 2002-06-11 2004-02-05 Akira Suzuki Information processing method for designating an arbitrary point within a three-dimensional space

Also Published As

Publication number Publication date
CN105630350B (en) 2019-07-16
CN109918004A (en) 2019-06-21
CN105630350A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN109918004B (en) Virtual role control method and device
CN107930122B (en) Information processing method, device and storage medium
US10857462B2 (en) Virtual character controlling method and apparatus, electronic device, and storage medium
CN109364476B (en) Game control method and device
CN108379839B (en) Control response method and device and terminal
KR101570967B1 (en) Game interface method and apparatus for mobile shooting game
CN106155553B (en) Virtual object motion control method and device
KR102151136B1 (en) Intelligent wearable device and control method thereof
CN109857303B (en) Interaction control method and device
CN109847369B (en) Method and device for switching postures of virtual roles in game
CN111330275B (en) Interaction method and device in game, storage medium and electronic equipment
US11590412B2 (en) Information processing method and apparatus, storage medium, and electronic device
US11995310B2 (en) Method and apparatus for displaying interaction interface, storage medium, and electronic device
CN112540740A (en) Split screen display method and device, electronic equipment and readable storage medium
CN106873898B (en) Application program working mode switching method and device and electronic equipment
US9174132B2 (en) Electronic game device, electronic game processing method, and non-transitory computer-readable storage medium storing electronic game program
CN113827970B (en) Information display method and device, computer readable storage medium and electronic equipment
CN113849082B (en) Touch processing method and device, storage medium and mobile terminal
CN112774187B (en) Weapon assembling method and device in game and electronic equipment
CN113230649B (en) Display control method and device
CN115738230A (en) Game operation control method and device and electronic equipment
WO2021203831A1 (en) Virtual object control method and apparatus, computer device, and storage medium
CN113867873A (en) Page display method and device, computer equipment and storage medium
CN112732392A (en) Operation control method and device for application program
JP2015097583A (en) Game device with touch panel, its control method and program

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