Virtual object moving method and deviceTechnical Field
The present disclosure relates to the field of computer interaction technologies, and in particular, to a method and an apparatus for moving a virtual object.
Background
With the development of mobile terminal technology, a large number of electronic games based on a mobile terminal system platform appear, and the touch screen technology based on the mobile terminal can simulate a PC platform to control virtual objects in the electronic games.
Currently, on a mobile terminal, control over a virtual object is generally achieved through touch operation on a touch screen. For the moving operation of the virtual object, the touch screen is dragged in a point-pressing mode, a player firstly clicks and holds one virtual object, after the virtual object is changed in shape, the player is prompted that the control enters a draggable state, the player can drag the virtual object, fingers of the player need to be in contact with the touch screen in the dragging process, the effective contact posture and range are kept, and after the virtual object reaches a dragging target position, the user can finish the moving operation of the virtual object by releasing the hand.
The click-type dragging operation is an interactive operation with high operation cost, on one hand, fingers of a player are likely to be separated from a touch screen in the dragging operation process to cause operation behavior interruption, and on the other hand, the fingers of the player are likely to completely or partially shield a virtual object under the condition that the virtual object is small, so that the success rate and accuracy of the dragging operation of the player are low, and negative effects are caused on game experience.
Disclosure of Invention
In view of the above problems, a method for moving a virtual object and a device for moving a virtual object according to embodiments of the present disclosure are provided to at least partially solve the problems that an operation is interrupted when a finger is separated from a touch screen in a click-type drag operation and the success rate and accuracy of the drag operation are low due to the finger shielding the virtual object.
In order to solve the above problem, an embodiment of the present disclosure discloses a method for moving a virtual object, which is applied to a terminal including a touch screen, where the touch screen displays at least one virtual object, and the method includes:
responding to the selection operation of a control medium for the virtual object, and determining the virtual object as a target virtual object;
responding to a first non-contact operation of the control medium in a preset distance range in front of the touch screen, and controlling the target virtual object to move;
and stopping the movement control of the target virtual object in response to the release operation of the control medium for the target virtual object.
Optionally, the operation of selecting the virtual object by the manipulation medium includes:
the manipulation medium acts on a first touch operation of the virtual object.
Optionally, the manipulation medium acts on a second non-contact operation of the virtual object, wherein a projection point of the second non-contact operation on the touch screen stays within a preset range of the virtual object for a preset time.
Optionally, the operation of selecting the virtual object by the manipulation medium includes:
and the manipulation medium acts on a third non-contact operation of the virtual object, wherein a selection indicator controlled by the third non-contact operation and arranged on the touch screen stays within a preset range of the virtual object for a preset time.
Optionally, the operation of selecting the virtual object by the manipulation medium includes:
and the distance change of the control medium relative to the touch screen meets the fourth non-contact operation of a preset condition.
Optionally, the operation of releasing the target virtual object by the manipulation medium includes:
the control medium acts on the second touch operation of the touch screen.
Optionally, the operation of releasing the target virtual object by the manipulation medium includes:
and the distance change of the control medium relative to the touch screen meets the non-contact operation of a preset condition.
Optionally, the controlling the target virtual object to move in response to the first non-contact operation of the manipulation medium in front of the touch screen by a preset distance range includes:
in the first non-contact operation process, acquiring the distance between the control medium and the touch screen;
when the distance is smaller than a preset value, acquiring the projection position of the control medium on the touch screen;
controlling the virtual object to move to the projection position.
Optionally, after the step of controlling the virtual object to move to the projection position, the method further includes:
and when the distance is greater than the preset value, controlling the virtual object to move to the upper projection position.
Optionally, after the step of controlling the virtual object to move to the projection position, the method further includes:
and if the projection position does not exist in the first non-contact operation process, canceling the moving operation of the virtual object, and controlling the virtual object to move to the initial position.
Optionally, after the step of controlling the virtual object to move to the projection position, the method further includes:
and when the distance is greater than a preset threshold value, generating feedback information.
Optionally, the step of generating feedback information includes:
and controlling the virtual object to shake at the projection position.
Optionally, the stopping of the movement control of the target virtual object in response to the release operation of the manipulation medium for the target virtual object includes:
determining that the position of the releasing operation on the touch screen is a target position;
generating secondary confirmation prompt information;
if the confirmation operation aiming at the secondary confirmation prompt message is detected, stopping the movement control of the target virtual object and placing the virtual object at the target position;
and if the cancel operation aiming at the secondary confirmation prompt message is detected, canceling the moving operation of the virtual object and controlling the virtual object to move to the initial position.
In order to solve the above problem, an embodiment of the present disclosure discloses a mobile device for virtual objects, which is applied to a terminal including a touch screen, where the touch screen displays at least one virtual object, and the mobile device includes:
the target virtual object determining module is used for responding to the selection operation of a control medium for the virtual object and determining the virtual object as a target virtual object;
the moving module is used for responding to a first non-contact operation of the control medium in a preset distance range in front of the touch screen and controlling the target virtual object to move;
and the release module is used for responding to the release operation of the control medium for the target virtual object and stopping the movement control of the target virtual object.
Optionally, the operation of selecting the virtual object by the manipulation medium includes:
the manipulation medium acts on a first touch operation of the virtual object.
Optionally, the operation of selecting the virtual object by the manipulation medium includes:
and the control medium acts on a second non-contact operation of the virtual object, wherein a projection point of the second non-contact operation on the touch screen stays within a preset range of the virtual object for a preset time.
Optionally, the operation of selecting the virtual object by the manipulation medium includes:
and the manipulation medium acts on a third non-contact operation of the virtual object, wherein a selection indicator on the touch screen controlled by the third non-contact operation stays within a preset range of the virtual object for a preset time.
Optionally, the operation of selecting the virtual object by the manipulation medium includes:
and the distance change of the control medium relative to the touch screen meets the fourth non-contact operation of a preset condition.
Optionally, the operation of releasing the target virtual object by the manipulation medium includes:
the control medium acts on the second touch operation of the touch screen.
Optionally, the operation of releasing the target virtual object by the manipulation medium includes:
and the distance change of the control medium relative to the touch screen meets the non-contact operation of a preset condition.
Optionally, the moving module comprises:
the distance acquisition sub-module is used for acquiring the distance between the control medium and the touch screen in the first non-contact operation process;
the projection position acquisition sub-module is used for acquiring the projection position of the control medium on the touch screen when the distance is smaller than a preset value;
a first moving submodule for controlling the virtual object to move to the projection position.
Optionally, the moving module further comprises:
and the second moving submodule is used for controlling the virtual object to move to the upper projection position when the distance is greater than the preset value.
Optionally, the moving module further comprises:
and the first movement canceling sub-module is used for canceling the movement operation of the virtual object and controlling the virtual object to move to the initial position if the projection position does not exist in the first non-contact operation process.
Optionally, the moving module further comprises:
and the feedback information generation submodule is used for generating feedback information when the distance is greater than a preset threshold value.
Optionally, the feedback information generation sub-module includes:
and the virtual object shaking control unit is used for controlling the shaking of the virtual object at the projection position.
Optionally, the release module comprises:
the target position confirming submodule is used for confirming that the position of the releasing operation on the touch screen is a target position;
the prompt message generation submodule is used for generating secondary confirmation prompt messages;
a release submodule, configured to stop movement control of the target virtual object and place the virtual object at the target position if a confirmation operation for the secondary confirmation prompt information is detected;
and the second movement canceling operation submodule is used for canceling the movement operation of the virtual object and controlling the virtual object to move to the initial position.
In order to solve the above problem, an embodiment of the present disclosure discloses a computer-readable medium on which a computer program is stored, the computer program, when executed by a processor, implementing a method for moving a virtual object according to any one of the embodiments of the present disclosure.
In order to solve the above problem, an embodiment of the present disclosure discloses an electronic device including:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of moving a virtual object of any of the embodiments of the present disclosure via execution of the executable instructions.
The disclosed embodiments include the following advantages:
in the embodiment of the disclosure, in response to the selection operation of the manipulation medium for the virtual object, the virtual object is determined to be the target virtual object; responding to a first non-contact operation of a control medium in a preset distance range in front of the touch screen, and controlling the target virtual object to move; and stopping the movement control of the target virtual object in response to the release operation of the manipulation medium for the target virtual object. On the one hand, the problem that operation behavior is interrupted due to the fact that fingers of a player possibly break away from a touch screen in the process of using the dragging operation is avoided, on the other hand, the virtual object cannot be shielded by a control medium in the non-contact operation process, the success rate and the accuracy of moving the virtual object are improved, the interaction cost of moving the virtual object is reduced, the success rate and the accuracy of moving the virtual object are ensured, and the user has good game experience.
In the embodiment of the disclosure, the moving position of the virtual object is further determined by obtaining the distance between the control medium and the touch screen in the non-contact operation process, the virtual object is controlled to move along with the control medium, the control medium does not shield the virtual object, the moving state of the virtual object can be visually seen, the state and the position of the virtual object can be known, and the accuracy of the moving operation is improved.
In the embodiment of the disclosure, the distance between the control medium and the touch screen in the non-contact operation process is acquired, and the feedback information is generated when the distance is greater than the preset distance, so as to assist a user in performing the non-contact operation, ensure the effectiveness of the non-contact operation, and improve the success rate of the movement of the virtual object.
Drawings
FIG. 1 is a flow chart of steps of one embodiment of the present disclosure;
FIG. 2 is a schematic view of a contactless selection indicator in one embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a virtual object moving process in one embodiment of the present disclosure;
FIG. 4 is a schematic diagram of the distance between the manipulation medium and the touch screen in one embodiment of the disclosure;
FIG. 5 is a block diagram of a mobile device of a virtual object according to an embodiment of the present disclosure;
FIG. 6 is a block diagram of an electronic device in one embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a program product in one embodiment of the present disclosure.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, the present disclosure is described in further detail with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, a flowchart illustrating steps of a method for moving a virtual object according to an embodiment of the present disclosure is shown, where the method for moving a virtual object according to the embodiment of the present disclosure may be applied to a terminal including a touch screen, where the touch screen displays at least one virtual object, and specifically may include the following steps:
step 101, responding to the selection operation of the control medium for the virtual object, and determining that the virtual object is a target virtual object.
In the embodiment of the present disclosure, the terminal may be a device including a touch screen and a gesture sensor, such as a mobile phone, a tablet computer, an all-in-one personal computer, and a personal electronic assistant. The gesture sensor can be positioned below the touch screen and used for acquiring the distance from the control medium to the touch screen or other parameters, the gesture sensor can be various non-contact distance sensors, such as a capacitive distance sensor, and can also be an induction chip with an air separation operation, the hand action of a player can be tracked in real time through the air separation operation induction chip, the position, the relative distance and the movement of the finger of the player are detected, data and instructions are transmitted through the finger action, and the player can get rid of the touch screen to realize the non-contact operation. The control medium can be a finger of a user or other touch pens or the like which are matched with the touch screen.
In practical applications, an application may be installed on the terminal to display a user graphical interface on the touch screen, on which at least one virtual object is displayed. For example, a virtual object such as a character or an article is displayed on the game execution interface, and the user can perform a moving operation on the virtual object.
In an alternative embodiment, after the user may select a virtual object by clicking, long pressing, or the like, it is determined that the selected virtual object is the target virtual object, and the target virtual object is controlled to be in a movable state.
The operation of selecting the virtual object by the control medium can comprise the following embodiments:
in a first mode
The operation of controlling the selection of the medium for the virtual object comprises the following steps: the manipulation medium acts on a first touch operation of the virtual object.
For example, the touch operation may be a click, a long press, or the like of the virtual object by the user in contact with the touch screen.
Mode two
The operation of controlling the selection of the medium for the virtual object comprises the following steps: and the control medium acts on a second non-contact operation of the virtual object, wherein a projection point of the second non-contact operation on the touch screen stays within a preset range of the virtual object for a preset time.
In practical applications, when the manipulation medium is within a preset distance above the touch screen, a projection point may be generated on the touch screen through orthographic projection, and if the projection point is controlled to stay within a preset range of the virtual object for a preset time through the second non-contact operation, for example, the projection point of the second non-contact operation is controlled to stay on or near the virtual object to be selected for 2 seconds, the virtual object is selected as the target virtual object.
The target virtual object is selected through the second non-contact operation, so that the problem of mistaken selection caused by selection through touch operation when the target virtual object is too small can be avoided, and a user can conveniently and accurately select the target virtual object.
Mode III
The operation of controlling the selection of the medium for the virtual object comprises the following steps: and the manipulation medium acts on a third non-contact operation of the virtual object, wherein a selection indicator on the touch screen controlled by the third non-contact operation stays within a preset range of the virtual object for a preset time.
In practical applications, through the third non-contact operation, a selection indicator may be generated on the touch screen, and the selection indicator may or may not be projected directly under the manipulation medium.
As shown in fig. 2, a schematic diagram of a selection indicator E, which may move with the manipulation medium of the third contactless operation, determines that the virtual object is a target virtual object when the selection indicator stays within a preset range of the virtual object for a preset time.
The target virtual object is selected by the third non-contact operation control selection indicator, the visual range is expanded, the problem that the selection accuracy is reduced because the virtual object is shielded by the control medium is solved, and a user can conveniently and accurately select the target virtual object.
Mode IV
The operation of controlling the selection of the medium for the virtual object comprises the following steps: and the distance change of the control medium relative to the screen meets the fourth non-contact operation of a preset condition.
In the embodiment of the disclosure, the terminal may track the hand motion of the user in real time, detect the position, the relative distance, and the motion of the finger of the player, and transmit data and instructions through the finger motion, so that the player gets rid of the touch screen to implement a non-contact operation, and therefore, the fourth non-contact operation may be a speed, an acceleration, or a distance change of the manipulation medium above the virtual object and close to the touch screen, for example, the distance change of the manipulation medium perpendicular to the virtual object on the touch screen within a preset time, or the speed, the acceleration, or the like of the manipulation medium during the distance change process, and when the distance change, or the speed, the acceleration reaches a certain threshold, it is determined that the virtual object targeted by the fourth non-contact operation is the target virtual object.
And the target virtual object is selected in a fourth non-contact way by which the distance change of the operation medium relative to the screen meets the preset condition, so that the method for accurately selecting the target virtual object by the user is enriched.
And 102, responding to a first non-contact operation of the control medium in a preset distance range in front of the touch screen, and controlling the target virtual object to move.
In the embodiment of the present disclosure, the movement of the virtual object may be controlled according to a first non-contact operation of a user on the touch screen, where the first non-contact operation may be an operation in which a control medium such as a finger or a touch pen of the user does not contact the touch screen, for example, the finger slides over the touch screen within a certain distance from the touch screen, and the gesture sensor may detect the finger within the distance, acquire a projected position of the finger on the touch screen, and then control the virtual object to move to the projected position to realize that the virtual object moves along with the finger in the process of moving.
Step 103, in response to the release operation of the control medium for the target virtual object, stopping the movement control of the target virtual object.
Specifically, in the moving process of the virtual object, if the user stops moving the virtual object, the user's release operation may be received, and the moving of the virtual object is ended, for example, after the user's finger slides to a position where the virtual object needs to be placed in a non-contact manner, and then clicking the position determines that the clicking operation is the release operation, the clicked position is the target position, and the virtual object is controlled to be placed at the target position.
The release operation may be a second touch operation in which the manipulation medium acts on the touch screen or a non-contact operation in which a change in distance of the manipulation medium with respect to the touch screen satisfies a preset condition.
The second touch operation may be a click, a long press, or the like touch operation by the user on the touch screen. The non-contact operation in which the change in the distance of the manipulation medium with respect to the touch screen satisfies the preset condition may be: the distance change of the control medium perpendicular to the virtual object on the touch screen within the preset time can also be the speed, the acceleration and the like of the control medium in the distance change process, and when the distance change or the speed and the acceleration reach a certain threshold value, the non-contact operation is determined to be the release operation.
In an alternative embodiment, step 103 may comprise the following sub-steps:
a substep S11 of determining the position of the release operation on the touch screen as a target position;
a substep S12 of generating secondary confirmation prompt information;
a substep S13, if the confirmation operation for the secondary confirmation prompt information is detected, stopping the movement control of the target virtual object and placing the virtual object at the target position;
and a substep S14 of canceling the movement operation of the virtual object and controlling the virtual object to move to an initial position when a cancel operation for the secondary confirmation prompt message is detected.
In the preferred embodiment, after the target position is determined according to the release operation, secondary confirmation prompt information may be generated to prompt the user whether to place the virtual object in the target position, if so, the virtual object is placed in the target position, otherwise, the movement is cancelled, the virtual object is moved to the initial position, and the user may conveniently cancel the movement operation after previewing the moved virtual object.
The moving method of the virtual object of the embodiment of the disclosure responds to the selection operation of the control medium for the virtual object, and determines that the virtual object is the target virtual object; responding to a first non-contact operation of a control medium in a preset distance range in front of the touch screen, and controlling the target virtual object to move; the method and the device respond to the release operation of the control medium for the target virtual object, and stop the movement control of the target virtual object, so that on one hand, the problem that the operation behavior is interrupted due to the fact that fingers of a player possibly break away from a touch screen in the process of using and dragging operation is avoided, on the other hand, the control medium cannot shield the virtual object in the non-contact operation process, the success rate and the accuracy of moving the virtual object are improved, the interaction cost of moving the virtual object is reduced, the success rate and the accuracy of moving the virtual object are guaranteed, and the user has good game experience.
In an optional embodiment of the present disclosure, the controlling the target virtual object to move in response to the first non-contact operation of the manipulation medium in front of the touch screen by a preset distance range includes:
step 202, in the first non-contact operation process, obtaining a distance between the control medium and the touch screen;
step 203, when the distance is smaller than a preset value, acquiring a projection position of the control medium on the touch screen;
and 204, controlling the virtual object to move to the projection position.
In step 202, during the first contactless operation, a distance between the manipulation medium and the touch screen is acquired.
The method and the device can control the movement of the virtual object according to a first non-contact operation of a user on the touch screen, wherein the first non-contact operation can be an operation that a control medium such as a finger and a touch pen of the user is in non-contact with the touch screen. Taking a finger as an example of a control medium, the finger slides in a range of a certain distance from the touch screen above the touch screen, the distance sensor can detect the projection position of the finger on the touch screen within the distance, and then the virtual object is controlled to move to the projection position so as to realize that the virtual object moves along with the finger in the moving process.
As shown in fig. 4, the effective distance h1 when the terminal senses the manipulation medium is, within the effective distance h1, the manipulation medium is sensed and tracked by the terminal, and the terminal can obtain the distance from the manipulation medium to the touch screen.
In step 203, when the distance is smaller than a preset value, a projection position of the control medium on the touch screen is obtained.
The first contactless operation may refer to a contactless operation in which a distance to the touch screen is less than a preset value h2(h2 < h 1).
As shown in fig. 4, the effective sensing distance of the terminal is h1, the effective distance h1 may be determined according to the maximum sensing distance of the terminal, the distance from the finger to the touch screen changes in real time during the non-contact operation of the finger, and the distance sensor may sense the finger within the effective distance h1, but in order to ensure that the non-contact operation generates a sensing signal with a certain intensity and reliability, a preset value h2 may be set, for example, h2 is 90% of h1, so as to ensure that the terminal can accurately sense the operating medium, and improve the reliability and accuracy of the non-contact operation. If the distance h3 from the finger a to the touch screen is less than h2 and the non-contact operation of the point is effective, the projection position of the manipulation medium on the touch screen is acquired. Specifically, the finger a may be orthographically projected on the touch screen to obtain a projection position of the finger a on the touch screen.
In step 204, the virtual object is controlled to move to the projection position.
According to the method and the device, the projection is carried out when the distance from the control medium to the touch screen is within the effective distance, and then the projection position is an effective position, so that the virtual object can be controlled to move to the projection position, and the effect that the virtual object follows the non-contact operation is achieved.
As shown in fig. 3, after the virtual object is changed to be movable according to the first non-contact operation at the position a, the finger of the user slides from the position a to the position B in a non-contact manner, and the distance from the finger of the user to the touch screen at the position B is within the effective distance, so that the finger of the user generates a projection position at the position B, and the virtual object moves from the position a to the position B, thereby generating an effect of following the movement of the finger.
According to the method and the device, a user can also perform first non-contact operation through a plurality of fingers to form a plurality of projection positions on the touch screen, then a moving track is formed according to the sequence of the projection positions, and the virtual object can be controlled to move along the moving track according to the moving track.
In a preferred embodiment of the present disclosure, when the distance is greater than the preset value, the virtual object is controlled to move to an upper projection position.
Specifically, if the distance from the manipulation medium to the touch screen is greater than a preset value, it is indicated that the non-contact operation of the manipulation medium is not within the effective distance, and a projection position is not generated on the touch screen, and the virtual object is controlled to return to the previous projection position.
As shown in fig. 3 and 4, after the virtual object moves from the position a to the position B along with the finger, the finger slides from the position B to the position C in a non-contact manner, and if the distance from the finger to the touch screen at the position C is greater than a preset value (effective distance) h2, the touch screen at the position C does not generate a projected position of the finger, and the virtual object does not move to the position C but stays at the previous projected position, for example, the position B.
By controlling the virtual object to move to the previous projection position when the distance is greater than the preset value, the moving operation of the virtual object can be prevented from being interrupted when the distance is greater than the preset value, so that a user can continue to perform the moving operation of the virtual object at the previous projection position, the virtual object is prevented from being controlled to move again from the initial position, and the operation cost is reduced.
In another embodiment of the present disclosure, if there is no projection position in the first non-contact operation process, the moving operation of the virtual object is cancelled, and the virtual object is controlled to move to an initial position.
Specifically, after the virtual object moves from the initial position, if there is no projected position on the touch screen, it indicates that after one effective movement, the subsequent non-contact operation of the user is outside the effective distance, and no projected position is generated on the touch screen, and this operation may be regarded as canceling the movement operation of the virtual object, and the virtual object is moved to the initial position.
As shown in fig. 3, after the virtual object moves to the position B along with the finger of the user sliding in a non-contact manner, the projected position still cannot be generated on the touch screen within the preset time, and if the user stops the non-contact operation after the position B, it indicates that the user cancels the movement operation of the virtual object, and moves the virtual object from the position B to the initial position a.
According to the method and the device, in the process that the virtual object follows the first non-contact operation, if the projection position does not exist, the user can be considered to cancel the moving operation of the virtual object, the virtual object is controlled to move to the initial position, and the user can cancel the moving operation conveniently.
In a preferred embodiment of the present disclosure, when the distance is greater than a preset threshold, feedback information is generated, and optionally, the virtual object may be controlled to shake at the projection position.
The disclosure may set a threshold value, and generate a feedback message to prompt the user to keep within the effective distance during the first contactless operation when the distance of the manipulation medium is within the effective distance but greater than the threshold value during the contactless operation.
As shown in fig. 4, the effective distance of the terminal sensing manipulation medium is h1, the preset value of the first non-contact operation is h2(h2 < h1), and when the distance h3 from the finger to the touch screen is greater than 90% of h2, feedback information is generated to prompt the user, so that the distance between the non-contact operation of the user and the touch screen is always smaller than h2, and the reliability of the non-contact operation is improved.
Specifically, the feedback information may be to control the virtual object to shake at the current position, for example, to control the virtual object to slightly shift left and right to generate a shaking effect, so as to visually achieve the effect that the virtual object escapes from following the finger, so as to prompt the user that the non-contact operation is beyond the effective distance.
In the above, the virtual object shake is taken as an example of the feedback information, in practical applications, the feedback information may also be information such as color, equipment vibration, voice, and the like, and the form of the feedback information is not displayed in the embodiment of the present disclosure.
According to the embodiment of the invention, in the process of moving the virtual object through non-contact operation, feedback information is generated when the distance from the control medium to the touch screen is greater than a preset threshold value, so that a user is assisted in performing non-contact operation, the effectiveness of the non-contact operation is ensured, and the success rate of moving the virtual object and the user feeling are improved.
Referring to fig. 5, a block diagram of a mobile device of a virtual object according to an embodiment of the present disclosure is shown, the control device is applied to a terminal including a touch screen, the touch screen displays at least one virtual object, and the mobile device includes:
a target virtual object determining module 301, configured to determine, in response to a selection operation of a control medium for the virtual object, that the virtual object is a target virtual object;
a movingmodule 302, configured to control the target virtual object to move in response to a first non-contact operation of the control medium in a preset distance range in front of the touch screen;
arelease module 303, configured to stop movement control of the target virtual object in response to a release operation of the manipulation medium for the target virtual object.
Optionally, the operation of selecting the virtual object by the manipulation medium includes:
the manipulation medium acts on a first touch operation of the virtual object.
Optionally, the operation of selecting the virtual object by the manipulation medium includes:
and the control medium acts on a second non-contact operation of the virtual object, wherein a projection point of the second non-contact operation on the touch screen stays within a preset range of the virtual object for a preset time.
Optionally, the operation of selecting the virtual object by the manipulation medium includes:
and the manipulation medium acts on a third non-contact operation of the virtual object, wherein a selection indicator on the touch screen controlled by the third non-contact operation stays within a preset range of the virtual object for a preset time.
Optionally, the operation of selecting the virtual object by the manipulation medium includes:
and the distance change of the control medium relative to the touch screen meets the fourth non-contact operation of a preset condition.
Optionally, the operation of releasing the target virtual object by the manipulation medium includes:
the control medium acts on the second touch operation of the touch screen.
Optionally, the operation of releasing the target virtual object by the manipulation medium includes:
and the distance change of the control medium relative to the touch screen meets the non-contact operation of a preset condition.
Optionally, the movingmodule 302 includes:
the distance acquisition sub-module is used for acquiring the distance between the control medium and the touch screen in the first non-contact operation process;
the projection position acquisition sub-module is used for acquiring the projection position of the control medium on the touch screen when the distance is smaller than a preset value;
a first moving submodule for controlling the virtual object to move to the projection position.
Optionally, the movingmodule 302 further includes:
and the second moving submodule is used for controlling the virtual object to move to the upper projection position when the distance is greater than the preset value.
Optionally, the movingmodule 302 further includes:
and the first movement canceling sub-module is used for canceling the movement operation of the virtual object and controlling the virtual object to move to the initial position if the projection position does not exist in the first non-contact operation process.
Optionally, the movingmodule 302 further includes:
and the feedback information generation submodule is used for generating feedback information when the distance is greater than a preset threshold value.
Optionally, the feedback information generation sub-module includes:
and the virtual object shaking control unit is used for controlling the shaking of the virtual object at the projection position.
Optionally, the releasingmodule 303 includes:
the target position confirming submodule is used for confirming that the position of the releasing operation on the touch screen is a target position;
the prompt message generation submodule is used for generating secondary confirmation prompt messages;
a release submodule, configured to stop movement control of the target virtual object and place the virtual object at the target position if a confirmation operation for the secondary confirmation prompt information is detected;
and the second movement canceling operation submodule is used for canceling the movement operation of the virtual object and controlling the virtual object to move to the initial position.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
Anelectronic device 600 according to this embodiment of the disclosure is described below with reference to fig. 6. Theelectronic device 600 shown in fig. 6 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present disclosure.
As shown in fig. 6, theelectronic device 600 is embodied in the form of a general purpose computing device. The components of theelectronic device 600 may include, but are not limited to: the at least oneprocessing unit 610, the at least onememory unit 620, abus 630 connecting different system components (including thememory unit 620 and the processing unit 610), and adisplay unit 640.
Wherein the storage unit stores program code executable by theprocessing unit 610 to cause theprocessing unit 610 to perform the steps according to various exemplary embodiments of the present disclosure described above in this specification. Thestorage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or acache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
Thememory unit 620 may also include a program/utility 6204 having a set (at least one) ofprogram modules 6205,such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
Theelectronic device 600 may also communicate with one or more external devices 800 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with theelectronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable theelectronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O)interface 650. Also, theelectronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via thenetwork adapter 660. As shown, thenetwork adapter 660 communicates with the other modules of theelectronic device 600 over thebus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with theelectronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the disclosure described above in this specification when the program product is run on the terminal device.
Referring to fig. 7, aprogram product 700 for implementing the above method according to an embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.
It is to be understood that the described embodiments are merely exemplary of some, and not all, of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.