WO2024055596A1 - Interaction control method and apparatus for skill cast, and electronic device - Google Patents

Interaction control method and apparatus for skill cast, and electronic device Download PDF

Info

Publication number
WO2024055596A1
WO2024055596A1 PCT/CN2023/091364 CN2023091364W WO2024055596A1 WO 2024055596 A1 WO2024055596 A1 WO 2024055596A1 CN 2023091364 W CN2023091364 W CN 2023091364W WO 2024055596 A1 WO2024055596 A1 WO 2024055596A1
Authority
WO
WIPO (PCT)
Prior art keywords
skill
virtual object
controlled virtual
target
display
Prior art date
Application number
PCT/CN2023/091364
Other languages
French (fr)
Chinese (zh)
Inventor
李宇城
Original Assignee
网易(杭州)网络有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 网易(杭州)网络有限公司 filed Critical 网易(杭州)网络有限公司
Publication of WO2024055596A1 publication Critical patent/WO2024055596A1/en

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/57Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
    • A63F13/577Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game using determination of contact between game characters or objects, e.g. to avoid collision between virtual racing cars
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • A63F13/2145Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads the surface being also a display device, e.g. touch screens
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • 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

Definitions

  • the present disclosure relates to the technical field of online games, and specifically to an interactive control method, device and electronic device for skill release.
  • the player when a controlled virtual object in the game releases a skill to a target virtual object, the player is usually required to drag the skill release control to move within a certain area on the graphical user interface.
  • the game scene is based on the drag direction of the skill release control. and distance display skill indicators, which indicate the release location or range of the skill.
  • the finger touch may block the target virtual object, thereby affecting the skill release effect, resulting in a poor player experience, which in turn increases the game running time of the terminal device and consumes the terminal.
  • the device's battery level when the player drags the skill release control, the finger touch may block the target virtual object, thereby affecting the skill release effect, resulting in a poor player experience, which in turn increases the game running time of the terminal device and consumes the terminal.
  • the purpose of the present disclosure is to provide an interactive control method, device and electronic device for skill release, so as to improve the player's game experience during the process of releasing skills, reduce the game running time of the terminal device, and save the terminal equipment.
  • the power consumption of the device is to provide an interactive control method, device and electronic device for skill release, so as to improve the player's game experience during the process of releasing skills, reduce the game running time of the terminal device, and save the terminal equipment.
  • embodiments of the present disclosure provide an interactive control method for skill release, which provides a graphical user interface through a terminal device; the graphical user interface displays controlled virtual objects; the controlled virtual objects are controlled through the terminal device; the method includes : In response to the sliding operation starting from the controlled virtual object, monitor the touch point position of the sliding operation; based on the relative position of the touch point position and the controlled virtual object, determine the display position of the skill indicator of the target skill; where, the touch point The position is located in the first direction of the controlled virtual object, the display position is located in the second direction of the controlled virtual object, and the second direction is opposite to the first direction; in response to the release event of the sliding operation, the controlled virtual object is controlled to release the target to the display position Skill.
  • embodiments of the present disclosure provide an interactive control device for skill release, which provides a graphical user interface through a terminal device; the graphical user interface displays controlled virtual objects; the controlled virtual objects are controlled through the terminal device; the device includes : The contact position monitoring module is used to monitor the contact position of the sliding operation in response to the sliding operation starting from the controlled virtual object; the display position determination module is used to based on the relative position of the contact position and the controlled virtual object, Determine the display position of the skill indicator of the target skill; wherein the contact position is located in the first direction of the controlled virtual object, the display position is located in the second direction of the controlled virtual object, and the second direction is opposite to the first direction; the skill release module , used to control the controlled virtual object to release the target skill to the display position in response to the release event of the sliding operation.
  • embodiments of the present disclosure provide an electronic device, including a processor and a memory.
  • the memory stores machine-executable instructions that can be executed by the processor.
  • the processor executes the machine-executable instructions to implement the above-mentioned skill-releasing interaction. Control Method.
  • embodiments of the present disclosure provide a machine-readable storage medium that stores machine-executable instructions.
  • the machine-executable instructions When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt processing
  • the device implements the interactive control method of skill release mentioned above.
  • the above interactive control method, device and electronic device for skill release in response to a sliding operation starting from a controlled virtual object, monitors the contact position of the sliding operation; based on the relative position of the contact position and the controlled virtual object, determines The display position of the skill indicator of the target skill; wherein the contact position is located in a first direction of the controlled virtual object, the display position is located in a second direction of the controlled virtual object, and the second direction is opposite to the first direction; in response to the sliding operation
  • the release event controls the controlled virtual object to release the target skill to the display position.
  • the contact point of the sliding operation that controls skill release and the skill display are located in two opposite directions of the controlled virtual object. The contact point will not block the display position of the skill display, which not only improves the player's ability to control the skill release process. It can also improve the game experience, reduce the running time of the terminal device, and save the power consumption of the terminal device.
  • Figure 1 is a flow chart of an interactive control method for skill release provided by one embodiment of the present disclosure
  • Figure 2 is a schematic diagram of a graphical user interface during the skill release control process marked with the first direction and the second direction provided by one embodiment of the present disclosure
  • Figure 3 is a schematic diagram of another graphical user interface during the skill release control process provided by one embodiment of the present disclosure.
  • Figure 4 is a schematic diagram of another graphical user interface during the skill release control process marked l1 and l2 provided by one of the embodiments of the present disclosure
  • Figure 5 is a schematic structural diagram of an interactive control device for skill release provided by one embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of an electronic device provided by one embodiment of the present disclosure.
  • a sliding skill release also called “casting" interactive method
  • This method requires the player to slide the skill control from a fixed position to the game scene through a sliding operation on the skill control, usually to the position of the attack object corresponding to the skill.
  • the above-mentioned method of releasing skills is not convenient enough, and the operating position is away from the position of the character in the scene. During the sliding process, the mobile phone can easily block the target of the attack.
  • embodiments of the present disclosure provide an interactive control method, device and electronic device for skill release. This technology can be applied to various skill release game scenarios.
  • the interactive control method for skill release can be run on a local terminal device or a server.
  • the method can be implemented and executed based on a cloud interactive system, where the cloud interactive system includes a server and a client device.
  • various cloud applications can be run under the cloud interactive system.
  • Cloud gaming refers to a gaming method based on cloud computing.
  • the running body of the game program and the game screen rendering body are separated.
  • the storage and operation of the interactive control method of skill release are completed on the cloud game server, and the role of the client device is used for data
  • the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a television, a computer, a handheld computer, etc.; but the information processing is Cloud gaming server in the cloud.
  • the player operates the client device to send operating instructions to the cloud game server.
  • the cloud game server runs the game according to the operating instructions, encodes and compresses the game screen and other data, and returns it to the client device through the network.
  • the cloud game server performs operations through the client device. Decode and output game screen.
  • the local terminal device stores the game program and is used to present the game screen.
  • the local terminal device is used to interact with players through a graphical user interface, that is, conventionally downloading, installing and running game programs through electronic devices.
  • the local terminal device may provide the graphical user interface to the player in a variety of ways. For example, it may be rendered and displayed on the display screen of the terminal, or provided to the player through holographic projection.
  • the local terminal device may include a display screen and a processor.
  • the display screen is used to present a graphical user interface.
  • the graphical user interface includes a game screen.
  • the processor is used to run the game, generate the graphical user interface, and control the graphical user interface. displayed on the display screen.
  • the embodiment of the present disclosure provides an interactive control method for skill release, which provides a graphical user interface through a terminal device; the graphical user interface displays a controlled virtual object; the controlled virtual object passes through the terminal device Control; wherein, the terminal device may be the local terminal device mentioned above, or the client device in the cloud interactive system mentioned above.
  • the method includes the following steps:
  • Step S102 In response to a sliding operation starting from the controlled virtual object, monitor the contact point position of the sliding operation.
  • Sliding operation is one of the most basic interaction gestures when using terminal devices. Sliding operations are usually performed by players using their fingers. Touching the touch screen of the terminal device generates a touch point, and sliding the finger on the touch screen changes the position of the touch point on the touch screen. When the sliding operation takes the controlled virtual object as the starting point, the position of the contact point generated by the sliding operation should be located in the display area of the controlled virtual object in the graphical user interface.
  • the player can usually change the position of the controlled virtual object in the game scene displayed by the graphical user interface through a drag operation on the controlled virtual object.
  • the drag operation is a special case of the sliding operation.
  • the player's operation process is the same, but in response to the drag operation, the display position of the controlled virtual object changes as the position of the contact point changes.
  • a skill release mode can be set in advance for the controlled virtual object. When the controlled virtual object is in this mode, the position of the controlled virtual object does not change as the position of the contact point changes.
  • the control corresponding to the skill release mode can be pre-set on the graphical user interface. After the player clicks the control, the controlled virtual object enters the skill release mode. You can also preset a sliding operation with a set graphic on the screen. For example, when the contact track of the sliding operation is in the shape of a five-pointed star, the controlled virtual object enters the skill release mode. In addition, you can also set the controlled virtual character to enter the skill release mode after double-clicking or long-pressing the controlled virtual object. This can be set according to your needs.
  • the game scene screen displayed on the graphical user interface needs to be different from that before entering, such as making the controlled virtual object display a glowing effect, or making the objects that can be attacked by skills display. For luminous effects, etc., to remind the player that the controlled virtual object has entered the skill release mode.
  • Step S104 determine the display position of the skill indicator of the target skill based on the relative position of the touch point position and the controlled virtual object; wherein, the touch point position is located in the first direction of the controlled virtual object, and the display position is located in the controlled virtual object.
  • the second direction is opposite to the first direction.
  • the relative position of the contact point and the controlled virtual object can be represented by a connection line between the two, and the connection line has a certain direction and length.
  • the display position of the skill display of the target skill can be determined based on the direction and length of the connection.
  • the skill indicator is located in the opposite direction of the direction in which the controlled virtual object points to the contact position, as shown in Figure 2.
  • the first direction is the direction in which the controlled virtual object points to the contact position.
  • the two directions are the directions in which the controlled virtual object points to the skill indicator, and the angle between the two directions is 180 degrees.
  • the release of the target skill has a certain angle limit, such as a maximum limit angle
  • a certain angle limit such as a maximum limit angle
  • the skill indicator may not be displayed, or the maximum limit angle may be directly changed.
  • the direction corresponding to the limit angle is determined as the second direction of the skill indicator.
  • the starting position of the skill indicator is usually the controlled virtual object.
  • the display position of the skill indicator may be further determined based on the length of the connection line between the contact position and the controlled virtual object.
  • a certain ratio parameter is usually set, which can be the ratio of the relative distance between the skill display and the controlled virtual object and the length of the connection between the contact position and the controlled virtual object. After getting the length of the line connecting the contact position and the controlled virtual object, the relative distance between the skill display and the controlled virtual object can be easily calculated. Since the starting position is the controlled virtual object, based on the skill display and The relative distance between controlled virtual objects can determine the technical Can display the display position.
  • the display shape and display mode of the skill display of target skills with different release methods are usually different.
  • the display position of the skill display is usually the release position of the target skill, that is, the target skill acts on other virtual objects at the display position.
  • the scope can be centered on the display position, as shown in Figure 2.
  • the gray circular area is the scope of the target skill, and the center of the circular area is the determined skill display. display position.
  • the target skill's action area can be a certain area between the controlled virtual object and the display position of the skill display, as shown in Figure 3.
  • the gray rectangular area is the target skill's area. Scope of action, the determined display position of the skill display is located at the end of the action area of the target skill.
  • Step S106 In response to the release event of the sliding operation, control the controlled virtual object to release the target skill to the display position.
  • a release event of the sliding operation is generated. It can be considered that the player has determined the release position of the target skill.
  • the controlled virtual object can be controlled to release the target skill to the display position.
  • the resulting effect is the same as that of the target skill.
  • the method matches, for example, it has an effect on the gray circular area in Figure 2, or it has an effect on the gray rectangular area in Figure 3, etc.
  • the contact position can be moved to the area where the controlled virtual object is located, that is, when the relative distance between the contact position and the controlled virtual object is 0, the release of the target skill can be canceled.
  • the above interactive control method for skill release responds to a sliding operation starting from a controlled virtual object, monitors the contact position of the sliding operation, and determines the skill indication of the target skill based on the relative position of the contact position and the controlled virtual object.
  • the display position of the device wherein, the contact position is located in the first direction of the controlled virtual object, the display position is located in the second direction of the controlled virtual object, and the second direction is opposite to the first direction; in response to the release event of the sliding operation, the control
  • the controlled virtual object releases the target skill to the displayed position.
  • the contact point of the sliding operation that controls skill release and the skill display are located in two opposite directions of the controlled virtual object. The contact point will not block the display position of the skill display, which not only improves the player's ability to control the skill release process. It can also improve the game experience, reduce the running time of the terminal device, and save the power consumption of the terminal device.
  • the following embodiment provides a specific method of determining the display position of the skill indicator of the target skill based on the relative position of the contact position and the controlled virtual object.
  • the relative position of the touch point position and the controlled virtual object may include a relative direction and a relative distance.
  • the display position of the skill display of the target skill is also relative to the controlled virtual object, and the display direction and distance of the skill display relative to the controlled virtual object also need to be determined; where the display direction indicates the direction of the target skill.
  • the display direction of the skill indicator of the target skill can be determined based on the relative direction of the contact position and the controlled virtual object; in specific implementation, the relative direction can be represented by the direction formed by the controlled virtual object pointing to the contact position. , the opposite direction of the relative direction of the contact position and the controlled virtual object can be determined as the display direction of the skill indicator of the target skill. Furthermore, the skill level of the target skill can also be determined based on the relative distance between the contact position and the controlled virtual object.
  • the target distance between the end position of the energy indicator and the controlled virtual object specifically, multiply the relative distance between the contact position and the controlled virtual object by the preset scale parameter to obtain the calculation result, and then determine the calculation result as The target distance between the end position of the target skill's skill indicator and the controlled virtual object.
  • the end position of the skill indicator of the target skill can be used as the center position or the end position of the action area according to the action mode of the target skill.
  • l1 is the relative distance between the contact position and the controlled virtual object
  • l2 is the target distance between the end position of the skill indicator of the target skill and the controlled virtual object; when the scale parameter is 2, the length of l2 It is twice that of l1.
  • the display position of the skill indicator of the target skill is determined based on the display direction of the skill indicator of the target skill and the target distance between the end position of the skill indicator of the target skill and the controlled virtual object.
  • the display position may be the action area of the target skill, such as the gray area shown in Figures 2 and 3.
  • the target distance of the virtual object instead of using the calculation result, is the target distance between the end position of the skill indicator of the target skill and the controlled virtual object.
  • connection line between the touch point position and the controlled virtual object can be displayed on the graphical user interface.
  • the display color of the connection line can be different from the display color of the skill indicator. .
  • some operations of the player can be preset to generate trigger events for skill release, and then in response to the trigger events for skill release, the controlled virtual character can be determined.
  • the subject enters skill release mode. In this mode, the controlled virtual object usually does not move with the sliding operation.
  • the long press operation acting on the controlled virtual object can be set as an operation that generates a trigger event for skill release, and then in response to the long press operation acting on the controlled virtual object, it is determined that the controlled virtual object enters the skill release mode.
  • a preset skill release mode control can also be displayed on the graphical user interface; in response to a click operation on the skill release mode control, it is determined that the controlled virtual object enters the skill release mode.
  • the controlled virtual object is displayed in the first display format. For example, the edge of the controlled virtual character may be displayed with flames, or the controlled virtual character may be displayed in a flashing state, etc.
  • the embodiment of the present disclosure also provides another interactive control method for skill release.
  • This method is implemented based on the method shown in Figure 1. This method can solve the problems that the traditional skill casting method is not convenient enough, the operating position is far away from the position of the character in the scene, and the fingers block the skill target.
  • the controlled virtual object can be called an attacker.
  • the player first needs to long press the attacker model to trigger the skill release mode, and then directly control the attacker in the scene, that is, slide the finger in the target direction, and the trace can be displayed on the graphical user interface; as the finger moves, the trace can be extended and moved in the opposite direction.
  • the skill indicator is displayed, and the display position of the skill indicator is in a certain proportional relationship with the track passed.
  • the gray circular area is the release position (also called the “casting position”) corresponding to the skill. When the player releases his finger, the attacker casts the target skill at the release position.
  • This method makes the attack interaction more direct; at the same time, the reverse ejection method is used to select the skill target, and the casting angle and position of the target skill change according to the position of the finger.
  • the finger contact point does not need to be on the "striker” to avoid occlusion of the "striker" by the finger.
  • the contact position monitoring module 502 is used to monitor the contact position of the sliding operation in response to the sliding operation starting from the controlled virtual object;
  • the display position determination module 504 is used to determine the display position of the skill indicator of the target skill based on the relative position of the contact position and the controlled virtual object; wherein, the contact position is located in the first direction of the controlled virtual object, and the display position is located at The second direction of the controlled virtual object, the second direction is opposite to the first direction;
  • the skill release module 506 is used to control the controlled virtual object to release the target skill to the display position in response to the release event of the sliding operation.
  • the above-mentioned interactive control device for skill release responds to a sliding operation starting from a controlled virtual object, monitors the contact position of the sliding operation, and determines the skill indication of the target skill based on the relative position of the contact position and the controlled virtual object.
  • the display position of the device wherein, the contact position is located in the first direction of the controlled virtual object, the display position is located in the second direction of the controlled virtual object, and the second direction is opposite to the first direction; in response to the release event of the sliding operation, the control
  • the controlled virtual object releases the target skill to the displayed position.
  • the contact point of the sliding operation that controls skill release and the skill display are located in two opposite directions of the controlled virtual object. The contact point will not block the display position of the skill display, which not only improves the player's ability to control the skill release process. It can also improve the game experience, reduce the running time of the terminal device, and save the power consumption of the terminal device.
  • the above-mentioned relative position includes relative direction and relative distance; the above-mentioned display position determination module is also used to: determine the display direction of the skill indicator of the target skill based on the relative direction of the contact position and the controlled virtual object; The relative distance of the virtual object determines the end position of the skill indicator of the target skill and the target distance of the controlled virtual object; the display direction of the skill indicator based on the target skill, and the end position of the skill indicator of the target skill and the controlled virtual object The object's target distance, which determines where the skill indicator for the target skill is displayed.
  • the above-mentioned relative direction is pointed by the controlled virtual object to the contact position; the display direction indicates the action direction of the target skill; the above-mentioned display position determination module is also used for: the relative direction of the object, the step of determining the display direction of the skill indicator of the target skill, including : Determine the opposite direction of the relative direction between the contact position and the controlled virtual object as the display direction of the skill indicator of the target skill.
  • the above display position determination module is also used to: compare the relative distance between the contact position and the controlled virtual object with a preset ratio. The parameters are multiplied to obtain the calculation result; the calculation result is determined as the target distance between the end position of the skill indicator of the target skill and the controlled virtual object.
  • the above-mentioned device also includes: a calculation result judgment module, used to judge whether the calculation result is greater than the maximum action distance of the target skill; the target distance is determined to be Mokui, and if it is greater, the maximum action distance is determined as the end position of the skill indicator of the target skill and The target distance of the controlled virtual object.
  • a calculation result judgment module used to judge whether the calculation result is greater than the maximum action distance of the target skill; the target distance is determined to be Mokui, and if it is greater, the maximum action distance is determined as the end position of the skill indicator of the target skill and The target distance of the controlled virtual object.
  • the above device also includes a skill release mode determination module, configured to determine that the controlled virtual object enters the skill release mode in response to a triggering event of skill release.
  • the above-mentioned skill release mode determination module is also used to: respond to the long press operation acting on the controlled virtual object, determine that the controlled virtual object enters the skill release mode; or display the preset skill release mode control through the graphical user interface; respond to the The click operation of the skill release mode control determines that the controlled virtual object enters the skill release mode.
  • the above device also includes a controlled virtual object display module, configured to display the controlled virtual object in a first display format.
  • the above device also includes a contact connection display module, used for: displaying the connection between the contact position and the controlled virtual object.
  • the above device also includes: a relative distance judgment module, used to judge whether the relative distance between the contact position and the controlled virtual object is less than the preset distance in response to the release event of the sliding operation; and a skill cancellation module, used to cancel the control if it is less than the preset distance. Controlled virtual objects release target skills.
  • This embodiment also provides an electronic device, including a processor and a memory.
  • the memory stores machine-executable instructions that can be executed by the processor.
  • the processor executes the machine-executable instructions to implement the interactive control method of skill release, for example:
  • the contact point of the sliding operation that controls skill release and the skill display are located in two opposite directions of the controlled virtual object.
  • the contact point will not block the display position of the skill display, which not only improves the player's ability to control the skill release process. It can also improve the game experience, reduce the running time of the terminal device, and save the power consumption of the terminal device.
  • the above-mentioned relative position includes relative direction and relative distance; based on the relative position of the touch point position and the controlled virtual object, the step of determining the display position of the skill indicator of the target skill includes: based on the touch point position and the controlled virtual object The relative direction of the object determines the display direction of the skill indicator of the target skill; based on the relative distance between the contact position and the controlled virtual object, determines the end position of the skill indicator of the target skill and the target distance of the controlled virtual object; based on the target The display direction of the skill indicator of the skill, and the target distance between the end position of the skill indicator of the target skill and the controlled virtual object determine the display position of the skill indicator of the target skill.
  • the above relative direction is directed by the controlled virtual object to the contact position; the display direction indicates the action direction of the target skill; and the display direction of the skill indicator of the target skill is determined based on the relative direction between the contact position and the controlled virtual object. Steps include: determining the opposite direction of the contact position and the relative direction of the controlled virtual object as the skill indicator of the target skill. display direction of the monitor.
  • the above step of determining the end position of the skill indicator of the target skill and the target distance of the controlled virtual object based on the relative distance between the contact position and the controlled virtual object includes: comparing the contact position with the controlled virtual object. The relative distance is multiplied by the preset proportion parameter to obtain the calculation result; the calculation result is determined as the target distance between the end position of the skill indicator of the target skill and the controlled virtual object.
  • the relative distance between the contact position and the controlled virtual object is multiplied by the preset proportion parameter.
  • the above method also includes: determining whether the calculation result is greater than the maximum action distance of the target skill; if it is greater than , the maximum action distance is determined as the end position of the skill indicator of the target skill and the target distance of the controlled virtual object.
  • the above method further includes: in response to the triggering event of skill release, determining that the controlled virtual object enters the skill release mode.
  • the above step of determining that the controlled virtual object enters the skill release mode in response to a triggering event of skill release includes: determining that the controlled virtual object enters the skill release mode in response to a long press operation on the controlled virtual object; or , display the preset skill release mode control through the graphical user interface; in response to a click operation on the skill release mode control, determine that the controlled virtual object enters the skill release mode.
  • the above method further includes: displaying the controlled virtual object in the first display format.
  • the above method further includes: displaying a connection between the contact position and the controlled virtual object.
  • the above method also includes: in response to a release event of the sliding operation, determining whether the relative distance between the contact position and the controlled virtual object is less than a preset distance; if it is less than, canceling control of the controlled virtual object to release the target skill.
  • the electronic device includes a processor 100 and a memory 101 .
  • the memory 101 stores machine-executable instructions that can be executed by the processor 100 .
  • the processor 100 executes the machine-executable instructions to implement the above-mentioned skill release interaction. Control Method.
  • the electronic device shown in FIG. 6 also includes a bus 102 and a communication interface 103.
  • the processor 100, the communication interface 103 and the memory 101 are connected through the bus 102.
  • the memory 101 may include high-speed random access memory (RAM, Random Access Memory), and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
  • RAM random access memory
  • non-volatile memory non-volatile memory
  • the communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, wide area network, local network, metropolitan area network, etc. can be used.
  • the bus 102 may be an ISA bus, a PCI bus, an EISA bus, etc.
  • the bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one bidirectional arrow is used in Figure 6, but it does not mean that there is only one bus or one type of bus.
  • the processor 100 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor 100 .
  • the above-mentioned processor 100 can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; it can also be a digital signal processor (Digital Signal Processor). Processor (DSP for short), Application Specific Integrated Circuit (ASIC for short), Field-Programmable Gate Array (FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • the steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field.
  • the storage medium is located in the memory 101.
  • the processor 100 reads the information in the memory 101 and completes the steps of the method in the aforementioned embodiment in combination with its hardware.
  • This embodiment also provides a machine-readable storage medium.
  • the machine-readable storage medium stores machine-executable instructions.
  • the machine-executable instructions When the machine-executable instructions are called and executed by the processor, the machine-executable instructions prompt the processor to realize the above-mentioned skill release. Interactive control methods.
  • An interactive control method, device, and electronic device for skill release provided by embodiments of the present disclosure include a computer-readable storage medium storing program code.
  • the instructions included in the program code can be used to execute the instructions described in the previous method embodiments. methods, for example:
  • the contact point of the sliding operation that controls skill release and the skill display are located in two opposite directions of the controlled virtual object.
  • the contact point will not block the display position of the skill display, which not only improves the player's ability to control the skill release process. It can also improve the game experience, reduce the running time of the terminal device, and save the power consumption of the terminal device.
  • the above-mentioned relative position includes relative direction and relative distance; based on the relative position of the touch point position and the controlled virtual object, the step of determining the display position of the skill indicator of the target skill includes: based on the touch point position and the controlled virtual object The relative direction of the object determines the display direction of the skill indicator of the target skill; based on the relative distance between the contact position and the controlled virtual object, determines the end position of the skill indicator of the target skill and the target distance of the controlled virtual object; based on the target The display direction of the skill indicator of the skill, and the target distance between the end position of the skill indicator of the target skill and the controlled virtual object determine the display position of the skill indicator of the target skill.
  • the above relative direction is directed by the controlled virtual object to the contact position; the display direction indicates the action direction of the target skill; and the display direction of the skill indicator of the target skill is determined based on the relative direction between the contact position and the controlled virtual object.
  • the step includes: determining the opposite direction of the relative direction of the contact position and the controlled virtual object as the display direction of the skill indicator of the target skill.
  • the above step of determining the end position of the skill indicator of the target skill and the target distance of the controlled virtual object based on the relative distance between the contact position and the controlled virtual object includes: comparing the contact position with the controlled virtual object. The relative distance is multiplied by the preset proportion parameter to obtain the calculation result; the calculation result is determined as the skill indicator of the target skill. The target distance between the end position and the controlled virtual object.
  • the relative distance between the contact position and the controlled virtual object is multiplied by the preset proportion parameter.
  • the above method also includes: determining whether the calculation result is greater than the maximum action distance of the target skill; if it is greater than , the maximum action distance is determined as the end position of the skill indicator of the target skill and the target distance of the controlled virtual object.
  • the above method further includes: in response to the triggering event of skill release, determining that the controlled virtual object enters the skill release mode.
  • the above step of determining that the controlled virtual object enters the skill release mode in response to a triggering event of skill release includes: determining that the controlled virtual object enters the skill release mode in response to a long press operation on the controlled virtual object; or , display the preset skill release mode control through the graphical user interface; in response to a click operation on the skill release mode control, determine that the controlled virtual object enters the skill release mode.
  • the above method further includes: displaying the controlled virtual object in the first display format.
  • the above method further includes: displaying a connection between the contact position and the controlled virtual object.
  • the above method also includes: in response to a release event of the sliding operation, determining whether the relative distance between the contact position and the controlled virtual object is less than a preset distance; if it is less than, canceling control of the controlled virtual object to release the target skill.
  • connection should be understood in a broad sense.
  • it can be a fixed connection or a detachable connection. , or integrally connected; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be an internal connection between two components.
  • connection should be understood in a broad sense.
  • it can be a fixed connection or a detachable connection. , or integrally connected; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be an internal connection between two components.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present disclosure is essentially or the part that contributes to the relevant technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, It includes several instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. .

Landscapes

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

Abstract

An interaction control method and apparatus for a skill cast, and an electronic device. The method comprises: in response to a sliding operation taking a controlled virtual object as a starting point, monitoring the contact position of the sliding operation (S102); on the basis of the relative position of the contact position and the controlled virtual object, determining a display position of a skill indicator of a target skill, the contact position being located at a first orientation of the controlled virtual object, the display position being located at a second orientation of the controlled virtual object, and the second orientation being opposite to the first orientation (S104); and, in response to a release event of the sliding operation, controlling the controlled virtual object to cast the target skill towards the display position (S106). In the method, the contact of the sliding operation for controlling a skill cast and a skill display are respectively located at two opposite orientations of the controlled virtual object, and thus the contact will not shield the display position of the skill display, improving the game experience of players during the skill cast control process. (FIG. 1)

Description

技能释放的交互控制方法、装置及电子设备Interactive control method, device and electronic equipment for skill release
相关申请的交叉引用Cross-references to related applications
本公开要求于2022年09月13日提交的申请号为202211112235.0、名称为“技能释放的交互控制方法、装置及电子设备”的中国专利申请的优先权,该中国专利申请的全部内容通过引用结合在本公开中。This disclosure claims priority to the Chinese patent application with application number 202211112235.0 and titled "Interactive Control Method, Device and Electronic Device for Skill Release" submitted on September 13, 2022. The entire content of this Chinese patent application is incorporated by reference. in this disclosure.
技术领域Technical field
本公开涉及网络游戏技术领域,具体而言,涉及一种技能释放的交互控制方法、装置及电子设备。The present disclosure relates to the technical field of online games, and specifically to an interactive control method, device and electronic device for skill release.
背景技术Background technique
相关技术中,当游戏中的受控虚拟对象向目标虚拟对象释放技能的时候,通常需要玩家拖动技能释放控件在图形用户界面上一定区域内移动,游戏场景中根据技能释放控件的拖动方向和距离显示技能指示器,该技能指示器指示技能的释放位置或范围。该方式中,玩家拖动技能释放控件时,手指触点可能会对目标虚拟对象产生遮挡,从而影响了技能释放效果,导致玩家体验较差,继而提升了终端设备的对局运行时长,耗费终端设备的电量。In related technologies, when a controlled virtual object in the game releases a skill to a target virtual object, the player is usually required to drag the skill release control to move within a certain area on the graphical user interface. The game scene is based on the drag direction of the skill release control. and distance display skill indicators, which indicate the release location or range of the skill. In this method, when the player drags the skill release control, the finger touch may block the target virtual object, thereby affecting the skill release effect, resulting in a poor player experience, which in turn increases the game running time of the terminal device and consumes the terminal. The device's battery level.
发明内容Contents of the invention
有鉴于此,本公开的目的在于提供一种技能释放的交互控制方法、装置及电子设备,以使提高了玩家在释放技能过程中的游戏体验,降低终端设备的对局运行时长,节省了终端设备的电量消耗。In view of this, the purpose of the present disclosure is to provide an interactive control method, device and electronic device for skill release, so as to improve the player's game experience during the process of releasing skills, reduce the game running time of the terminal device, and save the terminal equipment. The power consumption of the device.
第一方面,本公开实施例提供了一种技能释放的交互控制方法,通过终端设备提供一图形用户界面;图形用户界面显示有受控虚拟对象;受控虚拟对象通过终端设备控制;该方法包括:响应于以受控虚拟对象为起点的滑动操作,监听滑动操作的触点位置;基于触点位置与受控虚拟对象的相对位置,确定目标技能的技能指示器的显示位置;其中,触点位置位于受控虚拟对象的第一方向,显示位置位于受控虚拟对象的第二方向,第二方向与第一方向相反;响应于滑动操作的释放事件,控制受控虚拟对象向显示位置释放目标技能。In a first aspect, embodiments of the present disclosure provide an interactive control method for skill release, which provides a graphical user interface through a terminal device; the graphical user interface displays controlled virtual objects; the controlled virtual objects are controlled through the terminal device; the method includes : In response to the sliding operation starting from the controlled virtual object, monitor the touch point position of the sliding operation; based on the relative position of the touch point position and the controlled virtual object, determine the display position of the skill indicator of the target skill; where, the touch point The position is located in the first direction of the controlled virtual object, the display position is located in the second direction of the controlled virtual object, and the second direction is opposite to the first direction; in response to the release event of the sliding operation, the controlled virtual object is controlled to release the target to the display position Skill.
第二方面,本公开实施例提供了一种技能释放的交互控制装置,通过终端设备提供一图形用户界面;图形用户界面显示有受控虚拟对象;受控虚拟对象通过终端设备控制;该装置包括:触点位置监听模块,用于响应于以受控虚拟对象为起点的滑动操作,监听滑动操作的触点位置;显示位置确定模块,用于基于触点位置与受控虚拟对象的相对位置,确定目标技能的技能指示器的显示位置;其中,触点位置位于受控虚拟对象的第一方向,显示位置位于受控虚拟对象的第二方向,第二方向与第一方向相反;技能释放模块,用于响应于滑动操作的释放事件,控制受控虚拟对象向显示位置释放目标技能。 In the second aspect, embodiments of the present disclosure provide an interactive control device for skill release, which provides a graphical user interface through a terminal device; the graphical user interface displays controlled virtual objects; the controlled virtual objects are controlled through the terminal device; the device includes : The contact position monitoring module is used to monitor the contact position of the sliding operation in response to the sliding operation starting from the controlled virtual object; the display position determination module is used to based on the relative position of the contact position and the controlled virtual object, Determine the display position of the skill indicator of the target skill; wherein the contact position is located in the first direction of the controlled virtual object, the display position is located in the second direction of the controlled virtual object, and the second direction is opposite to the first direction; the skill release module , used to control the controlled virtual object to release the target skill to the display position in response to the release event of the sliding operation.
第三方面,本公开实施例提供了一种电子设备,包括处理器和存储器,存储器存储有能够被处理器执行的机器可执行指令,处理器执行机器可执行指令以实现上述的技能释放的交互控制方法。In a third aspect, embodiments of the present disclosure provide an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the above-mentioned skill-releasing interaction. Control Method.
第四方面,本公开实施例提供了一种机器可读存储介质,该机器可读存储介质存储有机器可执行指令,机器可执行指令在被处理器调用和执行时,机器可执行指令促使处理器实现上述的技能释放的交互控制方法。In a fourth aspect, embodiments of the present disclosure provide a machine-readable storage medium that stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt processing The device implements the interactive control method of skill release mentioned above.
本公开实施例带来了以下有益效果:The embodiments of the present disclosure bring the following beneficial effects:
上述一种技能释放的交互控制方法、装置及电子设备,响应于以受控虚拟对象为起点的滑动操作,监听滑动操作的触点位置;基于触点位置与受控虚拟对象的相对位置,确定目标技能的技能指示器的显示位置;其中,触点位置位于受控虚拟对象的第一方向,显示位置位于受控虚拟对象的第二方向,第二方向与第一方向相反;响应于滑动操作的释放事件,控制受控虚拟对象向显示位置释放目标技能。该方式中,控制技能释放的滑动操作的触点和技能显示器分别位于受控虚拟对象的两个相反的方向,触点不会遮挡技能显示器的显示位置,不仅提高了玩家在控制技能释放过程中的游戏体验,还能够降低终端设备的对局运行时长,节省终端设备的电量消耗。The above interactive control method, device and electronic device for skill release, in response to a sliding operation starting from a controlled virtual object, monitors the contact position of the sliding operation; based on the relative position of the contact position and the controlled virtual object, determines The display position of the skill indicator of the target skill; wherein the contact position is located in a first direction of the controlled virtual object, the display position is located in a second direction of the controlled virtual object, and the second direction is opposite to the first direction; in response to the sliding operation The release event controls the controlled virtual object to release the target skill to the display position. In this method, the contact point of the sliding operation that controls skill release and the skill display are located in two opposite directions of the controlled virtual object. The contact point will not block the display position of the skill display, which not only improves the player's ability to control the skill release process. It can also improve the game experience, reduce the running time of the terminal device, and save the power consumption of the terminal device.
附图说明Description of drawings
为了更清楚地说明本公开具体实施方式或相关技术中的技术方案,下面将对具体实施方式或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施方式,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the specific embodiments of the present disclosure or related technologies, the drawings that need to be used in the description of the specific embodiments or related technologies will be briefly introduced below. Obviously, the drawings in the following description are: For some embodiments of the present disclosure, those skilled in the art can also obtain other drawings based on these drawings without exerting creative efforts.
图1为本公开其中之一实施例提供的一种技能释放的交互控制方法的流程图;Figure 1 is a flow chart of an interactive control method for skill release provided by one embodiment of the present disclosure;
图2为本公开其中之一实施例提供的一种标注有第一方向和第二方向的技能释放控制过程中的图形用户界面的示意图;Figure 2 is a schematic diagram of a graphical user interface during the skill release control process marked with the first direction and the second direction provided by one embodiment of the present disclosure;
图3为本公开其中之一实施例提供的另一种技能释放控制过程中的图形用户界面的示意图;Figure 3 is a schematic diagram of another graphical user interface during the skill release control process provided by one embodiment of the present disclosure;
图4为本公开其中之一实施例提供的另一种标注了l1和l2的技能释放控制过程中的图形用户界面的示意图;Figure 4 is a schematic diagram of another graphical user interface during the skill release control process marked l1 and l2 provided by one of the embodiments of the present disclosure;
图5为本公开其中之一实施例提供的一种技能释放的交互控制装置的结构示意图;Figure 5 is a schematic structural diagram of an interactive control device for skill release provided by one embodiment of the present disclosure;
图6为本公开其中之一实施例提供的一种电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided by one embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合附图对本公开的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域技术人员在没有做出创造性劳动前提下所获 得的所有其他实施例,都属于本公开保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of them. embodiment. Based on the embodiments in the present disclosure, those skilled in the art have obtained the results without making any creative efforts. All other embodiments obtained fall within the protection scope of this disclosure.
相关技术中,在游戏场景中释放游戏技能时,可以采用滑动式的技能释放(也可以称为“施放”)交互方式。该方式需要玩家通过作用于技能控件的滑动操作,将技能控件需要从固定位置滑动至游戏场景中,通常需要滑动至技能对应的攻击对象的位置。上述释放技能的方式不够便捷、操作位置脱离场景中施放角色的位置,滑动过程中手机容易对攻击对象产生遮挡。In related technologies, when releasing game skills in a game scene, a sliding skill release (also called "casting") interactive method can be used. This method requires the player to slide the skill control from a fixed position to the game scene through a sliding operation on the skill control, usually to the position of the attack object corresponding to the skill. The above-mentioned method of releasing skills is not convenient enough, and the operating position is away from the position of the character in the scene. During the sliding process, the mobile phone can easily block the target of the attack.
基于此,本公开实施例提供的一种技能释放的交互控制方法、装置及电子设备,该技术可以应用于各种技能释放的游戏场景中。Based on this, embodiments of the present disclosure provide an interactive control method, device and electronic device for skill release. This technology can be applied to various skill release game scenarios.
在本公开公开其中一种实施例中的技能释放的交互控制方法可以运行于本地终端设备或者是服务器。当技能释放的交互控制方法运行于服务器时,该方法则可以基于云交互系统来实现与执行,其中,云交互系统包括服务器和客户端设备。In one embodiment of the present disclosure, the interactive control method for skill release can be run on a local terminal device or a server. When the interactive control method of skill release runs on the server, the method can be implemented and executed based on a cloud interactive system, where the cloud interactive system includes a server and a client device.
在一可选的实施方式中,云交互系统下可以运行各种云应用,例如:云游戏。以云游戏为例,云游戏是指以云计算为基础的游戏方式。在云游戏的运行模式下,游戏程序的运行主体和游戏画面呈现主体是分离的,技能释放的交互控制方法的储存与运行是在云游戏服务器上完成的,客户端设备的作用用于数据的接收、发送以及游戏画面的呈现,举例而言,客户端设备可以是靠近用户侧的具有数据传输功能的显示设备,如,移动终端、电视机、计算机、掌上电脑等;但是进行信息处理的为云端的云游戏服务器。在进行游戏时,玩家操作客户端设备向云游戏服务器发送操作指令,云游戏服务器根据操作指令运行游戏,将游戏画面等数据进行编码压缩,通过网络返回客户端设备,最后,通过客户端设备进行解码并输出游戏画面。In an optional implementation, various cloud applications, such as cloud games, can be run under the cloud interactive system. Take cloud gaming as an example. Cloud gaming refers to a gaming method based on cloud computing. In the running mode of cloud games, the running body of the game program and the game screen rendering body are separated. The storage and operation of the interactive control method of skill release are completed on the cloud game server, and the role of the client device is used for data Receiving, sending and presenting game screens, for example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a television, a computer, a handheld computer, etc.; but the information processing is Cloud gaming server in the cloud. When playing a game, the player operates the client device to send operating instructions to the cloud game server. The cloud game server runs the game according to the operating instructions, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the cloud game server performs operations through the client device. Decode and output game screen.
在一可选的实施方式中,以游戏为例,本地终端设备存储有游戏程序并用于呈现游戏画面。本地终端设备用于通过图形用户界面与玩家进行交互,即,常规的通过电子设备下载安装游戏程序并运行。该本地终端设备将图形用户界面提供给玩家的方式可以包括多种,例如,可以渲染显示在终端的显示屏上,或者,通过全息投影提供给玩家。举例而言,本地终端设备可以包括显示屏和处理器,该显示屏用于呈现图形用户界面,该图形用户界面包括游戏画面,该处理器用于运行该游戏、生成图形用户界面以及控制图形用户界面在显示屏上的显示。In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to present the game screen. The local terminal device is used to interact with players through a graphical user interface, that is, conventionally downloading, installing and running game programs through electronic devices. The local terminal device may provide the graphical user interface to the player in a variety of ways. For example, it may be rendered and displayed on the display screen of the terminal, or provided to the player through holographic projection. For example, the local terminal device may include a display screen and a processor. The display screen is used to present a graphical user interface. The graphical user interface includes a game screen. The processor is used to run the game, generate the graphical user interface, and control the graphical user interface. displayed on the display screen.
在一种可能的实施方式中,本公开实施例提供了一种技能释放的交互控制方法,通过终端设备提供一图形用户界面;图形用户界面显示有受控虚拟对象;受控虚拟对象通过终端设备控制;其中,终端设备可以是前述提到的本地终端设备,也可以是前述提到的云交互系统中的客户端设备。如图1所示,该方法包括如下步骤:In a possible implementation, the embodiment of the present disclosure provides an interactive control method for skill release, which provides a graphical user interface through a terminal device; the graphical user interface displays a controlled virtual object; the controlled virtual object passes through the terminal device Control; wherein, the terminal device may be the local terminal device mentioned above, or the client device in the cloud interactive system mentioned above. As shown in Figure 1, the method includes the following steps:
步骤S102,响应于以受控虚拟对象为起点的滑动操作,监听滑动操作的触点位置。Step S102: In response to a sliding operation starting from the controlled virtual object, monitor the contact point position of the sliding operation.
滑动操作是在使用终端设备时最基本交互手势之一。滑动操作通常由玩家通过手指接 触终端设备的触摸屏产生触点,并通过手指在触摸屏上滑动以改变触点在触摸屏上的位置实现。当滑动操作以受控虚拟对象为起点时,滑动操作产生触点的位置应该位于受控虚拟对象在图形用户界面的显示区域中。Sliding operation is one of the most basic interaction gestures when using terminal devices. Sliding operations are usually performed by players using their fingers. Touching the touch screen of the terminal device generates a touch point, and sliding the finger on the touch screen changes the position of the touch point on the touch screen. When the sliding operation takes the controlled virtual object as the starting point, the position of the contact point generated by the sliding operation should be located in the display area of the controlled virtual object in the graphical user interface.
由于在游戏中,玩家通常还可以通过针对受控虚拟对象的拖动操作来改变受控虚拟对象在图形用户界面显示的游戏场景中的位置。从本质上来说,拖动操作是滑动操作的一种特殊情况,玩家的操作过程是相同的,但是响应于拖动操作,受控虚拟对象的显示位置随着触点位置的改变而改变。为了区分玩家对受控虚拟对象的拖动操作和以受控虚拟对象为起点的活动操作,可以预先设置为受控虚拟对象设置一个技能释放模式。当受控虚拟对象处于该模式的时候,受控虚拟对象的位置不随着触点的位置改变而改变。Because in the game, the player can usually change the position of the controlled virtual object in the game scene displayed by the graphical user interface through a drag operation on the controlled virtual object. In essence, the drag operation is a special case of the sliding operation. The player's operation process is the same, but in response to the drag operation, the display position of the controlled virtual object changes as the position of the contact point changes. In order to distinguish the player's drag operation on the controlled virtual object from the active operation starting from the controlled virtual object, a skill release mode can be set in advance for the controlled virtual object. When the controlled virtual object is in this mode, the position of the controlled virtual object does not change as the position of the contact point changes.
在具体实现时,可以在图形用户界面预先设置技能释放模式对应的控件,玩家点击该控件后,受控虚拟对象便进入技能释放模式。还可以预先设定对屏幕进行了设定图形的滑动操作,如滑动操作的触点轨迹为五角星形状时,受控虚拟对象便进入了技能释放模式。此外,还可以设置针对受控虚拟对象进行了双击或长按操作等操作后,受控虚拟角色便进入了技能释放模式,具体可以根据需求设置。During specific implementation, the control corresponding to the skill release mode can be pre-set on the graphical user interface. After the player clicks the control, the controlled virtual object enters the skill release mode. You can also preset a sliding operation with a set graphic on the screen. For example, when the contact track of the sliding operation is in the shape of a five-pointed star, the controlled virtual object enters the skill release mode. In addition, you can also set the controlled virtual character to enter the skill release mode after double-clicking or long-pressing the controlled virtual object. This can be set according to your needs.
在受控虚拟角色进入了技能释放模式后,需要使图形用户界面显示的游戏场景画面与未进入时有所不同,如使受控虚拟对象显示为发光效果,或者使可以被技能攻击的对象显示为发光效果等,以提示玩家受控虚拟对象进入了技能释放模式。After the controlled virtual character enters the skill release mode, the game scene screen displayed on the graphical user interface needs to be different from that before entering, such as making the controlled virtual object display a glowing effect, or making the objects that can be attacked by skills display. For luminous effects, etc., to remind the player that the controlled virtual object has entered the skill release mode.
步骤S104,基于触点位置与受控虚拟对象的相对位置,确定目标技能的技能指示器的显示位置;其中,触点位置位于受控虚拟对象的第一方向,显示位置位于受控虚拟对象的第二方向,第二方向与第一方向相反。Step S104, determine the display position of the skill indicator of the target skill based on the relative position of the touch point position and the controlled virtual object; wherein, the touch point position is located in the first direction of the controlled virtual object, and the display position is located in the controlled virtual object. The second direction is opposite to the first direction.
随着触点位置离开受控虚拟对象并在屏幕上运动,触点位置与受控虚拟对象的相对位置也随之改变。触点位置与受控虚拟对象的相对位置可以由二者之间的连线表示,该连线具有一定的方向和长度。目标技能的技能显示器的显示位置可以基于该连线的方向和长度确定。为了不遮挡目标技能的技能指示器,技能指示器位于受控虚拟对象指向触点位置的方向的相反方向,如图2所示,第一方向为受控虚拟对象指向触点位置的方向,第二方向为受控虚拟对象指向技能指示器的方向,两个方向夹角为180度。当目标技能的释放具有一定的角度限制,例如具有最大的限制角度时,如果基于第一方向确定的第二方向以超过了最大的限制角度,则可以不显示技能指示器,或直接将最大的限制角度对应的方向确定为技能指示器的第二方向。As the touch point position leaves the controlled virtual object and moves on the screen, the relative position of the touch point position and the controlled virtual object also changes. The relative position of the contact point and the controlled virtual object can be represented by a connection line between the two, and the connection line has a certain direction and length. The display position of the skill display of the target skill can be determined based on the direction and length of the connection. In order not to block the skill indicator of the target skill, the skill indicator is located in the opposite direction of the direction in which the controlled virtual object points to the contact position, as shown in Figure 2. The first direction is the direction in which the controlled virtual object points to the contact position. The two directions are the directions in which the controlled virtual object points to the skill indicator, and the angle between the two directions is 180 degrees. When the release of the target skill has a certain angle limit, such as a maximum limit angle, if the second direction determined based on the first direction exceeds the maximum limit angle, the skill indicator may not be displayed, or the maximum limit angle may be directly changed. The direction corresponding to the limit angle is determined as the second direction of the skill indicator.
由于目标技能使受控虚拟对象发出的,因此技能指示器的起始位置通常为受控虚拟对象。可以进一步基于触点位置与受控虚拟对象的连线的长度,确定技能指示器的显示位置。通常会设置一定的比例参数,该比例参数可以为该技能显示器与受控虚拟对象之间的相对距离和触点位置与受控虚拟对象的连线的长度之比。在得到触点位置与受控虚拟对象的连线的长度后,可以很容易地计算得到技能显示器与受控虚拟对象之间的相对距离,由于起始位置为受控虚拟对象,基于技能显示器与受控虚拟对象之间的相对距离,便可以确定技 能显示器的显示位置。Because the target skill causes the controlled virtual object to emit, the starting position of the skill indicator is usually the controlled virtual object. The display position of the skill indicator may be further determined based on the length of the connection line between the contact position and the controlled virtual object. A certain ratio parameter is usually set, which can be the ratio of the relative distance between the skill display and the controlled virtual object and the length of the connection between the contact position and the controlled virtual object. After getting the length of the line connecting the contact position and the controlled virtual object, the relative distance between the skill display and the controlled virtual object can be easily calculated. Since the starting position is the controlled virtual object, based on the skill display and The relative distance between controlled virtual objects can determine the technical Can display the display position.
不同释放方式的目标技能的技能显示器的显示形状和显示方式通常不同。例如,目标技能的作用方式为武器发射或投掷类的,技能显示器的显示位置通常为目标技能的释放位置,即目标技能作用于该显示位置的其他虚拟对象。当目标技能具有一定的作用范围时,该作用范围可以以显示位置为中心,如图2所示,灰色的圆形区域为目标技能的作用范围,该圆形区域的中心为确定出的技能显示器的显示位置。The display shape and display mode of the skill display of target skills with different release methods are usually different. For example, if the target skill functions like weapon launching or throwing, the display position of the skill display is usually the release position of the target skill, that is, the target skill acts on other virtual objects at the display position. When the target skill has a certain scope, the scope can be centered on the display position, as shown in Figure 2. The gray circular area is the scope of the target skill, and the center of the circular area is the determined skill display. display position.
当目标技能的作用方式为扫荡式时,目标技能的作用区域可以为从受控虚拟对象至技能显示器的显示位置之间的一定区域内,如图3所示,灰色的矩形区域为目标技能的作用范围,确定出的技能显示器的显示位置位于目标技能的作用区域的结束位置。When the target skill's action mode is sweeping, the target skill's action area can be a certain area between the controlled virtual object and the display position of the skill display, as shown in Figure 3. The gray rectangular area is the target skill's area. Scope of action, the determined display position of the skill display is located at the end of the action area of the target skill.
步骤S106,响应于滑动操作的释放事件,控制受控虚拟对象向显示位置释放目标技能。Step S106: In response to the release event of the sliding operation, control the controlled virtual object to release the target skill to the display position.
当玩家松开手指时,产生了滑动操作的释放事件,可以认为玩家确定了目标技能的释放位置,此时可以控制受控虚拟对象向显示位置释放目标技能,产生的作用效果与目标技能的作用方式相匹配,如图2中对灰色的圆形区域产生了作用效果,或图3中对灰色的长方形区域产生了作用效果等。When the player releases his finger, a release event of the sliding operation is generated. It can be considered that the player has determined the release position of the target skill. At this time, the controlled virtual object can be controlled to release the target skill to the display position. The resulting effect is the same as that of the target skill. The method matches, for example, it has an effect on the gray circular area in Figure 2, or it has an effect on the gray rectangular area in Figure 3, etc.
当玩家不想释放该目标技能时,可以将触点位置移动到受控虚拟对象所在的区域内,即触点位置与受控虚拟对象之间的相对距离为0时,取消释放目标技能。When the player does not want to release the target skill, the contact position can be moved to the area where the controlled virtual object is located, that is, when the relative distance between the contact position and the controlled virtual object is 0, the release of the target skill can be canceled.
上述一种技能释放的交互控制方法,响应于以受控虚拟对象为起点的滑动操作,监听滑动操作的触点位置;基于触点位置与受控虚拟对象的相对位置,确定目标技能的技能指示器的显示位置;其中,触点位置位于受控虚拟对象的第一方向,显示位置位于受控虚拟对象的第二方向,第二方向与第一方向相反;响应于滑动操作的释放事件,控制受控虚拟对象向显示位置释放目标技能。该方式中,控制技能释放的滑动操作的触点和技能显示器分别位于受控虚拟对象的两个相反的方向,触点不会遮挡技能显示器的显示位置,不仅提高了玩家在控制技能释放过程中的游戏体验,还能够降低终端设备的对局运行时长,节省终端设备的电量消耗。The above interactive control method for skill release responds to a sliding operation starting from a controlled virtual object, monitors the contact position of the sliding operation, and determines the skill indication of the target skill based on the relative position of the contact position and the controlled virtual object. The display position of the device; wherein, the contact position is located in the first direction of the controlled virtual object, the display position is located in the second direction of the controlled virtual object, and the second direction is opposite to the first direction; in response to the release event of the sliding operation, the control The controlled virtual object releases the target skill to the displayed position. In this method, the contact point of the sliding operation that controls skill release and the skill display are located in two opposite directions of the controlled virtual object. The contact point will not block the display position of the skill display, which not only improves the player's ability to control the skill release process. It can also improve the game experience, reduce the running time of the terminal device, and save the power consumption of the terminal device.
下述实施例提供一基于触点位置与受控虚拟对象的相对位置,确定目标技能的技能指示器的显示位置的具体方式。The following embodiment provides a specific method of determining the display position of the skill indicator of the target skill based on the relative position of the contact position and the controlled virtual object.
触点位置与受控虚拟对象的相对位置可以包括相对方向及相对距离。而目标技能的技能显示器的显示位置也是相对于受控虚拟对象来说的,也需要确定技能显示器相对与受控虚拟对象的显示方向和距离;其中,显示方向指示目标技能的作用方向。The relative position of the touch point position and the controlled virtual object may include a relative direction and a relative distance. The display position of the skill display of the target skill is also relative to the controlled virtual object, and the display direction and distance of the skill display relative to the controlled virtual object also need to be determined; where the display direction indicates the direction of the target skill.
具体而言,可以基于触点位置与受控虚拟对象的相对方向,确定目标技能的技能指示器的显示方向;在具体实现时,相对方向可以由受控虚拟对象指向触点位置形成的方向表示,可以将触点位置与受控虚拟对象的相对方向的反方向确定为目标技能的技能指示器的显示方向。进一步,还可以基于触点位置与受控虚拟对象的相对距离,确定目标技能的技 能指示器的结束位置与受控虚拟对象的目标距离;具体而言,将触点位置与受控虚拟对象的相对距离与预设的比例参数相乘,得到计算结果,然后将计算结果确定为目标技能的技能指示器的结束位置与受控虚拟对象的目标距离。其中,目标技能的技能指示器的结束位置可以根据目标技能的作用方式作为作用区域的中心位置或结束位置。如图4所示,l1为触点位置与受控虚拟对象的相对距离,l2为目标技能的技能指示器的结束位置与受控虚拟对象的目标距离;当比例参数为2时,l2的长度是l1两倍。最后基于目标技能的技能指示器的显示方向,以及目标技能的技能指示器的结束位置与受控虚拟对象的目标距离,确定目标技能的技能指示器的显示位置。其中,该显示位置可以为目标技能的作用区域,如图2和图3中所示的灰色区域。Specifically, the display direction of the skill indicator of the target skill can be determined based on the relative direction of the contact position and the controlled virtual object; in specific implementation, the relative direction can be represented by the direction formed by the controlled virtual object pointing to the contact position. , the opposite direction of the relative direction of the contact position and the controlled virtual object can be determined as the display direction of the skill indicator of the target skill. Furthermore, the skill level of the target skill can also be determined based on the relative distance between the contact position and the controlled virtual object. The target distance between the end position of the energy indicator and the controlled virtual object; specifically, multiply the relative distance between the contact position and the controlled virtual object by the preset scale parameter to obtain the calculation result, and then determine the calculation result as The target distance between the end position of the target skill's skill indicator and the controlled virtual object. Among them, the end position of the skill indicator of the target skill can be used as the center position or the end position of the action area according to the action mode of the target skill. As shown in Figure 4, l1 is the relative distance between the contact position and the controlled virtual object, l2 is the target distance between the end position of the skill indicator of the target skill and the controlled virtual object; when the scale parameter is 2, the length of l2 It is twice that of l1. Finally, the display position of the skill indicator of the target skill is determined based on the display direction of the skill indicator of the target skill and the target distance between the end position of the skill indicator of the target skill and the controlled virtual object. The display position may be the action area of the target skill, such as the gray area shown in Figures 2 and 3.
此外,当目标技能的使用过程具有一定的距离限制,如具有最大作用距离,如果判断计算结果大于目标技能的最大作用距离,将最大作用距离确定为目标技能的技能指示器的结束位置与受控虚拟对象的目标距离,而不采用该计算结果为目标技能的技能指示器的结束位置与受控虚拟对象的目标距离。In addition, when the use process of the target skill has a certain distance limit, such as a maximum action distance, if the calculation result is judged to be greater than the maximum action distance of the target skill, the maximum action distance is determined as the end position of the skill indicator of the target skill and the controlled distance. The target distance of the virtual object, instead of using the calculation result, is the target distance between the end position of the skill indicator of the target skill and the controlled virtual object.
为了便于玩家调整触点位置与受控虚拟角色的相对位置,可以在图形用户界面上显示触点位置与受控虚拟对象的连线,该连线的显示颜色可以与技能指示器的显示颜色不同。In order to facilitate the player to adjust the relative position of the touch point position and the controlled virtual character, the connection line between the touch point position and the controlled virtual object can be displayed on the graphical user interface. The display color of the connection line can be different from the display color of the skill indicator. .
为了区别玩家针对受控虚拟角色的拖动操作和用于释放技能的滑动操作,可以预先设定玩家的一些操作可以产生技能释放的触发事件,进而响应于技能释放的触发事件,确定受控虚拟对象进入技能释放模式。该模式种,受控虚拟对象通常不会随着滑动操作移动。In order to distinguish between the player's drag operation for the controlled virtual character and the sliding operation for releasing skills, some operations of the player can be preset to generate trigger events for skill release, and then in response to the trigger events for skill release, the controlled virtual character can be determined. The subject enters skill release mode. In this mode, the controlled virtual object usually does not move with the sliding operation.
具体而言,可以将作用于受控虚拟对象的长按操作设定为产生技能释放的触发事件的操作,进而响应作用于受控虚拟对象的长按操作,确定受控虚拟对象进入技能释放模式。在一些情况下,还可以在图形用户界面显示预设的技能释放模式控件;响应作用于技能释放模式控件的点击操作,确定受控虚拟对象进入技能释放模式。当确定受控虚拟对象进入技能释放模式后,以第一显示格式显示受控虚拟对象,例如受控虚拟角色的边缘可以显示有火苗,或者受控虚拟角色可以显示为闪烁状态等。Specifically, the long press operation acting on the controlled virtual object can be set as an operation that generates a trigger event for skill release, and then in response to the long press operation acting on the controlled virtual object, it is determined that the controlled virtual object enters the skill release mode. . In some cases, a preset skill release mode control can also be displayed on the graphical user interface; in response to a click operation on the skill release mode control, it is determined that the controlled virtual object enters the skill release mode. After it is determined that the controlled virtual object enters the skill release mode, the controlled virtual object is displayed in the first display format. For example, the edge of the controlled virtual character may be displayed with flames, or the controlled virtual character may be displayed in a flashing state, etc.
当通过释放滑动操作来释放目标技能时,需要判断触点位置与受控虚拟对象的相对距离是否小于预设距离;如果小于,取消控制受控虚拟对象释放目标技能。当触点位置与受控虚拟对象的相对距离小于预设距离时,同时应该取消显示技能释放器,使玩家确定当触点位置位于当前位置时,释放触点无法释放目标技能。When releasing the target skill by releasing the sliding operation, it is necessary to determine whether the relative distance between the contact position and the controlled virtual object is less than the preset distance; if it is less than the preset distance, cancel the control of the controlled virtual object to release the target skill. When the relative distance between the contact position and the controlled virtual object is less than the preset distance, the skill releaser should be canceled at the same time, so that the player can determine that when the contact position is at the current position, releasing the contact cannot release the target skill.
本公开实施例还提供了另一种技能释放的交互控制方法。该方法在图1所示的方法基础上实现。该方法可以解决传统技能施放方式不够便捷、操作位置脱离场景中施放角色的位置、手指对技能目标产生遮挡等问题。The embodiment of the present disclosure also provides another interactive control method for skill release. This method is implemented based on the method shown in Figure 1. This method can solve the problems that the traditional skill casting method is not convenient enough, the operating position is far away from the position of the character in the scene, and the fingers block the skill target.
该方法中,受控虚拟对象可以称为攻击者。玩家首先需要长按攻击者模型,触发技能释放模式,然后直接在场景中控制攻击者,即手指向目标方向滑动,划过的轨迹可以在图形用户界面上显示出来;随着手指的移动,划过的轨迹在延申的同时,朝其相反方向可以 显示技能指示器,技能指示器的显示位置与划过的轨迹成一定的比例关系。在一种实现方式中,如图2所示,灰色的圆形区域即为技能对应的释放位置(也称为“施放位置”),玩家松开手指,攻击者即向释放位置处施放目标技能。In this method, the controlled virtual object can be called an attacker. The player first needs to long press the attacker model to trigger the skill release mode, and then directly control the attacker in the scene, that is, slide the finger in the target direction, and the trace can be displayed on the graphical user interface; as the finger moves, the trace can be extended and moved in the opposite direction. The skill indicator is displayed, and the display position of the skill indicator is in a certain proportional relationship with the track passed. In one implementation, as shown in FIG2 , the gray circular area is the release position (also called the “casting position”) corresponding to the skill. When the player releases his finger, the attacker casts the target skill at the release position.
该方式使攻击交互更加直接;同时采用反向弹射的方式选择技能目标,目标技能的施放角度和位置随着手指划过的位置而改变。手指触点无需在“受击者”上,避免手指对“受击者”的遮挡。This method makes the attack interaction more direct; at the same time, the reverse ejection method is used to select the skill target, and the casting angle and position of the target skill change according to the position of the finger. The finger contact point does not need to be on the "striker" to avoid occlusion of the "striker" by the finger.
对于上述方法实施例,参见图5所示的一种技能释放的交互控制装置,通过终端设备提供一图形用户界面;图形用户界面显示有受控虚拟对象;受控虚拟对象通过终端设备控制;该装置包括:For the above method embodiment, refer to the interactive control device for skill release shown in Figure 5, which provides a graphical user interface through a terminal device; the graphical user interface displays a controlled virtual object; the controlled virtual object is controlled through the terminal device; Devices include:
触点位置监听模块502,用于响应于以受控虚拟对象为起点的滑动操作,监听滑动操作的触点位置;The contact position monitoring module 502 is used to monitor the contact position of the sliding operation in response to the sliding operation starting from the controlled virtual object;
显示位置确定模块504,用于基于触点位置与受控虚拟对象的相对位置,确定目标技能的技能指示器的显示位置;其中,触点位置位于受控虚拟对象的第一方向,显示位置位于受控虚拟对象的第二方向,第二方向与第一方向相反;The display position determination module 504 is used to determine the display position of the skill indicator of the target skill based on the relative position of the contact position and the controlled virtual object; wherein, the contact position is located in the first direction of the controlled virtual object, and the display position is located at The second direction of the controlled virtual object, the second direction is opposite to the first direction;
技能释放模块506,用于响应于滑动操作的释放事件,控制受控虚拟对象向显示位置释放目标技能。The skill release module 506 is used to control the controlled virtual object to release the target skill to the display position in response to the release event of the sliding operation.
上述一种技能释放的交互控制装置,响应于以受控虚拟对象为起点的滑动操作,监听滑动操作的触点位置;基于触点位置与受控虚拟对象的相对位置,确定目标技能的技能指示器的显示位置;其中,触点位置位于受控虚拟对象的第一方向,显示位置位于受控虚拟对象的第二方向,第二方向与第一方向相反;响应于滑动操作的释放事件,控制受控虚拟对象向显示位置释放目标技能。该方式中,控制技能释放的滑动操作的触点和技能显示器分别位于受控虚拟对象的两个相反的方向,触点不会遮挡技能显示器的显示位置,不仅提高了玩家在控制技能释放过程中的游戏体验,还能够降低终端设备的对局运行时长,节省终端设备的电量消耗。The above-mentioned interactive control device for skill release responds to a sliding operation starting from a controlled virtual object, monitors the contact position of the sliding operation, and determines the skill indication of the target skill based on the relative position of the contact position and the controlled virtual object. The display position of the device; wherein, the contact position is located in the first direction of the controlled virtual object, the display position is located in the second direction of the controlled virtual object, and the second direction is opposite to the first direction; in response to the release event of the sliding operation, the control The controlled virtual object releases the target skill to the displayed position. In this method, the contact point of the sliding operation that controls skill release and the skill display are located in two opposite directions of the controlled virtual object. The contact point will not block the display position of the skill display, which not only improves the player's ability to control the skill release process. It can also improve the game experience, reduce the running time of the terminal device, and save the power consumption of the terminal device.
上述相对位置包括相对方向及相对距离;上述显示位置确定模块还用于:基于触点位置与受控虚拟对象的相对方向,确定目标技能的技能指示器的显示方向;基于触点位置与受控虚拟对象的相对距离,确定目标技能的技能指示器的结束位置与受控虚拟对象的目标距离;基于目标技能的技能指示器的显示方向,以及目标技能的技能指示器的结束位置与受控虚拟对象的目标距离,确定目标技能的技能指示器的显示位置。The above-mentioned relative position includes relative direction and relative distance; the above-mentioned display position determination module is also used to: determine the display direction of the skill indicator of the target skill based on the relative direction of the contact position and the controlled virtual object; The relative distance of the virtual object determines the end position of the skill indicator of the target skill and the target distance of the controlled virtual object; the display direction of the skill indicator based on the target skill, and the end position of the skill indicator of the target skill and the controlled virtual object The object's target distance, which determines where the skill indicator for the target skill is displayed.
上述相对方向由受控虚拟对象指向触点位置;显示方向指示目标技能的作用方向;上述显示位置确定模块还用于:对象的相对方向,确定目标技能的技能指示器的显示方向的步骤,包括:将触点位置与受控虚拟对象的相对方向的反方向确定为目标技能的技能指示器的显示方向。The above-mentioned relative direction is pointed by the controlled virtual object to the contact position; the display direction indicates the action direction of the target skill; the above-mentioned display position determination module is also used for: the relative direction of the object, the step of determining the display direction of the skill indicator of the target skill, including : Determine the opposite direction of the relative direction between the contact position and the controlled virtual object as the display direction of the skill indicator of the target skill.
上述显示位置确定模块还用于:将触点位置与受控虚拟对象的相对距离与预设的比例 参数相乘,得到计算结果;将计算结果确定为目标技能的技能指示器的结束位置与受控虚拟对象的目标距离。The above display position determination module is also used to: compare the relative distance between the contact position and the controlled virtual object with a preset ratio. The parameters are multiplied to obtain the calculation result; the calculation result is determined as the target distance between the end position of the skill indicator of the target skill and the controlled virtual object.
上述装置还包括:计算结果判断模块,用于判断计算结果是否大于目标技能的最大作用距离;目标距离确定魔魁啊,如果大于,将最大作用距离确定为目标技能的技能指示器的结束位置与受控虚拟对象的目标距离。The above-mentioned device also includes: a calculation result judgment module, used to judge whether the calculation result is greater than the maximum action distance of the target skill; the target distance is determined to be Mokui, and if it is greater, the maximum action distance is determined as the end position of the skill indicator of the target skill and The target distance of the controlled virtual object.
上述装置还包括技能释放模式确定模块,用于:响应于技能释放的触发事件,确定受控虚拟对象进入技能释放模式。The above device also includes a skill release mode determination module, configured to determine that the controlled virtual object enters the skill release mode in response to a triggering event of skill release.
上述技能释放模式确定模块还用于:响应作用于受控虚拟对象的长按操作,确定受控虚拟对象进入技能释放模式;或者,通过图形用户界面显示预设的技能释放模式控件;响应作用于技能释放模式控件的点击操作,确定受控虚拟对象进入技能释放模式。The above-mentioned skill release mode determination module is also used to: respond to the long press operation acting on the controlled virtual object, determine that the controlled virtual object enters the skill release mode; or display the preset skill release mode control through the graphical user interface; respond to the The click operation of the skill release mode control determines that the controlled virtual object enters the skill release mode.
上述装置还包括受控虚拟对象显示模块,用于:以第一显示格式显示受控虚拟对象。The above device also includes a controlled virtual object display module, configured to display the controlled virtual object in a first display format.
上述装置还包括触点连线显示模块,用于:显示触点位置与受控虚拟对象的连线。The above device also includes a contact connection display module, used for: displaying the connection between the contact position and the controlled virtual object.
上述装置还包括:相对距离判断模块,用于响应于滑动操作的释放事件,判断触点位置与受控虚拟对象的相对距离是否小于预设距离;取消技能释放模块,用于如果小于,取消控制受控虚拟对象释放目标技能。The above device also includes: a relative distance judgment module, used to judge whether the relative distance between the contact position and the controlled virtual object is less than the preset distance in response to the release event of the sliding operation; and a skill cancellation module, used to cancel the control if it is less than the preset distance. Controlled virtual objects release target skills.
本实施例还提供一种电子设备,包括处理器和存储器,存储器存储有能够被处理器执行的机器可执行指令,处理器执行机器可执行指令以实现上述技能释放的交互控制方法,例如:This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the interactive control method of skill release, for example:
响应于以受控虚拟对象为起点的滑动操作,监听滑动操作的触点位置;基于触点位置与受控虚拟对象的相对位置,确定目标技能的技能指示器的显示位置;其中,触点位置位于受控虚拟对象的第一方向,显示位置位于受控虚拟对象的第二方向,第二方向与第一方向相反;响应于滑动操作的释放事件,控制受控虚拟对象向显示位置释放目标技能。In response to the sliding operation starting from the controlled virtual object, monitor the contact position of the sliding operation; based on the relative position of the contact position and the controlled virtual object, determine the display position of the skill indicator of the target skill; where, the contact position Located in the first direction of the controlled virtual object, the display position is located in the second direction of the controlled virtual object, and the second direction is opposite to the first direction; in response to the release event of the sliding operation, the controlled virtual object is controlled to release the target skill to the display position .
上述方法中,控制技能释放的滑动操作的触点和技能显示器分别位于受控虚拟对象的两个相反的方向,触点不会遮挡技能显示器的显示位置,不仅提高了玩家在控制技能释放过程中的游戏体验,还能够降低终端设备的对局运行时长,节省终端设备的电量消耗。In the above method, the contact point of the sliding operation that controls skill release and the skill display are located in two opposite directions of the controlled virtual object. The contact point will not block the display position of the skill display, which not only improves the player's ability to control the skill release process. It can also improve the game experience, reduce the running time of the terminal device, and save the power consumption of the terminal device.
可选的,上述相对位置包括相对方向及相对距离;基于触点位置与受控虚拟对象的相对位置,确定目标技能的技能指示器的显示位置的步骤,包括:基于触点位置与受控虚拟对象的相对方向,确定目标技能的技能指示器的显示方向;基于触点位置与受控虚拟对象的相对距离,确定目标技能的技能指示器的结束位置与受控虚拟对象的目标距离;基于目标技能的技能指示器的显示方向,以及目标技能的技能指示器的结束位置与受控虚拟对象的目标距离,确定目标技能的技能指示器的显示位置。Optionally, the above-mentioned relative position includes relative direction and relative distance; based on the relative position of the touch point position and the controlled virtual object, the step of determining the display position of the skill indicator of the target skill includes: based on the touch point position and the controlled virtual object The relative direction of the object determines the display direction of the skill indicator of the target skill; based on the relative distance between the contact position and the controlled virtual object, determines the end position of the skill indicator of the target skill and the target distance of the controlled virtual object; based on the target The display direction of the skill indicator of the skill, and the target distance between the end position of the skill indicator of the target skill and the controlled virtual object determine the display position of the skill indicator of the target skill.
可选的,上述相对方向由受控虚拟对象指向触点位置;显示方向指示目标技能的作用方向;基于触点位置与受控虚拟对象的相对方向,确定目标技能的技能指示器的显示方向的步骤,包括:将触点位置与受控虚拟对象的相对方向的反方向确定为目标技能的技能指 示器的显示方向。Optionally, the above relative direction is directed by the controlled virtual object to the contact position; the display direction indicates the action direction of the target skill; and the display direction of the skill indicator of the target skill is determined based on the relative direction between the contact position and the controlled virtual object. Steps include: determining the opposite direction of the contact position and the relative direction of the controlled virtual object as the skill indicator of the target skill. display direction of the monitor.
可选的,上述基于触点位置与受控虚拟对象的相对距离,确定目标技能的技能指示器的结束位置与受控虚拟对象的目标距离的步骤,包括:将触点位置与受控虚拟对象的相对距离与预设的比例参数相乘,得到计算结果;将计算结果确定为目标技能的技能指示器的结束位置与受控虚拟对象的目标距离。Optionally, the above step of determining the end position of the skill indicator of the target skill and the target distance of the controlled virtual object based on the relative distance between the contact position and the controlled virtual object includes: comparing the contact position with the controlled virtual object. The relative distance is multiplied by the preset proportion parameter to obtain the calculation result; the calculation result is determined as the target distance between the end position of the skill indicator of the target skill and the controlled virtual object.
可选的,上述将触点位置与受控虚拟对象的相对距离与预设的比例参数相乘,得到计算结果之后,上述方法还包括:判断计算结果是否大于目标技能的最大作用距离;如果大于,将最大作用距离确定为目标技能的技能指示器的结束位置与受控虚拟对象的目标距离。Optionally, the relative distance between the contact position and the controlled virtual object is multiplied by the preset proportion parameter. After obtaining the calculation result, the above method also includes: determining whether the calculation result is greater than the maximum action distance of the target skill; if it is greater than , the maximum action distance is determined as the end position of the skill indicator of the target skill and the target distance of the controlled virtual object.
可选的,上述响应于以受控虚拟对象为起点的滑动操作,监听滑动操作的触点位置之前,上述方法还包括:响应于技能释放的触发事件,确定受控虚拟对象进入技能释放模式。Optionally, before monitoring the contact position of the sliding operation in response to the sliding operation starting from the controlled virtual object, the above method further includes: in response to the triggering event of skill release, determining that the controlled virtual object enters the skill release mode.
可选的,上述响应于技能释放的触发事件,确定受控虚拟对象进入技能释放模式的步骤,包括:响应作用于受控虚拟对象的长按操作,确定受控虚拟对象进入技能释放模式;或者,通过图形用户界面显示预设的技能释放模式控件;响应作用于技能释放模式控件的点击操作,确定受控虚拟对象进入技能释放模式。Optionally, the above step of determining that the controlled virtual object enters the skill release mode in response to a triggering event of skill release includes: determining that the controlled virtual object enters the skill release mode in response to a long press operation on the controlled virtual object; or , display the preset skill release mode control through the graphical user interface; in response to a click operation on the skill release mode control, determine that the controlled virtual object enters the skill release mode.
可选的,上述确定受控虚拟对象进入技能释放模式的步骤之后,上述方法还包括:以第一显示格式显示受控虚拟对象。Optionally, after the above step of determining that the controlled virtual object enters the skill release mode, the above method further includes: displaying the controlled virtual object in the first display format.
可选的,上述响应于以受控虚拟对象为起点的滑动操作,监听滑动操作的触点位置的步骤之后,上述方法还包括:显示触点位置与受控虚拟对象的连线。Optionally, after the above step of monitoring the contact position of the sliding operation in response to the sliding operation starting from the controlled virtual object, the above method further includes: displaying a connection between the contact position and the controlled virtual object.
可选的,上述方法还包括:响应于滑动操作的释放事件,判断触点位置与受控虚拟对象的相对距离是否小于预设距离;如果小于,取消控制受控虚拟对象释放目标技能。Optionally, the above method also includes: in response to a release event of the sliding operation, determining whether the relative distance between the contact position and the controlled virtual object is less than a preset distance; if it is less than, canceling control of the controlled virtual object to release the target skill.
参见图6所示,该电子设备包括处理器100和存储器101,该存储器101存储有能够被处理器100执行的机器可执行指令,该处理器100执行机器可执行指令以实现上述技能释放的交互控制方法。As shown in FIG. 6 , the electronic device includes a processor 100 and a memory 101 . The memory 101 stores machine-executable instructions that can be executed by the processor 100 . The processor 100 executes the machine-executable instructions to implement the above-mentioned skill release interaction. Control Method.
进一步地,图6所示的电子设备还包括总线102和通信接口103,处理器100、通信接口103和存储器101通过总线102连接。Further, the electronic device shown in FIG. 6 also includes a bus 102 and a communication interface 103. The processor 100, the communication interface 103 and the memory 101 are connected through the bus 102.
其中,存储器101可能包含高速随机存取存储器(RAM,Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个通信接口103(可以是有线或者无线)实现该系统网元与至少一个其他网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。总线102可以是ISA总线、PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。Among them, the memory 101 may include high-speed random access memory (RAM, Random Access Memory), and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, wide area network, local network, metropolitan area network, etc. can be used. The bus 102 may be an ISA bus, a PCI bus, an EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one bidirectional arrow is used in Figure 6, but it does not mean that there is only one bus or one type of bus.
处理器100可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器100中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器100可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital Signal  Processor,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本公开实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本公开实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器101,处理器100读取存储器101中的信息,结合其硬件完成前述实施例的方法的步骤。The processor 100 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor 100 . The above-mentioned processor 100 can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; it can also be a digital signal processor (Digital Signal Processor). Processor (DSP for short), Application Specific Integrated Circuit (ASIC for short), Field-Programmable Gate Array (FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Each disclosed method, step and logical block diagram in the embodiment of the present disclosure can be implemented or executed. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field. The storage medium is located in the memory 101. The processor 100 reads the information in the memory 101 and completes the steps of the method in the aforementioned embodiment in combination with its hardware.
本实施例还提供一种机器可读存储介质,机器可读存储介质存储有机器可执行指令,机器可执行指令在被处理器调用和执行时,机器可执行指令促使处理器实现上述技能释放的交互控制方法。This embodiment also provides a machine-readable storage medium. The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by the processor, the machine-executable instructions prompt the processor to realize the above-mentioned skill release. Interactive control methods.
本公开实施例所提供的一种技能释放的交互控制方法、装置以及电子设备,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行前面方法实施例中所述的方法,例如:An interactive control method, device, and electronic device for skill release provided by embodiments of the present disclosure include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the instructions described in the previous method embodiments. methods, for example:
响应于以受控虚拟对象为起点的滑动操作,监听滑动操作的触点位置;基于触点位置与受控虚拟对象的相对位置,确定目标技能的技能指示器的显示位置;其中,触点位置位于受控虚拟对象的第一方向,显示位置位于受控虚拟对象的第二方向,第二方向与第一方向相反;响应于滑动操作的释放事件,控制受控虚拟对象向显示位置释放目标技能。In response to the sliding operation starting from the controlled virtual object, monitor the contact position of the sliding operation; based on the relative position of the contact position and the controlled virtual object, determine the display position of the skill indicator of the target skill; where, the contact position Located in the first direction of the controlled virtual object, the display position is located in the second direction of the controlled virtual object, and the second direction is opposite to the first direction; in response to the release event of the sliding operation, the controlled virtual object is controlled to release the target skill to the display position .
上述方法中,控制技能释放的滑动操作的触点和技能显示器分别位于受控虚拟对象的两个相反的方向,触点不会遮挡技能显示器的显示位置,不仅提高了玩家在控制技能释放过程中的游戏体验,还能够降低终端设备的对局运行时长,节省终端设备的电量消耗。In the above method, the contact point of the sliding operation that controls skill release and the skill display are located in two opposite directions of the controlled virtual object. The contact point will not block the display position of the skill display, which not only improves the player's ability to control the skill release process. It can also improve the game experience, reduce the running time of the terminal device, and save the power consumption of the terminal device.
可选的,上述相对位置包括相对方向及相对距离;基于触点位置与受控虚拟对象的相对位置,确定目标技能的技能指示器的显示位置的步骤,包括:基于触点位置与受控虚拟对象的相对方向,确定目标技能的技能指示器的显示方向;基于触点位置与受控虚拟对象的相对距离,确定目标技能的技能指示器的结束位置与受控虚拟对象的目标距离;基于目标技能的技能指示器的显示方向,以及目标技能的技能指示器的结束位置与受控虚拟对象的目标距离,确定目标技能的技能指示器的显示位置。Optionally, the above-mentioned relative position includes relative direction and relative distance; based on the relative position of the touch point position and the controlled virtual object, the step of determining the display position of the skill indicator of the target skill includes: based on the touch point position and the controlled virtual object The relative direction of the object determines the display direction of the skill indicator of the target skill; based on the relative distance between the contact position and the controlled virtual object, determines the end position of the skill indicator of the target skill and the target distance of the controlled virtual object; based on the target The display direction of the skill indicator of the skill, and the target distance between the end position of the skill indicator of the target skill and the controlled virtual object determine the display position of the skill indicator of the target skill.
可选的,上述相对方向由受控虚拟对象指向触点位置;显示方向指示目标技能的作用方向;基于触点位置与受控虚拟对象的相对方向,确定目标技能的技能指示器的显示方向的步骤,包括:将触点位置与受控虚拟对象的相对方向的反方向确定为目标技能的技能指示器的显示方向。Optionally, the above relative direction is directed by the controlled virtual object to the contact position; the display direction indicates the action direction of the target skill; and the display direction of the skill indicator of the target skill is determined based on the relative direction between the contact position and the controlled virtual object. The step includes: determining the opposite direction of the relative direction of the contact position and the controlled virtual object as the display direction of the skill indicator of the target skill.
可选的,上述基于触点位置与受控虚拟对象的相对距离,确定目标技能的技能指示器的结束位置与受控虚拟对象的目标距离的步骤,包括:将触点位置与受控虚拟对象的相对距离与预设的比例参数相乘,得到计算结果;将计算结果确定为目标技能的技能指示器的 结束位置与受控虚拟对象的目标距离。Optionally, the above step of determining the end position of the skill indicator of the target skill and the target distance of the controlled virtual object based on the relative distance between the contact position and the controlled virtual object includes: comparing the contact position with the controlled virtual object. The relative distance is multiplied by the preset proportion parameter to obtain the calculation result; the calculation result is determined as the skill indicator of the target skill. The target distance between the end position and the controlled virtual object.
可选的,上述将触点位置与受控虚拟对象的相对距离与预设的比例参数相乘,得到计算结果之后,上述方法还包括:判断计算结果是否大于目标技能的最大作用距离;如果大于,将最大作用距离确定为目标技能的技能指示器的结束位置与受控虚拟对象的目标距离。Optionally, the relative distance between the contact position and the controlled virtual object is multiplied by the preset proportion parameter. After obtaining the calculation result, the above method also includes: determining whether the calculation result is greater than the maximum action distance of the target skill; if it is greater than , the maximum action distance is determined as the end position of the skill indicator of the target skill and the target distance of the controlled virtual object.
可选的,上述响应于以受控虚拟对象为起点的滑动操作,监听滑动操作的触点位置之前,上述方法还包括:响应于技能释放的触发事件,确定受控虚拟对象进入技能释放模式。Optionally, before monitoring the contact position of the sliding operation in response to the sliding operation starting from the controlled virtual object, the above method further includes: in response to the triggering event of skill release, determining that the controlled virtual object enters the skill release mode.
可选的,上述响应于技能释放的触发事件,确定受控虚拟对象进入技能释放模式的步骤,包括:响应作用于受控虚拟对象的长按操作,确定受控虚拟对象进入技能释放模式;或者,通过图形用户界面显示预设的技能释放模式控件;响应作用于技能释放模式控件的点击操作,确定受控虚拟对象进入技能释放模式。Optionally, the above step of determining that the controlled virtual object enters the skill release mode in response to a triggering event of skill release includes: determining that the controlled virtual object enters the skill release mode in response to a long press operation on the controlled virtual object; or , display the preset skill release mode control through the graphical user interface; in response to a click operation on the skill release mode control, determine that the controlled virtual object enters the skill release mode.
可选的,上述确定受控虚拟对象进入技能释放模式的步骤之后,上述方法还包括:以第一显示格式显示受控虚拟对象。Optionally, after the above step of determining that the controlled virtual object enters the skill release mode, the above method further includes: displaying the controlled virtual object in the first display format.
可选的,上述响应于以受控虚拟对象为起点的滑动操作,监听滑动操作的触点位置的步骤之后,上述方法还包括:显示触点位置与受控虚拟对象的连线。Optionally, after the above step of monitoring the contact position of the sliding operation in response to the sliding operation starting from the controlled virtual object, the above method further includes: displaying a connection between the contact position and the controlled virtual object.
可选的,上述方法还包括:响应于滑动操作的释放事件,判断触点位置与受控虚拟对象的相对距离是否小于预设距离;如果小于,取消控制受控虚拟对象释放目标技能。Optionally, the above method also includes: in response to a release event of the sliding operation, determining whether the relative distance between the contact position and the controlled virtual object is less than a preset distance; if it is less than, canceling control of the controlled virtual object to release the target skill.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
另外,在本公开实施例的描述中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域技术人员而言,可以具体情况理解上述术语在本公开中的具体含义。In addition, in the description of the embodiments of the present disclosure, unless otherwise clearly stated and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense. For example, it can be a fixed connection or a detachable connection. , or integrally connected; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be an internal connection between two components. For those skilled in the art, the specific meanings of the above terms in this disclosure can be understood on a case-by-case basis.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分或者所述技术方案的部分可以以软件产品的形式体现出来,所述计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the relevant technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, It includes several instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. .
在本公开的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本公开和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本公开的限制。此外,术语“第一”、 “第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present disclosure, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. The indicated orientation or positional relationship is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present disclosure and simplifying the description. It does not indicate or imply that the indicated device or element must have a specific orientation or a specific orientation. construction and operation, and therefore should not be construed as limitations on the present disclosure. Furthermore, the terms "first", "Second" and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance.
最后应说明的是:以上实施例,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。 Finally, it should be noted that the above embodiments are only specific implementations of the present disclosure, and are used to illustrate the technical solutions of the present disclosure, but not to limit them. The protection scope of the present disclosure is not limited thereto. Although referring to the foregoing embodiments The present disclosure has been described in detail. Those skilled in the art should understand that any person familiar with the technical field can still modify the technical solutions recorded in the foregoing embodiments or can easily think of them within the technical scope disclosed in the present disclosure. Changes, or equivalent substitutions of some of the technical features; these modifications, changes or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be covered by the protection scope of the present disclosure. Inside. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims (13)

  1. 一种技能释放的交互控制方法,通过终端设备提供一图形用户界面;所述图形用户界面显示有受控虚拟对象;所述受控虚拟对象通过所述终端设备控制;所述方法包括:An interactive control method for skill release, which provides a graphical user interface through a terminal device; the graphical user interface displays a controlled virtual object; the controlled virtual object is controlled by the terminal device; the method includes:
    响应于以所述受控虚拟对象为起点的滑动操作,监听所述滑动操作的触点位置;In response to a sliding operation starting from the controlled virtual object, monitor the contact position of the sliding operation;
    基于所述触点位置与所述受控虚拟对象的相对位置,确定目标技能的技能指示器的显示位置;其中,所述触点位置位于所述受控虚拟对象的第一方向,所述显示位置位于所述受控虚拟对象的第二方向,所述第二方向与所述第一方向相反;Based on the relative position of the contact point and the controlled virtual object, the display position of the skill indicator of the target skill is determined; wherein the contact position is located in a first direction of the controlled virtual object, and the display The position is located in a second direction of the controlled virtual object, the second direction being opposite to the first direction;
    响应于所述滑动操作的释放事件,控制所述受控虚拟对象向所述显示位置释放所述目标技能。In response to a release event of the sliding operation, the controlled virtual object is controlled to release the target skill to the display position.
  2. 根据权利要求1所述的方法,其中,所述相对位置包括相对方向及相对距离;The method according to claim 1, wherein the relative position includes a relative direction and a relative distance;
    基于所述触点位置与所述受控虚拟对象的相对位置,确定目标技能的技能指示器的显示位置的步骤,包括:The step of determining the display position of the skill indicator of the target skill based on the relative position of the contact position and the controlled virtual object includes:
    基于所述触点位置与所述受控虚拟对象的相对方向,确定目标技能的技能指示器的显示方向;Determine the display direction of the skill indicator of the target skill based on the relative direction of the contact position and the controlled virtual object;
    基于所述触点位置与所述受控虚拟对象的相对距离,确定所述目标技能的技能指示器的结束位置与所述受控虚拟对象的目标距离;Based on the relative distance between the contact position and the controlled virtual object, determine the end position of the skill indicator of the target skill and the target distance of the controlled virtual object;
    基于所述目标技能的技能指示器的显示方向,以及所述目标技能的技能指示器的结束位置与所述受控虚拟对象的目标距离,确定目标技能的技能指示器的显示位置。The display position of the skill indicator of the target skill is determined based on the display direction of the skill indicator of the target skill and the target distance between the end position of the skill indicator of the target skill and the controlled virtual object.
  3. 根据权利要求2所述的方法,其中,所述相对方向由所述受控虚拟对象指向所述触点位置;所述显示方向指示所述目标技能的作用方向;The method according to claim 2, wherein the relative direction is pointed by the controlled virtual object to the contact position; the display direction indicates the action direction of the target skill;
    基于所述触点位置与所述受控虚拟对象的相对方向,确定目标技能的技能指示器的显示方向的步骤,包括:The step of determining the display direction of the skill indicator of the target skill based on the relative direction of the contact position and the controlled virtual object includes:
    将所述触点位置与所述受控虚拟对象的相对方向的反方向确定为目标技能的技能指示器的显示方向。The opposite direction of the relative direction of the contact position and the controlled virtual object is determined as the display direction of the skill indicator of the target skill.
  4. 根据权利要求2所述的方法,其中,基于所述触点位置与所述受控虚拟对象的相对距离,确定所述目标技能的技能指示器的结束位置与所述受控虚拟对象的目标距离的步骤,包括:The method of claim 2, wherein a target distance between an end position of a skill indicator of the target skill and the controlled virtual object is determined based on a relative distance between the contact position and the controlled virtual object. The steps include:
    将所述触点位置与所述受控虚拟对象的相对距离与预设的比例参数相乘,得到计算结果;Multiply the relative distance between the contact position and the controlled virtual object by a preset proportion parameter to obtain a calculation result;
    将所述计算结果确定为所述目标技能的技能指示器的结束位置与所述受控虚拟对象的目标距离。The calculation result is determined as the target distance between the end position of the skill indicator of the target skill and the controlled virtual object.
  5. 根据权利要求4所述的方法,其中,将所述触点位置与所述受控虚拟对象的相对距离与预设的比例参数相乘,得到计算结果之后,所述方法还包括:The method according to claim 4, wherein after multiplying the relative distance between the contact position and the controlled virtual object by a preset proportion parameter to obtain the calculation result, the method further includes:
    判断所述计算结果是否大于所述目标技能的最大作用距离; Determine whether the calculation result is greater than the maximum range of the target skill;
    如果大于,将所述最大作用距离确定为所述目标技能的技能指示器的结束位置与所述受控虚拟对象的目标距离。If greater, the maximum action distance is determined as the target distance between the end position of the skill indicator of the target skill and the controlled virtual object.
  6. 根据权利要求1所述的方法,其中,响应于以所述受控虚拟对象为起点的滑动操作,监听所述滑动操作的触点位置之前,所述方法还包括:The method according to claim 1, wherein in response to a sliding operation starting from the controlled virtual object, before monitoring the contact position of the sliding operation, the method further includes:
    响应于技能释放的触发事件,确定所述受控虚拟对象进入技能释放模式。In response to the triggering event of skill release, it is determined that the controlled virtual object enters the skill release mode.
  7. 根据权利要求6所述的方法,其中,响应于技能释放的触发事件,确定所述受控虚拟对象进入技能释放模式的步骤,包括:The method according to claim 6, wherein the step of determining that the controlled virtual object enters the skill release mode in response to a triggering event of skill release includes:
    响应作用于所述受控虚拟对象的长按操作,确定所述受控虚拟对象进入技能释放模式;In response to the long press operation acting on the controlled virtual object, determining that the controlled virtual object enters the skill release mode;
    或者,or,
    通过所述图形用户界面显示预设的技能释放模式控件;Display the preset skill release mode control through the graphical user interface;
    响应作用于所述技能释放模式控件的点击操作,确定所述受控虚拟对象进入技能释放模式。In response to a click operation on the skill release mode control, it is determined that the controlled virtual object enters the skill release mode.
  8. 根据权利要求6所述的方法,其中,确定所述受控虚拟对象进入技能释放模式的步骤之后,所述方法还包括:The method according to claim 6, wherein after determining that the controlled virtual object enters the skill release mode, the method further includes:
    以第一显示格式显示所述受控虚拟对象。The controlled virtual object is displayed in a first display format.
  9. 根据权利要求1所述的方法,其中,响应于以所述受控虚拟对象为起点的滑动操作,监听所述滑动操作的触点位置的步骤之后,所述方法还包括:The method according to claim 1, wherein in response to a sliding operation starting from the controlled virtual object, after the step of monitoring the contact position of the sliding operation, the method further includes:
    显示所述触点位置与所述受控虚拟对象的连线。Display the connection between the contact position and the controlled virtual object.
  10. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, further comprising:
    响应于所述滑动操作的释放事件,判断所述触点位置与所述受控虚拟对象的相对距离是否小于预设距离;In response to the release event of the sliding operation, determine whether the relative distance between the contact position and the controlled virtual object is less than a preset distance;
    如果小于,取消控制所述受控虚拟对象释放所述目标技能。If it is less than, cancel control of the controlled virtual object and release the target skill.
  11. 一种技能释放的交互控制装置,通过终端设备提供一图形用户界面;所述图形用户界面显示有受控虚拟对象;所述受控虚拟对象通过所述终端设备控制;所述装置包括:An interactive control device for skill release, which provides a graphical user interface through a terminal device; the graphical user interface displays a controlled virtual object; the controlled virtual object is controlled through the terminal device; the device includes:
    触点位置监听模块,用于响应于以所述受控虚拟对象为起点的滑动操作,监听所述滑动操作的触点位置;A contact position monitoring module, configured to monitor the contact position of the sliding operation in response to a sliding operation starting from the controlled virtual object;
    显示位置确定模块,用于基于所述触点位置与所述受控虚拟对象的相对位置,确定目标技能的技能指示器的显示位置;其中,所述触点位置位于所述受控虚拟对象的第一方向,所述显示位置位于所述受控虚拟对象的第二方向,所述第二方向与所述第一方向相反;A display position determination module, configured to determine the display position of the skill indicator of the target skill based on the relative position of the contact position and the controlled virtual object; wherein the contact position is located on the controlled virtual object. In a first direction, the display position is located in a second direction of the controlled virtual object, and the second direction is opposite to the first direction;
    技能释放模块,用于响应于所述滑动操作的释放事件,控制所述受控虚拟对象向所述显示位置释放所述目标技能。A skill release module, configured to control the controlled virtual object to release the target skill to the display position in response to a release event of the sliding operation.
  12. 一种电子设备,包括处理器和存储器,所述存储器存储有能够被所述处理器执行的机器可执行指令,所述处理器执行所述机器可执行指令以实现权利要求1-10任一项所述的技能释放的交互控制方法。An electronic device, including a processor and a memory, the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement any one of claims 1-10 The interactive control method for skill release.
  13. 一种机器可读存储介质,所述机器可读存储介质存储有机器可执行指令,所述机 器可执行指令在被处理器调用和执行时,所述机器可执行指令促使所述处理器实现权利要求1-10任一项所述的技能释放的交互控制方法。 A machine-readable storage medium stores machine-executable instructions, and the machine-readable storage medium stores machine-executable instructions. When the machine executable instructions are called and executed by the processor, the machine executable instructions cause the processor to implement the interactive control method of skill release according to any one of claims 1-10.
PCT/CN2023/091364 2022-09-13 2023-04-27 Interaction control method and apparatus for skill cast, and electronic device WO2024055596A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211112235.0 2022-09-13
CN202211112235.0A CN115624754A (en) 2022-09-13 2022-09-13 Interaction control method and device for releasing skills and electronic equipment

Publications (1)

Publication Number Publication Date
WO2024055596A1 true WO2024055596A1 (en) 2024-03-21

Family

ID=84902455

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/091364 WO2024055596A1 (en) 2022-09-13 2023-04-27 Interaction control method and apparatus for skill cast, and electronic device

Country Status (2)

Country Link
CN (1) CN115624754A (en)
WO (1) WO2024055596A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115624754A (en) * 2022-09-13 2023-01-20 网易(杭州)网络有限公司 Interaction control method and device for releasing skills and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014238741A (en) * 2013-06-07 2014-12-18 株式会社コナミデジタルエンタテインメント Movement control device, movement control method and program
US20160199728A1 (en) * 2015-01-08 2016-07-14 LINE Plus Corporation Game methods for controlling game using virtual buttons and systems for performing the same
CN107193479A (en) * 2017-05-26 2017-09-22 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium
CN112843679A (en) * 2021-03-04 2021-05-28 腾讯科技(深圳)有限公司 Skill release method, device, equipment and medium for virtual object
CN112933592A (en) * 2021-01-26 2021-06-11 网易(杭州)网络有限公司 Information processing method and device in game, electronic equipment and storage medium
CN113304478A (en) * 2021-06-22 2021-08-27 腾讯科技(深圳)有限公司 Skill indicator control method and device, storage medium and electronic equipment
CN114272607A (en) * 2021-12-30 2022-04-05 网易(杭州)网络有限公司 Game-based command interaction method and device and electronic equipment
CN115624754A (en) * 2022-09-13 2023-01-20 网易(杭州)网络有限公司 Interaction control method and device for releasing skills and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014238741A (en) * 2013-06-07 2014-12-18 株式会社コナミデジタルエンタテインメント Movement control device, movement control method and program
US20160199728A1 (en) * 2015-01-08 2016-07-14 LINE Plus Corporation Game methods for controlling game using virtual buttons and systems for performing the same
CN107193479A (en) * 2017-05-26 2017-09-22 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium
CN112933592A (en) * 2021-01-26 2021-06-11 网易(杭州)网络有限公司 Information processing method and device in game, electronic equipment and storage medium
CN112843679A (en) * 2021-03-04 2021-05-28 腾讯科技(深圳)有限公司 Skill release method, device, equipment and medium for virtual object
CN113304478A (en) * 2021-06-22 2021-08-27 腾讯科技(深圳)有限公司 Skill indicator control method and device, storage medium and electronic equipment
CN114272607A (en) * 2021-12-30 2022-04-05 网易(杭州)网络有限公司 Game-based command interaction method and device and electronic equipment
CN115624754A (en) * 2022-09-13 2023-01-20 网易(杭州)网络有限公司 Interaction control method and device for releasing skills and electronic equipment

Also Published As

Publication number Publication date
CN115624754A (en) 2023-01-20

Similar Documents

Publication Publication Date Title
CN107648847B (en) Information processing method and device, storage medium and electronic equipment
US11975262B2 (en) Information processing method and apparatus, electronic device, and storage medium
US11290543B2 (en) Scene switching method based on mobile terminal
US9227144B2 (en) Communication game system
CN112933591B (en) Game virtual character control method and device, storage medium and electronic equipment
WO2024055596A1 (en) Interaction control method and apparatus for skill cast, and electronic device
US11839821B2 (en) Racing game operation control method and apparatus, storage medium, and device
CN110841291A (en) Method and device for interacting shortcut messages in game and electronic equipment
CN111870942B (en) Attack control method and device for virtual units and electronic equipment
CN112807692A (en) Information control method and device in game and terminal equipment
CN109091864B (en) Information processing method and device, mobile terminal and storage medium
WO2024093276A1 (en) Football game interaction control method and apparatus, and electronic device
WO2024074039A1 (en) Game operation control method and apparatus, and electronic device
WO2024031969A1 (en) Method and apparatus for controlling virtual prop, and medium and electronic device
CN116020114A (en) Game operation control method and device and electronic equipment
CN116966561A (en) Tactical command method and device in game and electronic equipment
CN116531754A (en) Method and device for controlling virtual characters in game and electronic terminal
CN115999153A (en) Virtual character control method and device, storage medium and terminal equipment
WO2024000980A1 (en) Game interaction method and apparatus, and electronic device
WO2023246172A1 (en) Display control method and apparatus for skill indicator, and electronic device
WO2023246310A1 (en) Object selecting method and apparatus, and electronic device
WO2024139028A1 (en) Interaction control method and apparatus for object movement, and electronic device
CN113769384A (en) In-game visual field control method, device, equipment and storage medium
CN116585707A (en) Game interaction method and device, electronic equipment and storage medium
CN117547815A (en) Interaction control method and device in game and electronic equipment

Legal Events

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

Ref document number: 23864336

Country of ref document: EP

Kind code of ref document: A1