CN110448901A - The control method for movement and device of virtual objects in game - Google Patents

The control method for movement and device of virtual objects in game Download PDF

Info

Publication number
CN110448901A
CN110448901A CN201811384948.6A CN201811384948A CN110448901A CN 110448901 A CN110448901 A CN 110448901A CN 201811384948 A CN201811384948 A CN 201811384948A CN 110448901 A CN110448901 A CN 110448901A
Authority
CN
China
Prior art keywords
virtual objects
operating point
screen
movement
movement speed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811384948.6A
Other languages
Chinese (zh)
Inventor
杨鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201811384948.6A priority Critical patent/CN110448901A/en
Publication of CN110448901A publication Critical patent/CN110448901A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses the control method for movement and device of virtual objects in a kind of game.Wherein, this method comprises: detection the first manipulation medium acts on the contactless operation in front of mobile control area, wherein mobile control area is arranged in terminal screen, and contactless operation acts in the preset range of screen;According to the vertical range variation between the operating point position of contactless operation and screen, virtual objects are adjusted in scene of game perpendicular to the moving parameter in preset plane direction.The present invention solves the technical issues of complicated to the mobile control mode of virtual objects in the game of the equipment in game in the related technology, poor user experience.

Description

The control method for movement and device of virtual objects in game
Technical field
The present invention relates to field of play, in particular to the control method for movement and dress of virtual objects in a kind of game It sets.
Background technique
In hand trip, the rocking bar in general game can only realize the movement in mobile phone plane, i.e. X, Y-axis operation;Want same The movement of Shi Shixian mobile phone plane+vertical mobile phone plane, realizes the manipulation of true three-dimensional, i.e. X, Y, Z axis is operated, then generally required It is supported by other controls.The equipment that player can not directly control in interface simultaneously by finger manipulation carries out three-dimensional mobile With the transformation of speed.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides the control method for movement and device of virtual objects in a kind of game, at least to solve phase The technical issues of pass technology is complicated to the mobile control mode of virtual objects in the game of the equipment in game, poor user experience.
According to an aspect of an embodiment of the present invention, a kind of control method for movement of virtual objects in game, packet are provided Include: detection the first manipulation medium acts on the contactless operation in front of mobile control area, wherein mobile control area setting In terminal screen, contactless operation is acted in the preset range of screen;According to the operating point of contactless operation Vertical range variation between position and screen, adjusts virtual objects in scene of game perpendicular to the movement in preset plane direction Parameter.
According to another aspect of an embodiment of the present invention, a kind of mobile controller of virtual objects in game is additionally provided, Include: detection module, act on contactless operation in front of mobile control area for detecting the first manipulation medium, wherein Mobile control area is arranged in terminal screen, and contactless operation acts in the preset range of screen;Module is adjusted, For changing according to the vertical range between the operating point position of contactless operation and screen, virtual objects are adjusted in sports ground Perpendicular to the moving parameter in preset plane direction in scape.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described Step in embodiment of the method.
In embodiments of the present invention, using according to the vertical range between the operating point position of contactless operation and screen Variation adjusts the mode of movement speed of the virtual objects in interface, has reached and do not needed by other controls to game Equipment in interface carries out the purpose of the mobile control of virtual objects in game, facilitates in control interface to realize The technical effect of equipment, and then solve in the related technology to the mobile controlling party of virtual objects in the game of the equipment in game The technical issues of formula is complicated, poor user experience.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the hardware knot of the mobile terminal of the control method for movement of virtual objects in a kind of game of the embodiment of the present invention Structure block diagram;
Fig. 2 is the flow diagram of the control method for movement of virtual objects in the game provided according to embodiments of the present invention;
Fig. 3 is the entity schematic diagram that non-contact in the present embodiment is operation;
Fig. 4 is the schematic diagram of the vertical range between the finger and screen provided according to embodiments of the present invention;
Fig. 5 is according to vertical range provided in an embodiment of the present invention-speed table of comparisons;
Fig. 6 is the structural schematic diagram of the mobile controller of virtual objects in the game provided according to embodiments of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
According to embodiments of the present invention, a kind of control method for movement embodiment of virtual objects in game is provided, is needed Bright, step shown in the flowchart of the accompanying drawings can be held in a computer system such as a set of computer executable instructions Row, although also, logical order is shown in flow charts, and it in some cases, can be to be different from sequence herein Execute shown or described step.
Embodiment of the method provided by the embodiment of the present invention can be in mobile terminal, terminal or similar operation It is executed in device.For running on mobile terminals, Fig. 1 is the movement of virtual objects in a kind of game of the embodiment of the present invention The hardware block diagram of the mobile terminal of control method.As shown in Figure 1, mobile terminal 10 may include one or more (in Fig. 1 Only showing one) (processor 102 can include but is not limited to Micro-processor MCV or programmable logic device FPGA to processor 102 Deng processing unit) and memory 104 for storing data, optionally, above-mentioned mobile terminal can also include for communicating The transmission device 106 and input-output equipment 108 of function.It will appreciated by the skilled person that structure shown in FIG. 1 Only illustrate, the structure of above-mentioned mobile terminal is not caused to limit.For example, mobile terminal 10 may also include than institute in Fig. 1 Show more perhaps less component or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair The corresponding computer program of the control method for movement of virtual objects in game in bright embodiment, processor 102 are deposited by operation The computer program stored up in memory 104 realizes above-mentioned side thereby executing various function application and data processing Method.Memory 104 may include high speed random access memory, may also include nonvolatile memory, as one or more magnetism is deposited Storage device, flash memory or other non-volatile solid state memories.In some instances, memory 104 can further comprise opposite In the remotely located memory of processor 102, these remote memories can pass through network connection to mobile terminal 10.Above-mentioned net The example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation Device (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments to It can be communicated with internet.In an example, transmitting device 106 can for radio frequency (RadioFrequency, referred to as RF) module is used to wirelessly be communicated with internet.
Fig. 2 is the flow diagram of the control method for movement of virtual objects in the game provided according to embodiments of the present invention, As shown in Fig. 2, this method comprises the following steps:
Step S202, detection the first manipulation medium act on the contactless operation in front of mobile control area, wherein move Dynamic control area is arranged in terminal screen, and contactless operation acts in the preset range of screen;
Step S204 changes according to the vertical range between the operating point position of contactless operation and screen, and adjustment is empty Quasi- object is in scene of game perpendicular to the moving parameter in preset plane direction.
Through the above steps, become using according to the vertical range between the operating point position of contactless operation and screen Change, adjusts the mode of movement speed of the virtual objects in interface, reached and do not needed by other controls to game circle Equipment in face carries out the purpose of the mobile control of virtual objects in game, facilitates setting in control interface to realize Standby technical effect, and then solve in the related technology to the mobile control mode of virtual objects in the game of the equipment in game The technical issues of complexity, poor user experience.
Contactless operation refers to the operation for not contacting terminal screen in this application, passes through the sensor carried in terminal Operation of the detection operation medium in front of terminal screen, the operation monitored is contactless operation.Terminal is according to reception The contactless operation arrived generates corresponding control signal, i.e., operation medium does not need contact terminal screen, it can issues control System instruction, if operation medium is the substance of three-dimensional, it is nearest apart from terminal screen to can detecte whole operation medium for such as finger Place.
Fig. 3 is the entity schematic diagram that non-contact in the present embodiment is operation, as shown in figure 3, being provided in terminal 100 can Show that the screen 110 of information, screen 110 can show the region i.e. information display area of information, be provided with photosensitive biography in terminal 100 Sensor or ultrasonic sensor are connect, for responding contactless operation with screen 100;When contactless operation acts on When in preset range, photosensitive sensor or ultrasonic sensor sense contactless operation, control the void in interface The velocity variations of quasi- object.
It should be noted that when carrying out Touchless manipulation in preset range, only apart from terminal screen in certain altitude It can just be responded in range.
Optionally, the first manipulation medium in the present embodiment can be finger, and virtual objects can be the flight in game Aircraft or movement personage.
It should be noted that moving parameter can be the movement speed of virtual objects, it is also possible to virtual objects movement Acceleration.
Optionally, in the present example embodiment, also controllable virtual objects are in scene of game on preset plane direction Mobile, which is plane where ground in scene of game, adjustment virtual objects can specifically be existed one of in the following manner The movement in preset plane direction in scene of game:
(1) changed according to projected position of the operating point of contactless operation in mobile control area, adjustment is virtual right As the movement on preset plane direction.Such as: as shown in figure 3, finger is flat in mobile phone so that the first manipulation medium is finger as an example It is moved in square XOY plane in front, determines that projected position of the finger in mobile control area changes according to the motion track of finger, So that it is determined that mapping motion track of the finger in mobile control area, controls virtual objects pre- according to the mapping motion track If being moved on in-plane.
(2) the second manipulation of detection medium acts on the touch control operation on terminal screen;Existed according to the operating point of touch control operation Change in location in mobile control area adjusts movement of the virtual objects in scene of game (preset plane).Such as: finger is logical The sliding on mobile phone screen is crossed, movement of the virtual objects in scene of game is controlled.
Optionally, before the movement speed in adjustment virtual objects in interface, contactless behaviour can be preset The default table of comparisons of work and virtual objects between the mobile reference in preset plane direction in scene of game, such as vertical range- The speed table of comparisons or vertical range-acceleration table of comparisons, Fig. 5 are according to vertical range-speed pair provided in an embodiment of the present invention According to table.
In the present example embodiment, become according to the vertical range between the operating point position of contactless operation and screen Change, adjustment virtual objects moving parameter in preset plane direction in scene of game comprises determining that contactless operation default The first operating point position in range;Calculate the first vertical range between the first operating point position and screen;In default control First movement speed corresponding with the first vertical range is searched in table;Control virtual objects are moved according to the first movement speed It is dynamic.
Specifically, as shown in figure 3, the distance between the first operating point position 311 and screen 110 for first it is vertical away from From, such as the first vertical range is 6cm, first movement speed corresponding with the first vertical range is searched in the speed table of comparisons is 30m/s;Control virtual objects are mobile according to first movement speed, the mobile control of virtual objects in convenience gaming.
In the present example embodiment, after controlling the virtual objects according to the movement of first movement speed, this method is also Comprise determining that contactless operation is moved to the second operating point position from the first operating point position;Calculate the second operating point position The second vertical range between screen;The second movement speed corresponding with the second vertical range is searched in the default table of comparisons; The movement speed of virtual objects is adjusted from first movement speed to the second movement speed;It is mobile according to second to control virtual objects Speed is mobile.
Specifically, after control virtual objects are mobile according to first movement speed, if necessary to adjust virtual objects Movement speed, then it needs to be determined that contactless operation is moved to the second operating point position 312 from the first operating point position 311, such as Shown in Fig. 3, the second vertical range between the second operating point position 312 and screen 110 is calculated, such as the second vertical range is 2cm, it is 10m/s that the second movement speed corresponding with the second vertical range is searched in the speed table of comparisons;Can be realized will be virtual The movement speed of object is adjusted from first movement speed to the second movement speed;Movement speed is adjusted to the by control virtual objects Two movement speeds are mobile.
In the present example embodiment, after control virtual objects are according to the movement of first movement speed, this method further include: Determine that contactless operation is moved to third operating point position from the first operating point position with pre-set velocity;Calculate third operating point Third vertical range between position and screen;Calculate the difference between the first vertical range and third vertical range;Based on pre- If speed and difference calculate the acceleration for being moved to third operating point position from the first operating point position;According to acceleration and first Movement speed determines third movement speed;It is mobile with third movement speed to control virtual objects.It is specific as shown in figure 3, calculating the One operating point position 311 is moved to the third vertical range between third operating point position 313, such as the first vertical range is 6cm, third vertical range are 4cm, and the difference between the first vertical range and third vertical range is 2cm, are compareed in acceleration It is 2m/s that translational acceleration corresponding with difference is searched in table2, searched in the speed table of comparisons corresponding with the first vertical range First movement speed is 30m/s;The third movement speed of virtual objects is 10+2 × 3=16m/s after 3s, and control is virtual right As being moved with 16m/s.
It is operation medium with finger in a specific embodiment of the invention, virtual objects are with the aircraft in interface Example is illustrated, if the vertical range between finger and screen is h, as h=0, this point is denoted as 0, as shown in figure 4, setting pre- If the limit level of range is m, then the vertical range between finger and screen is h=m.Finger is operated within the scope of O-m, The i.e. X-direction that hoists is mobile towards the side m, then aircraft moves up;To lower, that is, X-direction towards O Slideslip, then aircraft is to moving down It is dynamic.If directly moving up in mobile phone screen and shaking bar, aircraft keeps present level, only carries out the movement in x-y plane.Right When aircraft carries out the operation of X-direction: control X-axis displacement.The three-dimensional for being usually used in duration is mobile, such as three-dimensional flight behavior.This When can pass through sliding control instantaneous velocity v in the X-axis direction of the finger within the scope of O-m.Since speed of moving body is necessary There is certain limit, if maximum speed is v1.A speed table of comparisons is preset, by filling in a form, by the finger within the scope of O-m Velocity amplitude in height number h and 0-v1 (or-v1~v1) range, which corresponds, (can also set m-O as reversed displacement, depending on tool Depending on body demand).In this way, when player carries out Touchless manipulation, it can be by reading real time operation height come for mesh in game Mark assigns corresponding real-time speed, to generate persistent movement.As shown in the table in Fig. 5, drive in this way in gaming An airplane is sailed, finger maintains present level, then keeps present speed, then draws on finger when needing to accelerate, when needing to slow down Then finger moves down, and when needing to land, then finger is slowly close to mobile phone plane, until contact.And in the setting of list item, h and v can be with It is linear correlation, is also possible to non-linear correlation, it is preferred to use has the association of clear regularity, table is more accurate, control effect Better.
In another specific embodiment of the present invention, when needing to control acceleration and deceleration of the virtual objects in Z-direction, it is usually used in The instantaneous sexual behaviour such as jump.Sliding control instantaneous acceleration a in the Z-axis direction of the finger within the scope of O-m can be passed through at this time. It, then can be by filling in a form if peak acceleration is a1 since object of which movement acceleration must have certain limit, it will be within the scope of O-m Height number it is corresponding with the acceleration value in 0-a1 (or-a1~a1) range.In this way, when player carries out without touch control operation When, real time operation height when can be confirmed by read operation assigns corresponding real time acceleration for target in game, from And generate instantaneous acceleration and deceleration motion.Specific executive mode is similar to the above.For example, simulating the high jump project in track and field in hand trip When, for target in quick horizontal advance, player's fast pull-up finger suddenly gives target one upward instantaneous acceleration, Then the acceleration and target initial velocity generate directed inclined upwardly speed, bounce target, realize primary jump.In addition, It can carry out the movement speed of indirect control target by controlling acceleration by the method.In the case, player is without Z Axis operation, then target will be cruised with fixed speed;Upward, slide downward is carried out, it is instantaneous in the direction of travel that it will cause targets The variation of acceleration, to influence speed.
In the above manner, player can directly control displacement, acceleration and deceleration of the target in Z axis by no touch control operation, with And derivative compound movement based on this.
In with a game, the response of one of above situation can be selected without touch control operation according to game demand.Due to this Method only comes into force to certain specific operations, therefore can carry out simultaneously with the various operations carried out directly on mobile phone screen.
It should be noted that the executing subject of above-mentioned steps can be above-mentioned terminal shown in FIG. 1, but it is not limited to this.
The embodiment of the invention also provides a kind of mobile controller of virtual objects in game, Fig. 6 is according to the present invention The structural schematic diagram of the mobile controller of virtual objects in the game that embodiment provides, as shown in fig. 6, the device includes:
Detection module 62, detection module non-connect for detect that the first manipulation medium acts in front of mobile control area Touch operation, wherein mobile control area is arranged in terminal screen, and contactless operation acts on the default model apart from screen In enclosing;
Module 64 is adjusted, module is adjusted, for vertical between the operating point position and screen according to contactless operation Distance change adjusts virtual objects in scene of game perpendicular to the moving parameter in preset plane direction.
Through the above steps, become using according to the vertical range between the operating point position of contactless operation and screen Change, adjusts the mode of movement speed of the virtual objects in interface, reached and do not needed by other controls to game circle Equipment in face carries out the purpose of the mobile control of virtual objects in game, facilitates setting in control interface to realize Standby technical effect, and then solve in the related technology to the mobile control mode of virtual objects in the game of the equipment in game The technical issues of complexity, poor user experience.
Contactless operation refers to the operation for not contacting terminal screen in this application, passes through the sensor carried in terminal Operation of the detection operation medium in front of terminal screen, the operation monitored is contactless operation.Terminal is according to reception The contactless operation arrived generates corresponding control signal, i.e., operation medium does not need contact terminal screen, it can issues control System instruction, if operation medium is the substance of three-dimensional, it is nearest apart from terminal screen to can detecte whole operation medium for such as finger Place.
Fig. 3 is the entity schematic diagram that non-contact in the present embodiment is operation, as shown in figure 3, being provided in terminal 100 can Show that the screen 110 of information, screen 110 can show the region i.e. information display area of information, be provided with photosensitive biography in terminal 100 Sensor or ultrasonic sensor are connect, for responding contactless operation with screen 100;When contactless operation acts on When in preset range, photosensitive sensor or ultrasonic sensor sense contactless operation, control the void in interface The velocity variations of quasi- object.
It should be noted that when carrying out Touchless manipulation in preset range, only apart from terminal screen in certain altitude It can just be responded in range.
Optionally, the first manipulation medium in the present embodiment can be finger, and virtual objects can be the flight in game Aircraft or movement personage.
It should be noted that moving parameter can be the movement speed of virtual objects, it is also possible to virtual objects movement Acceleration.
Optionally, in the present example embodiment, also controllable virtual objects are in scene of game on preset plane direction Mobile, which is plane where ground in scene of game, adjustment virtual objects can specifically be existed one of in the following manner The movement in preset plane direction in scene of game:
(1) changed according to projected position of the operating point of contactless operation in mobile control area, adjustment is virtual right As the movement on preset plane direction.Such as: as shown in figure 3, finger is flat in mobile phone so that the first manipulation medium is finger as an example It is moved in square XOY plane in front, determines that projected position of the finger in mobile control area changes according to the motion track of finger, So that it is determined that mapping motion track of the finger in mobile control area, controls virtual objects pre- according to the mapping motion track If being moved on in-plane.
(2) the second manipulation of detection medium acts on the touch control operation on terminal screen;Existed according to the operating point of touch control operation Change in location in mobile control area adjusts movement of the virtual objects in scene of game (preset plane).Such as: finger is logical The sliding on mobile phone screen is crossed, movement of the virtual objects in scene of game is controlled.
Optionally, before the movement speed in adjustment virtual objects in interface, contactless behaviour can be preset The default table of comparisons of work and virtual objects between the mobile reference in preset plane direction in scene of game, such as vertical range- The speed table of comparisons or vertical range-acceleration table of comparisons, Fig. 5 are according to vertical range-speed pair provided in an embodiment of the present invention According to table.
In the present example embodiment, become according to the vertical range between the operating point position of contactless operation and screen Change, adjustment virtual objects moving parameter in preset plane direction in scene of game comprises determining that contactless operation default The first operating point position in range;Calculate the first vertical range between the first operating point position and screen;In default control First movement speed corresponding with the first vertical range is searched in table;Control virtual objects are moved according to the first movement speed It is dynamic.
Specifically, as shown in figure 3, the distance between the first operating point position 311 and screen 110 for first it is vertical away from From, such as the first vertical range is 6cm, first movement speed corresponding with the first vertical range is searched in the speed table of comparisons is 30m/s;Control virtual objects are mobile according to first movement speed, the mobile control of virtual objects in convenience gaming.
In the present example embodiment, after controlling the virtual objects according to the movement of first movement speed, this method is also Comprise determining that contactless operation is moved to the second operating point position from the first operating point position;Calculate the second operating point position The second vertical range between screen;The second movement speed corresponding with the second vertical range is searched in the default table of comparisons; The movement speed of virtual objects is adjusted from first movement speed to the second movement speed;It is mobile according to second to control virtual objects Speed is mobile.
Specifically, after control virtual objects are mobile according to first movement speed, if necessary to adjust virtual objects Movement speed, then it needs to be determined that contactless operation is moved to the second operating point position 312 from the first operating point position 311, such as Shown in Fig. 3, the second vertical range between the second operating point position 312 and screen 110 is calculated, such as the second vertical range is 2cm, it is 10m/s that the second movement speed corresponding with the second vertical range is searched in the speed table of comparisons;Can be realized will be virtual The movement speed of object is adjusted from first movement speed to the second movement speed;Movement speed is adjusted to the by control virtual objects Two movement speeds are mobile.
In the present example embodiment, after control virtual objects are according to the movement of first movement speed, this method further include: Determine that contactless operation is moved to third operating point position from the first operating point position with pre-set velocity;Calculate third operating point Third vertical range between position and screen;Calculate the difference between the first vertical range and third vertical range;Based on pre- If speed and difference calculate the acceleration for being moved to third operating point position from the first operating point position;According to acceleration and first Movement speed determines third movement speed;It is mobile with third movement speed to control virtual objects.It is specific as shown in figure 3, calculating the One operating point position 311 is moved to the third vertical range between third operating point position 313, such as the first vertical range is 6cm, third vertical range are 4cm, and the difference between the first vertical range and third vertical range is 2cm, are compareed in acceleration It is 2m/s that translational acceleration corresponding with difference is searched in table2, searched in the speed table of comparisons corresponding with the first vertical range First movement speed is 30m/s;The third movement speed of virtual objects is 10+2 × 3=16m/s after 3s, and control is virtual right As being moved with 16m/s.
It is operation medium with finger in a specific embodiment of the invention, virtual objects are with the aircraft in interface Example is illustrated, if the vertical range between finger and screen is h, as h=0, this point is denoted as 0, as shown in figure 4, setting pre- If the limit level of range is m, then the vertical range between finger and screen is h=m.Finger is operated within the scope of O-m, The i.e. X-direction that hoists is mobile towards the side m, then aircraft moves up;To lower, that is, X-direction towards O Slideslip, then aircraft is to moving down It is dynamic.If directly moving up in mobile phone screen and shaking bar, aircraft keeps present level, only carries out the movement in x-y plane.Right When aircraft carries out the operation of X-direction: control X-axis displacement.The three-dimensional for being usually used in duration is mobile, such as three-dimensional flight behavior.This When can pass through sliding control instantaneous velocity v in the X-axis direction of the finger within the scope of O-m.Since speed of moving body is necessary There is certain limit, if maximum speed is v1.A speed table of comparisons is preset, by filling in a form, by the finger within the scope of O-m Velocity amplitude in height number h and 0-v1 (or-v1~v1) range, which corresponds, (can also set m-O as reversed displacement, depending on tool Depending on body demand).In this way, when player carries out Touchless manipulation, it can be by reading real time operation height come for mesh in game Mark assigns corresponding real-time speed, to generate persistent movement.As shown in the table in Fig. 5, drive in this way in gaming An airplane is sailed, finger maintains present level, then keeps present speed, then draws on finger when needing to accelerate, when needing to slow down Then finger moves down, and when needing to land, then finger is slowly close to mobile phone plane, until contact.And in the setting of list item, h and v can be with It is linear correlation, is also possible to non-linear correlation, it is preferred to use has the association of clear regularity, table is more accurate, control effect Better.
In another specific embodiment of the present invention, when needing to control acceleration and deceleration of the virtual objects in Z-direction, it is usually used in The instantaneous sexual behaviour such as jump.Sliding control instantaneous acceleration a in the Z-axis direction of the finger within the scope of O-m can be passed through at this time. It, then can be by filling in a form if peak acceleration is a1 since object of which movement acceleration must have certain limit, it will be within the scope of O-m Height number it is corresponding with the acceleration value in 0-a1 (or-a1~a1) range.In this way, when player carries out without touch control operation When, real time operation height when can be confirmed by read operation assigns corresponding real time acceleration for target in game, from And generate instantaneous acceleration and deceleration motion.Specific executive mode is similar to the above.For example, simulating the high jump project in track and field in hand trip When, for target in quick horizontal advance, player's fast pull-up finger suddenly gives target one upward instantaneous acceleration, Then the acceleration and target initial velocity generate directed inclined upwardly speed, bounce target, realize primary jump.In addition, It can carry out the movement speed of indirect control target by controlling acceleration by the method.In the case, player is without Z Axis operation, then target will be cruised with fixed speed;Upward, slide downward is carried out, it is instantaneous in the direction of travel that it will cause targets The variation of acceleration, to influence speed.
In the above manner, player can directly control displacement, acceleration and deceleration of the target in Z axis by no touch control operation, with And derivative compound movement based on this.
In with a game, the response of one of above situation can be selected without touch control operation according to game demand.Due to this Method only comes into force to certain specific operations, therefore can carry out simultaneously with the various operations carried out directly on mobile phone screen.
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps Calculation machine program:
S1, detection the first manipulation medium act on the contactless operation in front of mobile control area, wherein mobile control Region is arranged in terminal screen, and contactless operation acts in the preset range of screen;
S2 changes according to the vertical range between the operating point position of contactless operation and screen, adjusts virtual objects Perpendicular to the moving parameter in preset plane direction in scene of game.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read- Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard The various media that can store computer program such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1, detection the first manipulation medium act on the contactless operation in front of mobile control area, wherein mobile control Region is arranged in terminal screen, and contactless operation acts in the preset range of screen;
S2 changes according to the vertical range between the operating point position of contactless operation and screen, adjusts virtual objects Perpendicular to the moving parameter in preset plane direction in scene of game.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-OnlyMemory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. the control method for movement of virtual objects in a kind of game characterized by comprising
Detection the first manipulation medium acts on the contactless operation in front of mobile control area, wherein the mobile control zone Domain is arranged in terminal screen, and the contactless operation acts in the preset range apart from the screen;
According to the vertical range variation between the operating point position and the screen of the contactless operation, adjust described virtual Object is in scene of game perpendicular to the moving parameter in preset plane direction.
2. the method according to claim 1, wherein the method also includes:
According to projected position variation of the operating point of the contactless operation in the mobile control area, the void is adjusted Quasi- movement of the object on the preset plane direction.
3. the method according to claim 1, wherein the method also includes:
Detection the second manipulation medium acts on the touch control operation on the terminal screen;
According to change in location of the operating point of the touch control operation in the mobile control area, adjusts the virtual objects and exist Movement on the preset plane direction.
4. the method according to claim 1, wherein according to the operating point position of the contactless operation and institute The vertical range variation between screen is stated, adjusts the virtual objects in scene of game perpendicular to the movement in preset plane direction Parameter includes:
Determine first operating point position of the contactless operation in the preset range;
Calculate the first vertical range between first operating point position and the screen;
First movement speed corresponding with first vertical range is searched in the default table of comparisons;
It is mobile according to the first movement speed to control the virtual objects.
5. according to the method described in claim 4, it is characterized in that, controlling the virtual objects according to the first movement speed After movement, the method also includes:
Determine that the contactless operation is moved to the second operating point position from first operating point position;
Calculate the second vertical range between second operating point position and the screen;
The second movement speed corresponding with second vertical range is searched in the default table of comparisons;
The movement speed of the virtual objects is adjusted from the first movement speed to second movement speed;
It is mobile according to second movement speed to control the virtual objects.
6. according to the method described in claim 4, it is characterized in that, controlling the virtual objects according to the first movement speed After movement, the method also includes:
Determine that the contactless operation is moved to third operating point position from first operating point position with pre-set velocity;
Calculate the third vertical range between third operating point position and the screen;
Calculate the difference between first vertical range and the third vertical range;
It is calculated based on the pre-set velocity and the difference from first operating point position and is moved to the third operation point The acceleration set;
Third movement speed is determined according to the acceleration and the first movement speed;
It is mobile with the third movement speed to control the virtual objects.
7. the method according to claim 1, wherein the moving parameter includes movement speed and/or acceleration.
8. the mobile controller of virtual objects in a kind of game characterized by comprising
Detection module acts on contactless operation in front of mobile control area for detecting the first manipulation medium, wherein institute It states mobile control area to be arranged in terminal screen, the contactless operation acts on the preset range apart from the screen It is interior;
Module is adjusted, is become for the vertical range between the operating point position and the screen according to the contactless operation Change, adjusts the virtual objects in scene of game perpendicular to the moving parameter in preset plane direction.
9. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to execute method described in any one of claim 1 to 7 when operation.
10. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to run the computer program to execute side described in any one of claim 1 to 7 Method.
CN201811384948.6A 2018-11-20 2018-11-20 The control method for movement and device of virtual objects in game Pending CN110448901A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811384948.6A CN110448901A (en) 2018-11-20 2018-11-20 The control method for movement and device of virtual objects in game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811384948.6A CN110448901A (en) 2018-11-20 2018-11-20 The control method for movement and device of virtual objects in game

Publications (1)

Publication Number Publication Date
CN110448901A true CN110448901A (en) 2019-11-15

Family

ID=68480431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811384948.6A Pending CN110448901A (en) 2018-11-20 2018-11-20 The control method for movement and device of virtual objects in game

Country Status (1)

Country Link
CN (1) CN110448901A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106422329A (en) * 2016-11-01 2017-02-22 网易(杭州)网络有限公司 Game control method and device
CN106569635A (en) * 2016-10-31 2017-04-19 努比亚技术有限公司 Terminal suspension combination operation device and method thereof
CN106603810A (en) * 2016-10-31 2017-04-26 努比亚技术有限公司 Terminal suspension combination operation device and method thereof
CN106774907A (en) * 2016-12-22 2017-05-31 腾讯科技(深圳)有限公司 A kind of method and mobile terminal that virtual objects viewing area is adjusted in virtual scene
CN108815840A (en) * 2018-06-01 2018-11-16 Oppo(重庆)智能科技有限公司 A kind of method, device and mobile terminal controlling application program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569635A (en) * 2016-10-31 2017-04-19 努比亚技术有限公司 Terminal suspension combination operation device and method thereof
CN106603810A (en) * 2016-10-31 2017-04-26 努比亚技术有限公司 Terminal suspension combination operation device and method thereof
CN106422329A (en) * 2016-11-01 2017-02-22 网易(杭州)网络有限公司 Game control method and device
CN106774907A (en) * 2016-12-22 2017-05-31 腾讯科技(深圳)有限公司 A kind of method and mobile terminal that virtual objects viewing area is adjusted in virtual scene
CN108815840A (en) * 2018-06-01 2018-11-16 Oppo(重庆)智能科技有限公司 A kind of method, device and mobile terminal controlling application program

Similar Documents

Publication Publication Date Title
CN107667321A (en) Unmanned aerial vehicle (UAV) control apparatus and method
US10747325B2 (en) Systems and methods for long-range interactions for virtual reality
CN108513649A (en) Flight control method, equipment, machine readable storage medium and system
US10678421B2 (en) Control of a host station through movement of a moving device
CN108245887A (en) virtual object control method, device, electronic device and storage medium
CN110368688A (en) Display methods, device, storage medium and the electronic device of animation
US20190011999A1 (en) Interactive input controls in a simulated three-dimensional (3d) environment
CN108351705B (en) Apparatus, method and device for transforming augmented reality objects in physical and digital environments
WO2016209374A1 (en) Facilitating dynamic game surface adjustment
EP3726843B1 (en) Animation implementation method, terminal and storage medium
CN107728638A (en) The control method and device that unmanned plane makes a return voyage
CN108235809A (en) End cloud combination positioning method and device, electronic equipment and computer program product
CN105242780B (en) A kind of interaction control method and device
CN109491579A (en) The method and apparatus that virtual objects are manipulated
CN103096156A (en) Control method and control device of set top box
CN109806590A (en) Object control method and apparatus, storage medium and electronic device
CN103520921B (en) A kind of cursor control method, system and control device
CN110201387A (en) Object control method and apparatus, storage medium and electronic device
CN108415555A (en) For determining that the energy availability of tactile enabled device carrys out energy-efficient method and apparatus
CN109550242A (en) The control method and device of virtual role in game
US10088925B2 (en) Control of a remote device by a host device for mobile devices
CN111298429A (en) Method and device for synchronizing states of virtual vehicles in game
CN110448901A (en) The control method for movement and device of virtual objects in game
CN108268049A (en) Aircraft, the flight system and control method for following flight
CN111217096B (en) Instruction control method and device in suspension operation state simulation demonstration process

Legal Events

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