Object control method and device, storage medium, computer program and electronic device

By displaying the position exchange prompt logo and realizing the position exchange of virtual objects in the shooting confrontation game, the problem of high complexity of virtual object control in the game is solved, and the game progress speed and interest are improved.

CN113893542BActive Publication Date: 2024-10-15TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111166767.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2024-10-15
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

In shooting confrontation games, long-term confrontation between the two sides causes players to repeatedly perform the same shooting operation, which increases the complexity of virtual object control, and existing technology cannot effectively solve this problem.

Method used

By displaying the virtual scene in the display interface, responding to the player's operation, displaying the position exchange prompt mark, and controlling the position exchange between the first virtual object and the selected second virtual object when the target control performs the second operation, game progress and Reduce operational complexity.

Benefits of technology

It effectively solves the problem of high complexity of virtual object control, improves the game's progress speed, reduces players' operational fatigue, and increases the fun of the game.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113893542B_ABST
    Figure CN113893542B_ABST
Patent Text Reader

Abstract

The present invention discloses an object control method and device, a storage medium, a computer program and an electronic device. The method comprises: displaying a virtual scene in a display interface, wherein the virtual scene comprises a first virtual object located at a first position; in response to a first operation performed on a target control displayed in the display interface, displaying a position exchange prompt mark in the display interface; in response to a second operation performed on the target control, controlling the first virtual object to exchange positions with a second virtual object selected by the position exchange prompt mark, wherein the second virtual object is located at a second position in the virtual scene. The present invention solves the technical problem of increased complexity of control operations performed by virtual objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to an object control method and device, a storage medium, a computer program, and an electronic device. Background Art

[0002] In recent years, battle game applications (Application, referred to as APP) have attracted more and more attention and use from users, many of which are shooting confrontation games with simulation characteristics.

[0003] In most shooting games, players often hope to win the battle by killing more enemy virtual objects or occupying a larger enemy area. In the process of executing the above battle, if the two sides only shoot at each other in their own camps and neither of them rushes into the other camp, the two sides will enter a long tug-of-war. This not only makes the player increase the unnecessary confrontation time, but also easily causes fatigue due to repeated execution of the same shooting operation.

[0004] That is to say, in the method provided by the relevant technology, after the two opposing sides enter a tug-of-war, they will maintain a stalemate for a period of time. During this process, the player is required to control the controlled virtual object to repeatedly perform the same shooting operation, which leads to the problem of increased complexity of the control operations performed on the virtual object.

[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0006] Embodiments of the present invention provide an object control method and apparatus, a storage medium, a computer program, and an electronic device to at least solve the technical problem of increased complexity of control operations performed by virtual objects.

[0007] According to one aspect of an embodiment of the present invention, there is provided an object control method, comprising: displaying a virtual scene in a display interface, wherein the virtual scene includes a first virtual object located at a first position; displaying a position exchange prompt identifier in the display interface in response to a first operation performed on a target control displayed in the display interface; and controlling the first virtual object to exchange positions with a second virtual object selected by the position exchange prompt identifier in response to a second operation performed on the target control, wherein the second virtual object is located at a second position in the virtual scene.

[0008] According to another aspect of an embodiment of the present invention, an object control device is also provided, including: a first display unit, used to display a virtual scene in a display interface, wherein the virtual scene includes a first virtual object located at a first position; a second display unit, used to display a position exchange prompt mark in the display interface in response to a first operation performed on a target control displayed in the display interface; and an exchange unit, used to control the first virtual object to exchange positions with a second virtual object selected by the position exchange prompt mark in response to a second operation performed on the target control, wherein the second virtual object is located at a second position in the virtual scene.

[0009] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the object control method when running.

[0010] According to another aspect of the embodiment of the present application, a computer program product is provided, the computer program product includes a computer program / instruction, the computer instruction is stored in a computer-readable storage medium. A processor of a computer device reads the computer program / instruction from the computer-readable storage medium, and the processor executes the computer program / instruction, so that the computer device executes the object control method as described above.

[0011] According to another aspect of an embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the object control method through the computer program.

[0012] In an embodiment of the present invention, a method for swapping the positions of a first virtual object at a first position and a second virtual object at a second position in a virtual scene is provided by displaying a virtual scene including a first virtual object at a first position in a display interface, displaying a position swap prompt mark in the display interface in response to a first operation performed on a target control displayed in the display interface, and controlling the first virtual object to swap positions with a second virtual object selected by the position swap prompt mark in response to a second operation performed on the target control, thereby solving the technical problem of increased complexity of control operations performed by virtual objects in certain virtual scenes. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0014] Figure 1is a schematic diagram of a hardware environment of an optional object control method according to an embodiment of the present invention;

[0015] Figure 2 is a flow chart of an optional object control method according to an embodiment of the present invention;

[0016] Figure 3 is a schematic diagram of an optional object control method according to an embodiment of the present invention;

[0017] Figure 4 is a schematic diagram of another optional object control method according to an embodiment of the present invention;

[0018] Figure 5 is a schematic diagram of another optional object control method according to an embodiment of the present invention;

[0019] Figure 6 is a schematic diagram of another optional object control method according to an embodiment of the present invention;

[0020] Figure 7 is a schematic diagram of another optional object control method according to an embodiment of the present invention;

[0021] Figure 8 is a schematic diagram of another optional object control method according to an embodiment of the present invention;

[0022] Fig. 9 is a schematic diagram of another optional object control method according to an embodiment of the present invention;

[0023] Fig.10 is a schematic diagram of another optional object control method according to an embodiment of the present invention;

[0024] Fig.11 is a schematic diagram of another optional object control method according to an embodiment of the present invention;

[0025] Fig.12 is a schematic diagram of another optional object control method according to an embodiment of the present invention;

[0026] Fig.13 is a schematic diagram of another optional object control method according to an embodiment of the present invention;

[0027] Fig.14 is a schematic diagram of another optional object control method according to an embodiment of the present invention;

[0028] Fig.15 is a flow chart of another optional object control method according to an embodiment of the present invention;

[0029] Fig.16is a schematic structural diagram of an optional object control device according to an embodiment of the present invention;

[0030] Fig.17 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] According to one aspect of an embodiment of the present invention, an object control method is provided. Optionally, as an optional implementation, the object control method may be, but is not limited to, applied to: Figure 1 The object control system in the hardware environment shown in FIG. 1 may include but is not limited to a terminal device 102, a network 104, a server 106, a database 108, and a terminal device 110. The terminal device 102 and the terminal device 110 respectively run a target client (such as Figure 1 As shown, the target client is a shooting game application client as an example). The terminal device 102 and the terminal device 110 respectively include a human-computer interaction screen, a processor and a memory. The human-computer interaction screen is used to display a virtual game scene (such as Figure 1The processor is used to generate an interaction instruction in response to the above-mentioned human-computer interaction operation, and send the interaction instruction to the server. The memory is used to store relevant attribute data, such as object attribute information of the controlled virtual object, and attribute information of the props held, etc. The attribute information here may include but is not limited to information for identifying its identity and current location. Among them, a client that controls the first virtual object is running in the terminal device 102; optionally, in the case where the second virtual object is a virtual object controlled by the terminal device, a client that controls the second virtual object is running in the terminal device 110. The second virtual object here is in a different camp from the first virtual object. In an embodiment of the present application, the second virtual object can, but is not limited to, use a target shooting prop to aim at the first virtual object to perform an aiming and killing operation.

[0034] In addition, the server 106 includes a processing engine, which is used to perform storage or reading operations on the database 108. Specifically, the processing engine reads the positions of each virtual object and the aiming and shooting information of the shooting props used by each virtual object from the database 108.

[0035] The specific process is as follows: as in step S102, a virtual scene is displayed in a display interface, wherein the virtual scene includes a first virtual object located at a first position. As in steps S104-S106, in the client running in the terminal device 110, in response to the first operation performed on the target control displayed in the display interface, a position exchange prompt mark is displayed in the display interface, and information carried by the second operation is received. Then step S108 is executed to send the information carried by the second operation to the server 106 and the terminal device 110 through the network 104. The server 106 will execute steps S110-S112 to obtain the position information of the second virtual object, and determine that the second virtual object is hit according to the information carried by the second operation. Then as in step S114, the server 106 returns the position information of the second virtual object to the terminal device 102 through the network 104. As in step S116, the terminal device 102 will control the first virtual object to exchange positions with the second virtual object selected by the position exchange prompt mark in response to the second operation performed on the above-mentioned target control.

[0036] As another optional implementation, when the terminal device 102 has a relatively strong computing and processing capability, the above steps S110-S112 may also be completed by the terminal device 102. This is an example, and this embodiment does not impose any limitation on this.

[0037] It should be noted that, in the present embodiment, a first scene screen of a first virtual object at a first position is first displayed in a display interface, and then, in response to a first operation performed on a target control of the display interface, a crosshair mark of a virtual shooting prop currently used by the first virtual object is adjusted to a position exchange prompt mark, and in response to a second operation performed on the target control, the second virtual object targeted by the position exchange prompt mark is locked, and the first virtual object is controlled to move from the first position to the second position where the second virtual object is located, thereby achieving the aiming and locking of the second virtual object through the operation performed by the target control, and then moving the first virtual object to the position where the second virtual object is located, solving the technical problem in the prior art that the game battle cannot be advanced because the two opposing parties are in a confrontation process and it is difficult to perform operations other than attack operations, which leads to complex object control difficulty, and achieving the technical effect of advancing the game battle progress and reducing the difficulty of object control by adding a new object control method.

[0038] Optionally, in this embodiment, the terminal device may be a terminal device configured with a target client, which may include but is not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, etc. The target client may be a client that supports providing shooting game tasks, such as a video client, an instant messaging client, a browser client, an educational client, etc. The network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network, and a wide area network, and the wireless network includes: Bluetooth, WIFI, and other networks that implement wireless communication. The server may be a single server, or a server cluster consisting of multiple servers, or a cloud server. The above is only an example, and no limitation is made to this in this embodiment.

[0039] Optionally, in this embodiment, the object control method can be applied to, but not limited to, a game terminal application (Application, APP for short) that completes a predetermined confrontation game task in a virtual scene, such as a shooting game application in a multiplayer online tactical competitive game (Multiplayer Online Battle Arena, MOBA for short), wherein the confrontation game task can be, but not limited to, a game task completed by the current player controlling the virtual object in the virtual scene through a human-computer interaction object and the virtual object controlled by other players through confrontation interaction, and the confrontation game task here can be, but not limited to, running in an application (such as a non-independently running game APP) in the form of a plug-in or applet, or running in an application (such as an independently running game APP) in a game engine. The types of the game applications can include, but are not limited to, at least one of the following: two-dimensional (Two Dimension, 2D) game applications, three-dimensional (Three Dimension, 3D) game applications, virtual reality (Virtual Reality, VR for short) game applications, augmented reality (Augmented Reality, AR for short) game applications, mixed reality (Mixed Reality, MR for short) game applications. The above is just an example, and this embodiment does not make any limitation to this.

[0040] As an optional implementation, Figure 2 As shown, the above object control method includes the following steps:

[0041] S202, displaying a virtual scene in a display interface, wherein the virtual scene includes a first virtual object located at a first position;

[0042] Optionally, in this embodiment, the above-mentioned virtual scene may be, but is not limited to, a virtual shooting scene provided for a shooting application, wherein the shooting application may include, but is not limited to: first-person shooting application (First-person shooting game, FPS), third-person shooting application (Third-person shooting game, TPS), etc., including but not limited to all games that use hot weapons for long-range attacks. Among them, the first-person shooting application belongs to a branch of the action application (Action Game, ACT). As the name implies, the first-person shooting application is a shooting application that shoots from the subjective perspective of the operator (player). The third-person shooting application is also a kind of shooting application, and the difference from the first-person shooting application is that the virtual control object controlled by the operator (player) will be directly displayed in the observation field of view. It can be understood that the above-mentioned display of the virtual scene in the display interface, wherein the virtual scene includes a first virtual object located at a first position, can be applied to a third-person shooting application.

[0043] Optionally, in this embodiment, the first virtual object may be, but is not limited to, a virtual object controlled by the current client. The virtual object may be, but is not limited to, a virtual character object, a virtual animal image, a virtual cartoon image, etc., which are used to represent the player completing a shooting task in a virtual scene.

[0044] S204, in response to a first operation performed on a target control displayed in the display interface, displaying a position exchange prompt mark in the display interface;

[0045] It can be understood that the first operation performed on the target control may be a touch operation, including but not limited to a long press and click operation, a single click operation, a double click operation, a sliding operation, and a drag operation.

[0046] S206, in response to a second operation performed on the target control, controlling the first virtual object to exchange positions with a second virtual object selected by the position exchange prompt mark, wherein the second virtual object is located at a second position in the virtual scene.

[0047] It is understandable that the second operation performed on the target control may be a touch operation different from the first operation, including but not limited to a cancel click operation, a single click operation, a double click operation, a sliding operation, and a drag operation. The control of the target control is achieved through the combination of the first operation and the second operation. In an optional combination, the first operation may be a long press operation of the target control received by the player, and the second operation may be a cancel long press operation of the target control received by the player, which is used to release the control method; in another optional combination, the first operation may be a single click operation of the target control received, and the second operation may be a double click operation of the target control received. The combination of the first operation and the second operation is only an example and is not limited here.

[0048] It is understandable that the second virtual object may be, but is not limited to, a virtual object that is set in the current client to be able to move actively or passively. In the case where the second virtual object is a virtual object controlled by a player, the virtual object may be, but is not limited to, a virtual character object, a virtual animal image, a virtual cartoon image, etc., which are used to represent the player to complete the shooting task in the virtual scene. At the same time, in the case where the second virtual object is a virtual object not controlled by a player set in the client, the virtual object may be, but is not limited to, a virtual vehicle such as a virtual car, a virtual motorcycle, a virtual speedboat, etc., and may also be an autonomously movable NPC (Non-Player-Character) character provided in the client to help game players complete game tasks, such as a virtual animal character, a virtual zombie character, etc.

[0049] Next, combine Figure 3 The above object control method is described below. Figure 3 The above display method is described by taking the game interface shown in FIG. (a) as an example. In the process of controlling the first virtual object to perform the shooting game task under the user account, the display interface displays Figure 3 . It can be observed that a second virtual car 307 is parked on the distant horizon 309. At the same time, a first virtual car 305 is parked to the left of the virtual enemy 306 at the second position, and a virtual house 308 is parked to the right. The first virtual object 301 is facing the virtual enemy 306. A movement control 304 for controlling the movement of the first virtual object is displayed in the lower left corner of the game interface, and a target control 302, a shooting control 303 and other control controls are displayed in the lower right corner of the interface.

[0050] by Figure 3 The above display method is further described by taking the game interface shown in FIG. (b) of FIG. 1 as an example. When the player controls the first virtual object 301 to perform a shooting game task, a first operation such as a long press operation is performed on the target control 302 displayed in the display interface, and the virtual enemy 306 located at the second position is aimed at, in response to the touch operation on the target control 302 in the display interface, the aiming mark is controlled to be displayed as shown in FIG. Figure 3 The form of the position exchange prompt mark 310 shown in Figure (b) .

[0051] by Figure 3 The above method is further described by taking the game interface shown in FIG. (c) as an example. When the player performs a second operation on the target control 302 in the display interface, such as ending the long press operation, Figure 3 As shown in Figure (c) in the figure, the first virtual object 301 and the second virtual enemy 306 are controlled to exchange positions. After the exchange, the first virtual object 301 is located at the second position, and the virtual enemy is located at the first position. The scene observed by the first virtual object at the second position is displayed in the first interface. As shown in the figure, the first virtual car 305 is located on the right side of the screen and the display position of the virtual house 308 is changed to the left side of the screen. Since the virtual enemy 306 is facing the horizon when it is in the second position, Figure 3 In Figure (c), the first virtual object 301 is located at the second position and is also unable to observe the second virtual car on the horizon behind it.

[0052] Through the embodiments provided in the present application, a method is provided for displaying a virtual scene in a display interface, displaying a position swap prompt identifier in the display interface in response to a first operation performed on a target control displayed in the display interface, and controlling a first virtual object to swap positions with a second virtual object selected by the position swap prompt identifier in response to a second operation performed on the target control, thereby providing an effect of controlling a first virtual object at a first position to swap positions with a second virtual object at a second position in a virtual game scene, thereby solving the technical problem of high complexity of object control in a virtual scene.

[0053] As an optional solution, in response to the second operation performed on the target control, controlling the first virtual object to exchange positions with the second virtual object selected by the position exchange prompt mark includes:

[0054] S1, in response to the second operation, transmitting an exchange item to the second virtual object selected by the position exchange prompt mark;

[0055] S2, when the swap prop hits the second virtual object, controlling the first virtual object to move from the first position to the second position, so as to swap the second virtual object at the second position to the first position.

[0056] It is understandable that the above-mentioned interchangeable props are in response to the second operation of the player on the target control, controlling the shooting props held by the first virtual character to adjust, and the interchangeable props are fired by the adjusted shooting props. Optionally, the above-mentioned interchangeable props can be in the form of a locking hook or a locking rope. This is not limited here.

[0057] It is understandable that the launch of the above-mentioned swap props may have a certain ballistic time, so if the second virtual object moves during the period from the launch of the swap props to the arrival of the swap props at the target position, it will result in a hit failure. As an optional way, if the second virtual object uses other virtual skills or virtual devices that can avoid the swap props during the above period, it will also result in a hit failure, which is not limited here.

[0058] by Figure 4 The above scheme is described as an example. Figure 4 As shown in FIG. 5( a ), the player controls the first virtual object to aim at the virtual enemy 306, and a position exchange prompt mark 310 is displayed on the virtual object 306. Figure 4As shown in FIG. 5( b), in response to the second operation of the player on the target control (when the first operation is a “long press” operation, the second operation may be an “end long press” operation), the first virtual object 301 is controlled to launch the swap prop 401 toward the virtual enemy 306. When the swap prop 401 hits the virtual enemy 306, the first virtual object is controlled to move to the virtual enemy 306. Figure 4 and controlling the virtual enemy 306 to move to the first virtual object such as Figure 4 The first position.

[0059] Through the above embodiments provided by the present application, in response to the second operation, an exchange prop is launched to the second virtual object selected by the position exchange identifier, and then the first virtual object and the second virtual object are controlled to exchange positions, thereby improving the fun of the game.

[0060] As an optional solution, after transmitting the swap props to the second virtual object selected by the position swap prompt mark, the method further includes: in the case where the swap props do not hit the second virtual object, displaying a prompt message for prompting that the position swap has failed.

[0061] Optionally, the interchangeable props may be in the form of a locking hook or a locking rope, which is not limited here.

[0062] It is understandable that the launch of the above-mentioned interchangeable props has a certain ballistic time, that is, it takes a certain time to reach the target position after launch. Therefore, if the second virtual object moves during the period from sending the interchangeable props to the period from when the interchangeable props arrive at the target position, it will result in a hit failure. As an optional method, if the second virtual object uses other virtual skills or virtual devices that can avoid the interchangeable props during the above period, it will also result in a hit failure. The avoidance method adopted by the second virtual object is not limited here.

[0063] by Figure 5 The above scheme is explained as an example. Figure 5 As shown in FIG. 5( a ), the player controls the first virtual object to aim at the virtual enemy 306, and a position exchange prompt mark 310 is displayed on the virtual object 306. Figure 5 As shown in FIG. 1( b), in response to the second operation of the player on the target control (when the first operation is a "long press" operation, the second operation may be an "end long press" operation), the first virtual object 301 is controlled to launch the swap prop 401 to the virtual enemy 306. When the swap prop 401 reaches the second position, the virtual enemy 306 has moved to the third position. In the above case, it is determined that the hit fails, and a prompt message "Swap failed!" is displayed in the game display interface.

[0064] Through the above-mentioned embodiments provided by the present application, the interchangeable props are launched in response to the second operation, and certain hit judgment conditions are set, so that the release of the interchangeable props is difficult, and the player is required to predict the possible movement of the targeted virtual object during the use of the interchangeable props, thereby enhancing the fun of the game.

[0065] As an optional scheme, controlling the first virtual object to move from the first position to the second position so as to interchange the second virtual object at the second position with the first position includes: controlling the first virtual object to move to the second position along a first flight trajectory, wherein the second virtual object will move to the first position along a second flight trajectory matching the first flight trajectory.

[0066] It can be understood that in the process of controlling the first virtual object to move from the first position to the second position where the second virtual object is located, the second virtual object will also move to the first position where the first virtual object is located. The movement methods adopted by both are flying, and the flight trajectories of the two correspond to each other.

[0067] Optionally, controlling the first virtual object to move to the second position and controlling the second virtual object to move to the first position may be done simultaneously or in sequence. For example, in the case of simultaneous exchange, the first virtual object and the second virtual object are controlled to fly and move to each other's position at the same time; in the case of sequential exchange, the first virtual object may be controlled to move to the position of the second virtual object first, and then the second virtual object may be controlled to move to the position of the first virtual object, and there is no limitation here.

[0068] by Figure 6 , Figure 7 The above scheme is explained by taking the schematic diagram shown as an example. Figure 6 As shown in FIG. 3 (a), when the player controls the first virtual object to shoot the swap prop 301 and hit the virtual enemy 306, Figure 6 As shown in (b) of FIG. 3 , the first virtual object 301 is controlled to move to the position of the virtual object 306 in a fast flying manner. During the flying process, the game interface will display a display effect corresponding to the flying operation, such as blurring the image around the first virtual object 301. Figure 6 Figure (b) is only an example of flight display, and does not limit the flight display effect here.

[0069] like Figure 7As shown in Figure (a), as an optional method, the first virtual object and the second virtual object fly on the same flight trajectory, that is, the first virtual object 701 is controlled to move to the second position according to the flight trajectory shown by the dotted line with an arrow, and the second virtual object 702 is controlled to move to the first position according to the flight trajectory shown by the dotted line with an arrow, wherein the first flight trajectory and the second flight trajectory are on the same straight line. It is understandable that in order to realize the flight of two objects on the same straight line, it is necessary to control the collision boxes of the two virtual objects flying towards each other during the flight process so that they do not act on each other, that is, to avoid the situation in which the first virtual object collides with the second virtual object and stops flying during the flight process by presetting.

[0070] like Figure 7 As shown in FIG. (b), as another optional manner, the first virtual object 701 moves to the second position with arc 703 as the flight trajectory, and the second virtual object 702 moves to the first position with arc 704 as the flight trajectory. It can be understood that arc 703 and arc 704 are two corresponding flight trajectories located in the same horizontal plane and do not overlap each other. In this way, by setting different flight trajectories, the first virtual object and the second virtual object can achieve the effect of not colliding during the flight process.

[0071] Through the embodiments provided in the present application, the first virtual object and the second virtual object are set to move with corresponding flight trajectories respectively, and corresponding trajectory parameters are set to ensure that the first virtual object and the second virtual object do not collide during the movement, thereby improving the rationality of the above-mentioned object control method.

[0072] As an optional solution, in the process of controlling the first virtual object to move to the second position according to the first flight trajectory, the method further includes:

[0073] S1, performing ray detection based on the current moving position of the first virtual object to obtain a current detection result;

[0074] S2: When the current detection result indicates that an obstacle appears on the first flight trajectory, control the first virtual object to stop flying at a third position where the obstacle is located.

[0075] It is understandable that the ray detection performed during the movement of the first virtual object is used to detect in real time whether it collides with an obstacle during flight. As an optional ray detection method, it can be controlled to emit a short-distance ray from the model center point of the first virtual object in real time in the direction pointed by the trajectory. When it is detected that the ray collides with other virtual obstacles, it is determined that the first virtual object collides, and then the first virtual object is controlled to stop flying at the third position where the obstacle is located.

[0076] Optionally, the above-mentioned obstacles are objects that appear on the flight trajectory of the first virtual object during its flight. In other words, the obstacles that may appear on the flight trajectory of the first virtual object may be movable virtual objects or immovable virtual objects. For movable virtual objects, obstacles may be virtual objects participating in combat controlled by other players, or virtual vehicles controlled by other virtual objects; immovable virtual objects as obstacles may be virtual houses, virtual trees, virtual rocks, etc. It is understandable that when the first virtual object collides with the above-mentioned obstacles during its flight, it will stop directly at the location of the above-mentioned obstacles.

[0077] It is understandable that, for the flight process of the second virtual object, real-time ray detection will also be performed during the flight process to detect whether it collides with an obstacle. At the same time, the second virtual object is controlled to stop flying at the third position where the obstacle is located due to colliding with an obstacle during the flight process.

[0078] Through the above embodiments provided by the present application, the first virtual object is controlled to stop flying due to the presence of obstacles during the flight process. In other words, a control method for interrupting the transposition flight movement of the first virtual object is provided, which increases the richness and balance of the game settings.

[0079] As an optional solution, before controlling the first virtual object to stop flying at the third position where the obstacle is located, the method further includes:

[0080] S1, obtaining the flight information of the first virtual object;

[0081] S2: When the flight information indicates that the first virtual object is allowed to pass through the obstacle, control the first virtual object to continue flying through the obstacle until it reaches the second position.

[0082] It is understandable that the above-mentioned flight information includes but is not limited to the flight trajectory information of the first virtual object, wherein the flight trajectory information includes flight speed information, real-time flight altitude information, etc. The above-mentioned flight information may also include model length information, altitude information and attitude information of the model during flight of the above-mentioned first virtual object. The above-mentioned flight information can be used to determine whether a collision with a collision object occurs in combination with the above-mentioned ray detection. For example, when the flight information indicates that the flight altitude of the first virtual object is 2 meters (i.e., the lowest point of the model of the first virtual object is also 2 meters above the virtual ground), it indicates that the first virtual object can fly over obstacles with a height of less than 2 meters.

[0083] Next, combine Figure 8 The above embodiment is further described.

[0084] like Figure 8 In the scene shown in (a), when the first virtual object 801 located at the first position and the second virtual object 802 located at the second position exchange positions by flying, a virtual car, namely the first obstacle 803, happens to pass by on their flight trajectories. According to the flight information of the first virtual object and the second virtual object, the flight height of the two is indicated to be 1 meter, while the height of the first obstacle 803 located on their flight trajectories is 1.5 meters. Therefore, according to the ray detection results of the first virtual object and the second virtual object, the two cannot pass through the first obstacle 803. In this case, the first virtual object 801 and the second virtual object 803 are controlled to stay at the third position where the first obstacle 803 is located;

[0085] like Figure 8 In the scene shown in (b), during the process of the first virtual object 801 located at the first position and the second virtual object 802 located at the second position exchanging positions through flight, their flight trajectories pass through a pile of virtual stones, namely, the second obstacle 804. According to the flight information indication of the first virtual object and the second virtual object, their flight altitudes are 1 meter, and the height of the second obstacle 804 located on their flight trajectories is 0.5 meters. Therefore, according to the ray detection results of the first virtual object and the second virtual object, they can pass through the second obstacle 804. In this case, the first virtual object 801 and the second virtual object 803 are controlled to complete the position exchange, that is, the first virtual object is controlled to move to the second position, and the second virtual object is controlled to move to the first position;

[0086] like Figure 8In the scene shown in (c), during the process of the first virtual object 801 located at the first position and the second virtual object 802 located at the second position exchanging positions by flying, the flight trajectories of the two pass through a wall, namely the third obstacle 805. According to the flight information of the first virtual object and the second virtual object, it is indicated that the flight height of the two is 1 meter, the model height is 1.8 meters, the model width is 0.5 meters, and the flight posture is a standing flight posture. At the same time, the wall hole in the third obstacle 805 located on the flight trajectory of the two is 3 meters high and 1 meter wide. Therefore, according to the ray detection results of the first virtual object and the second virtual object, the two can pass through the third obstacle 805. In this case, the first virtual object 801 and the second virtual object 803 are controlled to complete the position exchange, that is, the first virtual object is controlled to move to the second position, and the second virtual object is controlled to move to the first position.

[0087] Through the embodiments provided in the present application, by combining the flight information and collision detection of the first virtual object, the flight result can be determined according to the types of different obstacles, thereby improving the rationality and richness of the game.

[0088] As an optional solution, when the position exchange prompt mark is displayed in the above display interface, it also includes:

[0089] S1, determining the candidate virtual object selected by the position exchange prompt mark;

[0090] S2, when the object attribute information of the candidate virtual object indicates that it is a non-static object and the distance between the candidate virtual object and the first virtual object meets the interchange distance condition, keep displaying the position exchange prompt mark and determine the selected candidate virtual object as the second virtual object.

[0091] It is understandable that in the embodiment of the present application, after the first operation is performed on the target control, the position exchange prompt mark is displayed only when the non-stationary object that meets the exchange distance condition is aimed at. The non-stationary object is an object that can be moved actively or passively set in the game, such as a virtual operation object controlled by the player, a movable NPC object set in the game to help the player complete the game task, a virtual vehicle that can be controlled by the virtual operation object, etc. Among them, the above-mentioned exchange distance can be set according to actual needs, and no limitation is made here.

[0092] Through the embodiments provided by the present application, when the virtual object being aimed at is a movable object that is set to meet the interchange distance condition, the convenience of object control is improved by maintaining the display position exchange prompt mark to indicate to the player that the object can be exchanged.

[0093] As an optional solution, after determining the candidate virtual object selected by the position exchange prompt mark, the method further includes:

[0094] S1, when the object attribute information of the candidate virtual object indicates that the candidate virtual object is a static object, adjusting the position exchange prompt mark to a position exchange prohibition prompt mark;

[0095] S2: When the object attribute information of the candidate virtual object indicates that the candidate virtual object is the non-static object, but the candidate virtual object does not satisfy the exchange distance condition, adjusting the position exchange prompt mark to a position exchange prohibition prompt mark.

[0096] It is understandable that in an embodiment of the present application, after the first operation is performed on the target control, when the aimed object is a stationary object, or when the aimed object is a non-stationary object that does not meet the preset aiming distance condition, a position exchange prohibition prompt mark is displayed.

[0097] The following combination Fig. 9 , Fig.10 For details, please refer to the following sections. Fig. 9 As shown, when the aimed object is a virtual enemy 306 or a first virtual car 305 that meets the preset aiming distance condition, the position exchange prompt mark 310 is kept displayed; Fig.10 As shown, when the aimed object is a virtual house 308 at a close distance, since the virtual house 308 is a stationary object, the control displays a prohibition position exchange prompt mark 1001; when the aimed object is a movable object at a long distance, that is, the second virtual car 307, since the second virtual car 307 is far on the horizon and does not meet the position exchange distance condition, the control displays a prohibition position exchange prompt mark 1001.

[0098] Through the embodiments provided in the present application, different prompt icons are displayed for different aiming objects, so that players can quickly determine whether the current aiming object is an object that can be exchanged, thereby improving the convenience of object control.

[0099] As an optional solution, when controlling the first virtual object to exchange positions with the second virtual object selected by the position exchange prompt mark, it also includes: in response to a third operation triggered by an attack button in the display interface, controlling the first virtual object to perform an attack action during the movement.

[0100] Combination Figure 6 The above scheme is illustrated in Figure (b) of FIG. 1. When controlling the positions of the first virtual object and the second virtual object to be exchanged, as shown in FIG. Figure 6As shown in FIG. (b), since the first virtual object is moving quickly toward the virtual enemy 306, the display interface also displays blurred lines caused by the rapid movement. At the same time, the player's touch operation on the shooting control 303 during the flight of the first virtual object can be received, and the first virtual object 301 can be controlled to perform an attack action during the flight.

[0101] Through the embodiments provided in the present application, a method for performing attack operations while in a position swap process is provided, thereby increasing the richness of object control and improving the quality of the game.

[0102] As an optional solution, after controlling the first virtual object to exchange positions with the second virtual object selected by the position exchange prompt mark, the method further includes:

[0103] S1, adjusting the display state of the target control to a cooling state;

[0104] S2, when the time duration of the target control in the cooling state reaches the target time threshold, the target control is restored to the exchange-allowed state, wherein after the target control is operated in the exchange-allowed state, the position exchange prompt mark is allowed to be displayed.

[0105] It is understandable that according to the above scheme, each time after the first virtual object is controlled to move to the second position where the second virtual object is located, the target control is displayed in a cooling state. A cooling time threshold of a certain length is set. When the cooling state reaches the cooling time threshold, the target control is adjusted to restore to a state that allows operation, and a position exchange prompt mark is set to be displayed when the target control is operated. That is to say, in the above scheme, each time the position is exchanged in response to the operation of the target control, the display control is in a cooling state, and it takes a period of time before the player can operate the target control again.

[0106] by Fig.11 The above scheme is explained by taking the game interface shown in the figure as an example. Fig.11 In the game interface shown in Figure (a), after the first virtual object 301 has completed a position swap operation, the target control in the lower right corner is adjusted to the cooling target control 1102, and the remaining cooling time "40s" is displayed in the cooling target control, prompting the player that it is forbidden to trigger the target control at this time, and the target control can only be triggered and moved after 40s. Fig.11In the game interface shown in Figure (b), after the 40s cooling time ends, the display state of the target control 301 is restored, and in response to the player's touch operation on the target control 301, a position exchange prompt mark 310 is displayed, indicating that the player is allowed to control the first virtual object 301 to perform a position exchange operation.

[0107] Through the embodiments provided in the present application, a cooling control and display method for a target control is provided, thereby prompting the player of the cooling status of the target control and the skill corresponding to the control, thereby improving the convenience of object control.

[0108] As an optional solution, after controlling the first virtual object to exchange positions with the second virtual object selected by the position exchange prompt mark, the method further includes:

[0109] S1, determining the number of movable times matching the target control, wherein the number of movable times is determined according to the energy parameter and consumption parameter of the first virtual object in the current game task, the energy parameter is determined according to the running time of the first virtual object in the current game task, and the consumption parameter is the number of times the first virtual object has been moved;

[0110] S2, when the consumption parameter does not reach the prohibited movement threshold, maintaining the display state of the target control in the exchange-allowed state, wherein after the target control is operated in the exchange-allowed state, the position exchange prompt mark is allowed to be displayed;

[0111] S3, when the above-mentioned consumption times reaches the prohibited movement threshold, adjusting the display state of the above-mentioned target control to a cooling state.

[0112] It is understandable that, according to the control method in the above scheme, the above energy parameter can be determined according to the running time of the first virtual object controlled by the player in the game. For example, it can be set that the energy parameter increases with the growth of the survival time. Specifically, it can be set that the first virtual object accumulates 1 energy parameter for every 5 minutes of survival in the game. The above consumption parameter is determined by the number of times the first virtual object has moved. For example, it can be set that the consumption parameter is increased by 1 point after each exchange of the first virtual object. The above number of movable times is the value obtained by subtracting the consumption parameter from the energy parameter of the first virtual object. For example, when player A controls the first virtual object to fight in the game, the energy parameter increases by 1 point for every 5 minutes of survival. At the 12th minute, the first virtual object controlled by player A has not been exchanged. At this time, the energy parameter of the first virtual object is 2, the consumption parameter is 0, and the number of movable times is 2. At the 13th minute, player A controls the first virtual object to perform an exchange operation. At this time, the energy parameter of the first virtual object is 2, the consumption parameter is 1, and the number of movable times is 1.

[0113] It can be understood that, when the number of movable times of the first virtual object is greater than 0, the first virtual object is allowed to perform a position swap operation.

[0114] It is understandable that the above consumption parameter is used to limit the number of times the first virtual object performs an interchange operation. The number of interchange operations that the first virtual object has completed can be determined based on the consumption parameter. When the number of interchange operations that the first virtual object has completed reaches the prohibited movement threshold, the control target control is displayed in a cooling state, which prompts the player that the target control cannot be triggered again for an interchange operation.

[0115] The following combination Fig.12 The above scheme is explained. Fig.12 In another control method shown in FIG. (a), after the first virtual object has completed a swap operation, the energy index target control 1201 is controlled to display, in which the current cumulative energy parameter is displayed as "2", indicating that the player can currently perform a maximum of 2 swap operations. It can be understood that as the player's survival time increases, when a preset threshold is reached (for example, 5 minutes), the cumulative energy parameter will continue to increase to "3". Fig.12 In the game expiration shown in FIG. (b), when the number of swaps performed by the player controlling the first virtual operation object has reached the prohibited movement threshold, the cumulative target control is controlled to be in a cooling state, and is displayed as a cooling state target control 1202, indicating that the player cannot continue to perform touch operations on the target control, that is, the position swap operation cannot be performed again. At the same time, the control prohibits the display of the position swap prompt mark.

[0116] Through the above embodiments of the present application, a control method is provided to determine whether a virtual object can be exchanged based on its running time and the number of times it has been exchanged, which can be manually set to meet the needs of different scenarios. By controlling and limiting the number of movement controls, players cannot use skills without limit, and will consider the strategy of exchanging positions more carefully, thereby improving the fun and balance of the game.

[0117] As an optional solution, after displaying the virtual scene in the display interface, it also includes: when the first virtual object is hit by the swap prop launched by the third virtual object located at the fourth position, controlling the first virtual object to swap positions with the third virtual object.

[0118] Optionally, when the first virtual object is hit by other virtual objects, the first virtual object may be controlled to be unable to move and attack, so as to implement a position exchange operation.

[0119] by Fig.13The game interface shown in FIG. 1 illustrates the above scheme. Fig.13 As shown, there is a virtual enemy 1301 at the fourth position, which launches a swap prop 1302 to the first virtual object 301 controlled by the player, and hits the first virtual object 301. When the first virtual object is hit, the control controls of the first virtual object will be locked, and a lock movement control 1304, a lock target control 1305, and a lock shooting control 1303 will be displayed, indicating that the first virtual object cannot move and attack when hit, and the first virtual object 301 and the virtual enemy 1301 will be controlled to perform a position swap operation.

[0120] Through the above-mentioned embodiments of the present application, when a virtual object is hit, relevant prompt information can be displayed in its display interface to indicate to the player that the virtual object has been hit and cannot move or attack, thereby avoiding the player from continuing to perform useless operations when being hit, and improving the efficiency of object control.

[0121] As an optional solution, in the process of controlling the first virtual object and the third virtual object to exchange positions, the process further includes:

[0122] S1, displaying moving countdown prompt information in the display interface, wherein the moving countdown prompt information is used to prompt the remaining waiting time before the first virtual object is moved to the fourth position;

[0123] S2: When the moving countdown prompt information indicates that the target time has been reached, control the first virtual object to move to the fourth position.

[0124] The following combination Fig.14 For explanation. Fig.14 As shown, during the period from when the first virtual object is locked to when it is moved to the fourth position, in the display interface of the first virtual object, not only are the display movement operations, target controls, and shooting controls disabled, but a prompt "Countdown! 3s!" is also displayed indicating the remaining waiting time before being moved to the fourth position where the virtual enemy 1301 is located.

[0125] Through the above-mentioned embodiments of the present application, when a virtual object is locked, relevant prompt information can be displayed in its display interface to indicate to the player that the virtual object has been locked and the remaining waiting time before movement. During this period, the player cannot control the virtual object to move and attack, thereby avoiding the player from performing useless operations when being locked, thereby improving the efficiency of object control.

[0126] The following specific combination Fig.15 The process shown here is used to illustrate the complete process of the object control method provided by this application:

[0127] After starting a shooting game mission with any user account controlling the first virtual object:

[0128] As in step S1502, the interchange skill is activated;

[0129] It is understandable that the above-mentioned method of acquiring interchangeable skills can be a method of acquiring new skills during the game, or a method of selecting from a preset skill pool at the beginning of the game to acquire interchangeable skills. The above-mentioned activation of interchangeable skills refers to the state in which the displayed interchangeable skills can be used when the interchangeable skills are acquired.

[0130] Then, as in step S1504, it is detected whether the player has long pressed the skill key. If it is determined that the skill key is long pressed, step S1506 is executed. If the skill key is not pressed, the process returns to before step S1502;

[0131] by Figure 3 Taking the interface shown in Figure (a) as an example, when the player performs a long press operation on the target control 302 in the lower right corner, it is regarded as pressing the skill key.

[0132] As in step S1506, after determining that the skill key is pressed, an aiming mark is displayed;

[0133] by Figure 3 Taking Figure (b) in FIG. 1 as an example, after confirming the long press of the skill key, a position exchange prompt mark 310 is displayed to indicate that the player is allowed to control the first virtual object to perform an exchange operation.

[0134] Then, it is detected whether the target is a dynamic object, such as step S1508. If it is determined that the target is a dynamic object, step S1512 is executed, and if the target is not a dynamic object, step S1510 is executed, and the process returns to step S1506;

[0135] It is understandable that there is no specific order in which step S1508 and step S1510 must be executed.

[0136] by Fig. 9 For example, detect the object the player is aiming at when long pressing the target control 302. If the aimed object is a dynamic object, execute step S1512; if no dynamic object is aimed at, execute step S1510 and return to step S1506.

[0137] As shown in step S1510, when it is determined that the user is aiming at a non-dynamic object, a prohibition of interchange sign is displayed.

[0138] by Fig.10For example, when it is detected that the player is aiming at an immovable virtual house 308 when long pressing the target control 302, a position exchange prohibition prompt mark 1001 is displayed.

[0139] As shown in step S1512, when it is determined that the user is aiming at the dynamic object, an interchange permission mark is displayed.

[0140] by Fig. 9 For example, when it is detected that the player is aiming at a movable virtual enemy 306 and a movable first virtual car 305 when long pressing the target control 302, the position exchange prompt mark 310 continues to be displayed.

[0141] As in step S1514, detect whether the user releases the skill key. If it is detected that the user releases the skill key, execute step S1516. If it is detected that the user does not release the skill key, return to step S1512.

[0142] As in step S1516, when it is detected that the user releases the skill key, the locking rope is launched.

[0143] by Figure 5 As shown, when it is detected that the user releases the skill key, the interchangeable prop 501 is launched.

[0144] As in step S1518, check whether the target is hit. If the target is hit, execute step S1512 to exchange positions with the hit object; if the target is hit, execute step S1522 and the exchange fails.

[0145] The following combination Figure 5 For further explanation. Figure 5 As shown in FIG. 4( b), when it is detected that the user releases the skill key, the swap prop 401 is launched. In the case of a hit failure, a prompt "swap failed" is displayed. It can be understood that the swap operation failed in this case; Figure 4 As shown in Figure (b), in the case of a successful hit, Figure 6 The position exchange of the first virtual object and the second virtual object is completed in the manner shown.

[0146] Above Fig.12 The process shown is an example and is not limited in this embodiment.

[0147] Through the embodiments provided in the present application, a method is provided for displaying a virtual scene in a display interface, displaying a position swap prompt identifier in the display interface in response to a first operation performed on a target control displayed in the display interface, and controlling a first virtual object to swap positions with a second virtual object selected by the position swap prompt identifier in response to a second operation performed on the target control, thereby providing an effect of controlling a first virtual object at a first position to swap positions with a second virtual object at a second position in a virtual game scene, thereby solving the technical problem of high complexity of object control in a virtual scene.

[0148] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0149] According to another aspect of the embodiments of the present invention, an object control device for implementing the above object control method is also provided. Fig.16 As shown, the device comprises:

[0150] A first display unit 1602 is used to display a virtual scene in a display interface, wherein the virtual scene includes a first virtual object located at a first position;

[0151] The second display unit 1604 is used to display a position exchange prompt mark in the display interface in response to a first operation performed on a target control displayed in the display interface;

[0152] The exchange unit 1606 is used to control the first virtual object to exchange positions with the second virtual object selected by the position exchange prompt mark in response to the second operation performed on the above-mentioned target control, wherein the second virtual object is located at the second position in the above-mentioned virtual scene.

[0153] Optionally, in this embodiment, the embodiments to be implemented by the above-mentioned various unit modules can refer to the above-mentioned various method embodiments, which will not be repeated here.

[0154] According to another aspect of the embodiment of the present invention, an electronic device for implementing the above object control method is also provided. The electronic device may be Fig.17 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a terminal device as an example. Fig.17As shown, the electronic device includes a memory 1702 and a processor 1704. The memory 1702 stores a computer program, and the processor 1704 is configured to execute the steps in any of the above method embodiments through the computer program.

[0155] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0156] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0157] S1, displaying a virtual scene in a display interface, wherein the virtual scene includes a first virtual object located at a first position;

[0158] S2, in response to a first operation performed on a target control displayed in the display interface, displaying a position exchange prompt mark in the display interface;

[0159] S3, in response to a second operation performed on the target control, controlling the first virtual object to exchange positions with a second virtual object selected by the position exchange prompt identifier, wherein the second virtual object is located at a second position in the virtual scene.

[0160] Alternatively, a person skilled in the art may understand that: Fig.17 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, and other terminal devices. Fig.17 The electronic device and the electronic equipment described above are not limited in structure. Fig.17 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.17 Different configurations are shown.

[0161] Among them, the memory 1702 can be used to store software programs and modules, such as program instructions / modules corresponding to the object control method and device in the embodiments of the present invention. The processor 1704 executes various functional applications and data processing by running the software programs and modules stored in the memory 1702, that is, realizing the above-mentioned object control method. The memory 1702 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1702 may further include a memory remotely located relative to the processor 1704, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1702 can be specifically, but not limited to, used to store information such as various elements in the scene screen, object control information, etc. As an example, such as Fig.17 As shown, the memory 1702 may include but is not limited to the first display unit 1602, the second display unit 1604, and the exchange unit 1606 in the object control device. In addition, it may also include but is not limited to other module units in the object control device, which will not be repeated in this example.

[0162] Optionally, the transmission device 1706 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 12706 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1706 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0163] In addition, the electronic device further includes: a display 1708 for displaying a virtual scene in an interface; and a connection bus 1710 for connecting various module components in the electronic device.

[0164] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P, Peer To Peer) network, and any form of computing device, such as a server, terminal and other electronic devices, may become a node in the blockchain system by joining the peer-to-peer network.

[0165] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are executed.

[0166] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0167] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned object control method.

[0168] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0169] S1, displaying a virtual scene in a display interface, wherein the virtual scene includes a first virtual object located at a first position;

[0170] S2, in response to a first operation performed on a target control displayed in the display interface, displaying a position exchange prompt mark in the display interface;

[0171] S3, in response to a second operation performed on the target control, controlling the first virtual object to exchange positions with a second virtual object selected by the position exchange prompt identifier, wherein the second virtual object is located at a second position in the virtual scene.

[0172] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0173] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to perform all or part of the steps of the above methods of various embodiments of the present invention.

[0174] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0175] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0176] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0177] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0178] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. An object control method, characterized in that: include: Displaying a first virtual object located at a first position and holding a shooting prop in a virtual scene of the display interface; In response to a first operation performed on a target control displayed in the display interface, displaying a position exchange prompt mark in the display interface; In response to a second operation performed on the target control, the shooting prop is adjusted, and the shooting prop after adjustment is used to launch the swap prop toward the second virtual object selected by the position swap prompt mark; When the interchangeable prop moves to the target position indicated by the position exchange prompt mark according to the trajectory time and hits the second virtual object, the first virtual object is controlled to move from the first position to the second position to interchange the second virtual object at the second position to the first position.

2. The method according to claim 1, characterized in that After transmitting the swap prop to the second virtual object selected by the position swap prompt mark, the method further includes: When the exchange item fails to hit the second virtual object, a prompt message indicating that the position exchange has failed is displayed.

3. The method according to claim 1, characterized in that The controlling the first virtual object to move from the first position to the second position so as to interchange the second virtual object at the second position to the first position comprises: The first virtual object is controlled to move to the second position according to a first flight trajectory, wherein the second virtual object will move to the first position according to a second flight trajectory matching the first flight trajectory.

4. The method according to claim 3, characterized in that The process of controlling the first virtual object to move to the second position according to the first flight trajectory also includes: Perform ray detection based on the current moving position of the first virtual object to obtain a current detection result; When the current detection result indicates that an obstacle appears on the first flight trajectory, the first virtual object is controlled to stop flying at a third position where the obstacle is located.

5. The method according to claim 4, characterized in that Before controlling the first virtual object to stop flying at the third position where the obstacle is located, the method further includes: Acquire flight information of the first virtual object; In a case where the flight information indicates that the first virtual object is allowed to pass through the obstacle, the first virtual object is controlled to continue flying through the obstacle until it reaches the second position.

6. The method according to claim 1, characterized in that When the position exchange prompt mark is displayed in the display interface, it also includes: Determine the candidate virtual object selected by the position exchange prompt identifier; When the object attribute information of the candidate virtual object indicates that it is a non-static object and the distance between the candidate virtual object and the first virtual object meets the exchange distance condition, the position exchange prompt mark is kept displayed, and the selected candidate virtual object is determined as the second virtual object.

7. The method according to claim 6, characterized in that After determining the candidate virtual object selected by the position exchange prompt mark, the method further includes: When the object attribute information of the candidate virtual object indicates that the candidate virtual object is a static object, adjusting the position exchange prompt flag to a position exchange prohibition prompt flag; When the object attribute information of the candidate virtual object indicates that the candidate virtual object is the non-static object, but the candidate virtual object does not meet the exchange distance condition, the position exchange prompt mark is adjusted to a position exchange prohibition prompt mark.

8. The method according to any one of claims 1 to 7, characterized in that When controlling the first virtual object to exchange positions with the second virtual object selected by the position exchange prompt mark, the method further includes: In response to a third operation triggered by an attack button in the display interface, the first virtual object is controlled to perform an attack action during movement.

9. The method according to any one of claims 1 to 7, characterized in that After controlling the first virtual object to exchange positions with the second virtual object selected by the position exchange prompt mark, the method further includes: Adjusting the display state of the target control to a cooling state; When the time duration of the target control in the cooling state reaches a target time threshold, the target control is restored to a state allowing exchange, wherein after the target control is operated in the state allowing exchange, the position exchange prompt mark is allowed to be displayed.

10. The method according to any one of claims 1 to 7, characterized in that After controlling the first virtual object to exchange positions with the second virtual object selected by the position exchange prompt mark, the method further includes: Determine a movable number that matches the target control, wherein the movable number is determined according to an energy parameter and a consumption parameter of the first virtual object in a current game task, the energy parameter is determined according to a running time of the first virtual object in the current game task, and the consumption parameter is the number of times the first virtual object has been moved; In the case where the consumption parameter does not reach the prohibited movement threshold, the display state of the target control is maintained in the exchange-allowed state, wherein after the target control is operated in the exchange-allowed state, the position exchange prompt mark is allowed to be displayed; When the consumption parameter reaches the movement prohibiting threshold, the display state of the target control is adjusted to a cooling state.

11. The method according to any one of claims 1 to 7, characterized in that After the virtual scene is displayed in the display interface, it also includes: When the first virtual object is hit by the swap prop launched by the third virtual object located at the fourth position, the first virtual object is controlled to swap positions with the third virtual object.

12. The method according to claim 11, characterized in that The process of controlling the first virtual object and the third virtual object to exchange positions further includes: Displaying movement countdown prompt information in the display interface, wherein the movement countdown prompt information is used to prompt the remaining waiting time before the first virtual object is moved to the fourth position; When the movement countdown prompt information indicates that the target time has been reached, the first virtual object is controlled to move to the fourth position.

13. An operation control device, characterized in that: include: A first display unit, configured to display a first virtual object located at a first position and holding a shooting prop in a virtual scene of a display interface; A second display unit, configured to display a position exchange prompt mark in the display interface in response to a first operation performed on a target control displayed in the display interface; The exchange unit is used to adjust the shooting prop in response to a second operation performed on the target control, and launch the interchange prop to the second virtual object selected by the position exchange prompt identifier through the adjusted shooting prop; when the interchange prop moves to the target position indicated by the position exchange prompt identifier according to the ballistic time and hits the second virtual object, control the first virtual object to move from the first position to the second position, so as to exchange the second virtual object at the second position to the first position.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 12 when executed.

15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.

16. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 12 through the computer program.