CN117065348A - Control method and device of virtual component, electronic equipment and readable storage medium - Google Patents

Control method and device of virtual component, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN117065348A
CN117065348A CN202311061657.4A CN202311061657A CN117065348A CN 117065348 A CN117065348 A CN 117065348A CN 202311061657 A CN202311061657 A CN 202311061657A CN 117065348 A CN117065348 A CN 117065348A
Authority
CN
China
Prior art keywords
virtual component
touch operation
plane
user interface
graphical user
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
CN202311061657.4A
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 CN202311061657.4A priority Critical patent/CN117065348A/en
Publication of CN117065348A publication Critical patent/CN117065348A/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/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/308Details of the user interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a control method, a control device, electronic equipment and a readable storage medium of a virtual component, wherein a graphical user interface is provided through terminal equipment, and the graphical user interface displays the virtual component; the method comprises the following steps: controlling the virtual component to move on a first plane in response to a first touch operation for the virtual component; if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane; wherein the first plane and the second plane are different planes. In the mode, the terminal equipment can respond to the first touch operation and/or the second touch operation, control the virtual component to move on different planes, and the player can control the virtual component to move on different planes without selecting the moving plane, so that the operation is simple, and the experience of the player can be improved.

Description

Control method and device of virtual component, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of game technologies, and in particular, to a method and apparatus for controlling a virtual component, an electronic device, and a readable storage medium.
Background
In existing electronic games, players are free to edit a map of the game. When the map is edited in the editor, the player needs to drag the virtual component into the map of the game, move the virtual component to the corresponding position of the map, and then perform other related operations such as zooming, rotating and the like. Thus, the mobile virtual component is the first element in editing a map.
However, when the virtual component is moved in the three-dimensional space, the player needs to open the movement function of the editor to select the moving plane, and then control the virtual component to move on the designated plane, so that the operation is complicated, and the experience of the player is poor.
Disclosure of Invention
Accordingly, an object of the present invention is to provide a method, apparatus, electronic device, and readable storage medium for controlling a virtual component, in which a player can control the virtual component to move on different planes without selecting a moving plane, and the method, apparatus, electronic device, and readable storage medium are simple to operate, and can improve the experience of the player.
In a first aspect, an embodiment of the present invention provides a method for controlling a virtual component, where a graphical user interface is provided by a terminal device, where the graphical user interface displays the virtual component; the method comprises the following steps: controlling the virtual component to move on a first plane in response to a first touch operation for the virtual component; if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane; wherein the first plane and the second plane are different planes.
In a second aspect, an embodiment of the present invention further provides a control device for a virtual component, where a graphical user interface is provided by a terminal device, where the graphical user interface displays the virtual component; the device comprises: the virtual component first plane moving module is used for responding to a first touch operation aiming at the virtual component and controlling the virtual component to move on a first plane; the virtual component second plane moving module is used for responding to the second touch operation aiming at the graphical user interface and controlling the virtual component to move on a second plane if the first touch operation is not finished; wherein the first plane and the second plane are different planes.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, where the memory stores computer executable instructions executable by the processor, and the processor executes the computer executable instructions to implement the steps of the method for controlling a virtual component described above.
In a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the steps of the method for controlling a virtual component described above.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a control method, a control device, electronic equipment and a readable storage medium of a virtual component, wherein the control method, the device, the electronic equipment and the readable storage medium are used for responding to a first touch operation aiming at the virtual component and controlling the virtual component to move on a first plane; if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane; wherein the first plane and the second plane are different planes. In the mode, the terminal equipment can respond to the first touch operation and/or the second touch operation, control the virtual component to move on different planes, and the player can control the virtual component to move on different planes without selecting the moving plane, so that the operation is simple, and the experience of the player can be improved.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part will be obvious from the description, or may be learned by practice of the techniques of the disclosure.
The foregoing objects, features and advantages of the disclosure will be more readily apparent from the following detailed description of the preferred embodiments taken in conjunction with the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a graphical user interface provided by an embodiment of the present invention;
FIG. 2 is a flowchart of a method for controlling a virtual component according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for controlling a virtual component according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of dragging a virtual component into a graphical user interface according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of controlling a virtual component to move on a first plane according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of controlling a virtual component to move on a second plane according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a control device for a virtual component according to an embodiment of the present invention;
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Currently, in existing electronic games, players can freely edit a map of the game. When the map is edited in the editor, the player needs to drag the virtual component into the map of the game, move the virtual component to the corresponding position of the map, and then perform other related operations such as zooming, rotating and the like. Thus, the mobile virtual component is the first element in editing a map.
However, when the virtual component is moved in the three-dimensional space, the player needs to open the movement function of the editor to select the moving plane, and then control the virtual component to move on the designated plane, so that the operation is complicated, and the experience of the player is poor.
The control method of the virtual component in one embodiment of the present disclosure may be executed on a local terminal device or a server. When the control method of the virtual component runs on the server, the method can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an alternative embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud game. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the cloud game operation mode, the game program operation main body and the game picture presentation main body are separated, the … … method storage and operation are completed on the cloud game server, and the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the cloud game server which performs information processing is a cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with the player through the graphical user interface, namely, conventionally downloading and installing the game program through the electronic device and running. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal, or provided to the player by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
In a possible implementation manner, the embodiment of the disclosure provides a control method of a virtual component, and a graphical user interface is provided through a terminal device, where the terminal device may be the aforementioned local terminal device or the aforementioned client device in the cloud interaction system.
First, the present application is described with respect to nouns:
(1) Game scene
The gaming system may provide virtual game scenes that the application displays (or provides) when running on the terminal device or server. Optionally, the game scene is a simulated environment for the real world, or a semi-simulated semi-fictional virtual environment, or a purely fictional virtual environment. The game scene is any one of a two-dimensional virtual scene and a three-dimensional virtual scene, and the virtual environment can be sky, land, ocean and the like, wherein the land comprises environmental elements such as deserts, cities and the like. The game scene is a scene of complete game logic of virtual characters such as user control.
A virtual character refers to a dynamic object that can be controlled in a virtual scene. Alternatively, the dynamic object may be a virtual character, a virtual animal, or the like. Wherein the virtual character includes a cartoon character, a game character, and the like. The virtual Character is a Character that a Player controls through an input device, or is an artificial intelligence (Artificial Intelligence, AI) set in a virtual environment fight by training, or is a Non-Player Character (NPC) set in a virtual environment fight. Optionally, the avatar is a avatar playing an athletic activity in the virtual scene. Optionally, the number of virtual characters in the virtual scene fight is preset, or dynamically determined according to the number of clients joining the fight, which is not limited by the embodiment of the present application. In one possible implementation, a user can control a virtual character to move in the virtual scene, e.g., control the virtual character to run, jump, crawl, etc., as well as control the virtual character to fight other virtual characters using skills, virtual props, etc., provided by the application.
(2) Player character
A player character refers to a virtual character that may be manipulated by a player to be active in a gaming environment, which may also be referred to as a god character, hero character in some electronic games. The player character may be at least one of a virtual character, a virtual animal, a cartoon character, a virtual vehicle, or the like.
(3) Game interface
The game Interface is an Interface corresponding to an application program provided or displayed through a graphical User Interface, and the Interface includes a UI (User Interface) and a game screen for a player to interact. In alternative embodiments, game controls (e.g., skill controls, movement controls, functionality controls, etc.), indication identifiers (e.g., direction indication identifiers, character indication identifiers, etc.), information presentation areas (e.g., number of clicks, time of play, etc.), or game setting controls (e.g., system settings, stores, gold coins, etc.) may be included in the UI interface. In an alternative embodiment, the game screen is a display screen corresponding to the virtual scene displayed by the terminal device, and the game screen may include virtual characters such as a game character, an NPC character, an AI character, and the like that execute game logic in the virtual scene.
Based on the above, the control method, the device, the electronic device and the readable storage medium of the virtual component provided by the embodiment of the invention can be applied to devices capable of realizing man-machine interaction such as mobile phones, tablet computers, computers and servers, and particularly can be applied to scenes of mobile phone games.
For the sake of understanding the present embodiment, first, a method for controlling a virtual component disclosed in the present embodiment will be described in detail.
The embodiment provides a control method of a virtual component, and the terminal device in the embodiment can be a touch device with a communication function and a man-machine interaction function, such as a mobile phone and a tablet computer.
In this embodiment, the terminal device provides a graphical user interface of the game, and referring to a schematic diagram of one graphical user interface shown in fig. 1, the virtual component may be displayed through the graphical user interface of the terminal device.
The virtual components in this embodiment may be components that can be controlled by a player to move by a virtual character, a virtual article, or the like, and can be set in a game scene by the player. For example: the player may set a cabinet, a bed, a virtual character, etc. in the game scene, and the cabinet, the bed, the virtual character, etc. may be used as virtual components.
Based on the above description, referring to a flowchart of a control method of a virtual component shown in fig. 2, the control method of the virtual component includes the steps of:
in step S202, the virtual component is controlled to move on the first plane in response to the first touch operation for the virtual component.
In this embodiment, the operation that the player touches the gui may be referred to as a touch operation, for example: a player clicking on a location of the graphical user interface, a player sliding on the graphical user interface, a player pressing a location of the graphical user interface, etc., may be referred to as a touch operation.
The first touch operation in this embodiment is a touch operation for the virtual component, that is, an operation that the player touches the virtual component, for example: the player clicks, long presses the operation of the virtual component, or the player slides the operation of the virtual component, etc.
The terminal device responds to the first touch operation for the virtual component, and can firstly determine the moving plane of the virtual component as the first plane, and then control the virtual component to move on the first plane according to the first touch operation. For example: the first plane may be an XY plane, the first touch operation may be a sliding operation, and the terminal device may control the virtual component to move on the XY plane according to the sliding operation.
Step S204, if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane; wherein the first plane and the second plane are different planes.
The first touch operation does not end to characterize that the player is touching the virtual component all the time. At this time, if the player performs a second touch operation of touching the graphical user interface, the terminal device may control the virtual component to move on a second plane different from the first plane in response to the first touch operation and the second touch operation.
For example: the first plane may be an XY plane and the second plane may be an XZ plane. The player touches the virtual component with the left hand as a first touch operation, and the terminal device can control the virtual component to move on the XY plane. The left hand of the player always touches the virtual component, and when the right hand of the player touches the graphical user interface, the terminal device can respond to the first touch operation and the second touch operation to control the virtual component to move on the XZ plane.
Therefore, the player can change the moving plane of the virtual component at any time through the first touch operation and the second touch operation without additionally clicking the button for switching the moving plane, the operation is simpler, and the experience of the player is better.
The embodiment of the invention provides a control method of a virtual component, which responds to a first touch operation aiming at the virtual component and controls the virtual component to move on a first plane; if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane; wherein the first plane and the second plane are different planes. In the mode, the terminal equipment can respond to the first touch operation and/or the second touch operation, control the virtual component to move on different planes, and the player can control the virtual component to move on different planes without selecting the moving plane, so that the operation is simple, and the experience of the player can be improved.
As shown in fig. 3, in an alternative embodiment, the control method of the virtual component includes the following steps:
in step S302, the virtual component is dragged into the graphical user interface in response to the first touch operation for the virtual component.
If the virtual component to be moved is not initially in the game scene of the graphical user interface, the player may first drag the virtual component into the game scene of the graphical user interface. Referring to a schematic drawing of dragging a virtual component into a graphical user interface shown in fig. 4, the cube in fig. 4 is the virtual component. The player may drag the virtual component into the game scene of the graphical user interface through a first touch operation.
For example: the virtual components may be disposed in a library of virtual components outside of the game scene of the graphical user interface. The player can click on the virtual component in the virtual component library, drag the virtual component in the virtual component library into the game scene of the graphical user interface, and then execute the first touch operation. The terminal device may drag the virtual component into the game scene of the graphical user interface in response to the first touch operation.
In summary, the player may execute the first touch operation on the virtual component, and the terminal device responds to the first touch operation to drag the virtual component into the graphical user interface, so that the player is simple to operate and has better experience.
In step S304, the virtual component is controlled to move on the first plane in response to the first touch operation.
Referring to a schematic diagram of controlling movement of the virtual component in a first plane shown in fig. 5, the first plane in fig. 5 is an XY plane. As shown in FIG. 5, after the virtual component drags into the graphical user interface, the player may continue to perform the first touch operation. And the terminal equipment responds to the first touch operation and controls the virtual component to move on the XY plane.
It should be emphasized here that the player can only perform the first touch operation and not the second touch operation at this time, and the terminal device can only control the virtual component to move on the first plane. That is, the player at this time may only touch the virtual component and may only use the touch point that touches the virtual component, and the terminal device may control the virtual component to move on the first plane.
If the player touches other positions of the graphical user interface in addition to the virtual component, the player may be considered to have performed a second touch operation. If the player increases the touch point with which the virtual component is touched, the player can also be considered to perform the second touch operation.
For example, when the player touches the virtual component with the left index finger, the operation of touching the virtual component with the left index finger is the first touch operation. If the player then touches other locations of the graphical user interface using the left middle finger, the player may be considered to have performed a second touch operation of the left middle finger. Alternatively, if the player then touches the virtual component as well using the left-hand ring finger, the player may be considered to have performed a second touch operation of the left-hand ring finger.
Step S306, if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane; wherein the first plane and the second plane are different planes.
In some embodiments, if the first touch operation is not ended, the terminal device may control the virtual component to move on the second plane based on the first touch operation in response to the second touch operation for the graphical user interface.
The terminal device in this embodiment may respond to the second touch operation of the graphical user interface when the first touch operation is not finished. The first touch operation may be used to control movement of the virtual component, and the second touch operation may be used to determine a plane in which the virtual component moves.
Therefore, if the first touch operation is not finished, the virtual component needs to continue to move, and the terminal device can switch the moving plane of the virtual component from the first plane to the second plane in response to the second touch operation.
Referring to a schematic diagram of controlling movement of the virtual component in a second plane shown in fig. 6, the second plane in fig. 6 is the XZ plane. At this time, if the first touch operation of the player is not finished and the second touch operation is performed, the terminal device may switch the plane in which the virtual component moves from the XY plane to the XZ plane.
In some embodiments, if the first touch operation is not ended and the second touch operation is ended, the virtual component is controlled to move on the first plane based on the first touch operation.
The first touch operation not ending may mean that the virtual component needs to continue moving, and the second touch operation ending means that the plane in which the virtual component moves is switched from the second plane to the first plane. At this time, the terminal device may control the virtual component to move on the first plane in response to the first touch operation of the player.
For example, the player performs a first touch operation of touching the virtual component with the index finger of the left hand, and then uses the other position of the left hand, where the index finger touches the graphical user interface, as a second touch operation. If the left index finger of the player always touches the virtual component and the left middle finger does not touch the graphical user interface any more, the first touch operation can be considered to be not ended and the second touch operation is ended, and the terminal device can control the virtual component to move on the first plane according to the first touch operation executed by the left index finger of the player.
In some embodiments, if the first touch operation ends, the virtual component is controlled to stop moving.
The end of the first touch operation may mean that the virtual component does not need to continue moving, and at this time, whether the second touch operation is ended or not, the terminal device may control the virtual component to stop moving.
For example, the player performs a first touch operation of touching the virtual component with the right middle finger, and then touches other positions of the graphical user interface with the left ring finger as a second touch operation. If the player's right middle finger no longer touches the virtual component, the first touch operation may be deemed to be ended. At this time, whether the left hand of the player is in contact with the graphical user interface or not, the terminal device can control the virtual component to stop moving.
In some embodiments, if neither the first touch operation nor the second touch operation is ended, the third touch operation for the graphical user interface is not responded to.
The terminal device in this embodiment may respond to 2 touch operations at most, and when neither the first touch operation nor the second touch operation is finished, the terminal device may not respond to other touch operations.
For example, the player performs a first touch operation of touching the virtual component with the right middle finger, and then touches other positions of the graphical user interface with the left ring finger as a second touch operation. The player then touches the graphical user interface with the right-hand ring finger as a third touch operation, and the terminal device at that time may no longer respond.
In summary, the first touch operation may be used to control the movement of the virtual component, and the second touch operation may be used to determine the plane of movement of the virtual component. Specifically, if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane; if the first touch operation is not finished and the second touch operation is finished, controlling the virtual component to move on the first plane based on the first touch operation; and if the first touch operation is finished, controlling the virtual component to stop moving. The terminal equipment can respond to the first touch operation and/or the second touch operation, control the virtual component to move on different planes, and the player can control the virtual component to move on different planes without selecting the moving plane, so that the operation is simple, and the experience of the player can be improved.
After the player moves the virtual component, the virtual component may also be rotated, resized, or otherwise removed.
In some embodiments, the terminal device may rotate the virtual component in response to a rotation operation for the virtual component.
After the player moves the virtual component, the rotation operation of the virtual component may be performed through a control of the graphical user interface, and the terminal device may rotate the virtual component in response to the rotation operation. The control can be always displayed in the graphical user interface, or can be displayed in the graphical user interface through the operation of the player on the virtual component.
In some embodiments, the dimensions of the virtual component are adjusted in response to a scaling operation for the virtual component.
After the player moves the virtual component, the zoom operation of the virtual component may be performed through a control of the graphical user interface, and the terminal device may adjust the size of the virtual component in response to the zoom operation, for example: the virtual component is enlarged or reduced. The control can be always displayed in the graphical user interface, or can be displayed in the graphical user interface through the operation of the player on the virtual component.
In some embodiments, the movement of the virtual component is canceled in response to a cancel movement operation for the virtual component.
After the player moves the virtual component, the cancel movement operation of the virtual component may be performed through a control of the graphical user interface, and the terminal device may cancel the movement of the virtual component in response to the cancel movement operation, for example: the virtual component is moved from position X to position Y before, and canceling the movement of the virtual component may cause the virtual component to move from position Y back to position X. The control can be always displayed in the graphical user interface, or can be displayed in the graphical user interface through the operation of the player on the virtual component.
In summary, after the player moves the virtual component, the player may also rotate, resize, or cancel the virtual component, and the terminal device may control the virtual component to rotate, resize, or cancel the movement in response to the rotation operation, the scaling operation, or the cancel movement operation for the virtual component, respectively. The player can set the virtual components comprehensively, and has good experience.
According to the method provided by the embodiment of the invention, the player can execute the first touch operation aiming at the virtual component, the terminal equipment responds to the first touch operation and drags the virtual component into the graphical user interface, and the player is simple to operate and has good experience.
According to the method provided by the embodiment of the invention, the first touch operation can be used for controlling the movement of the virtual component, and the second touch operation can be used for determining the plane of the movement of the virtual component. Specifically, if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane; if the first touch operation is not finished and the second touch operation is finished, controlling the virtual component to move on the first plane based on the first touch operation; and if the first touch operation is finished, controlling the virtual component to stop moving. The terminal equipment can respond to the first touch operation and/or the second touch operation, control the virtual component to move on different planes, and the player can control the virtual component to move on different planes without selecting the moving plane, so that the operation is simple, and the experience of the player can be improved.
According to the method provided by the embodiment of the invention, after the player moves the virtual component, the player can also rotate, resize or cancel the movement of the virtual component, and the terminal equipment can respond to the rotation operation, the scaling operation or the cancel movement operation aiming at the virtual component to respectively control the rotation, the resizing or the cancel movement of the virtual component. The player can set the virtual components comprehensively, and has good experience.
Corresponding to the embodiment of the method, the embodiment of the invention provides a control device for a virtual component, and a graphical user interface is provided through a terminal device, wherein the graphical user interface displays the virtual component. The control device of a virtual assembly shown in fig. 7 is a schematic structural diagram, and includes:
a virtual component first plane moving module 71, configured to control the virtual component to move on the first plane in response to a first touch operation for the virtual component;
a virtual component second plane moving module 72 for controlling the virtual component to move on the second plane in response to the second touch operation for the graphical user interface if the first touch operation is not ended; wherein the first plane and the second plane are different planes.
The embodiment of the invention provides a control device of a virtual component, which responds to a first touch operation aiming at the virtual component and controls the virtual component to move on a first plane; if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane; wherein the first plane and the second plane are different planes. In the mode, the terminal equipment can respond to the first touch operation and/or the second touch operation, control the virtual component to move on different planes, and the player can control the virtual component to move on different planes without selecting the moving plane, so that the operation is simple, and the experience of the player can be improved.
In a possible embodiment, the virtual component first plane movement module is configured to drag the virtual component into the graphical user interface in response to a first touch operation for the virtual component; and responding to the first touch operation, and controlling the virtual component to move on the first plane.
In a possible embodiment, the virtual component second plane moving module is configured to control, if the first touch operation is not finished, the virtual component to move on the second plane based on the first touch operation in response to the second touch operation for the graphical user interface.
In a possible embodiment, the virtual component first plane moving module is further configured to control the virtual component to move on the first plane based on the first touch operation if the first touch operation is not finished and the second touch operation is finished.
In one possible embodiment, the apparatus comprises: and the virtual component stopping movement module is used for controlling the virtual component to stop moving if the first touch operation is finished.
In one possible embodiment, the apparatus comprises: and the third touch operation non-response module is used for not responding to the third touch operation aiming at the graphical user interface if neither the first touch operation nor the second touch operation is finished.
In one possible embodiment, the apparatus comprises: and a virtual component rotation module for rotating the virtual component in response to a rotation operation for the virtual component.
In one possible embodiment, the apparatus comprises: and the virtual component size adjusting module is used for adjusting the size of the virtual component in response to the scaling operation for the virtual component.
In one possible embodiment, the apparatus comprises: and the virtual component canceling moving module is used for canceling the movement of the virtual component in response to the canceling moving operation of the virtual component.
The control device of the virtual component provided by the embodiment of the invention has the same technical characteristics as the control method of the virtual component provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The embodiment of the invention also provides electronic equipment, which is used for running the control method of the virtual component; referring to the schematic structural diagram of an electronic device shown in fig. 8, the electronic device includes a memory 100 and a processor 101, wherein the memory 100 is configured to store one or more computer instructions, and the one or more computer instructions are executed by the processor 101 to perform the following steps:
Controlling the virtual component to move on a first plane in response to a first touch operation for the virtual component; if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane; wherein the first plane and the second plane are different planes.
In an alternative embodiment of the present invention, the step of controlling the virtual component to move on the first plane in response to the first touch operation on the virtual component includes: responding to a first touch operation aiming at the virtual component, and dragging the virtual component into a graphical user interface; and responding to the first touch operation, and controlling the virtual component to move on the first plane.
In an alternative embodiment of the present invention, the step of controlling the virtual component to move on the second plane in response to the first touch operation and the second touch operation for the gui includes: and if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane based on the first touch operation.
In an optional embodiment of the present invention, after the step of responding to the second touch operation for the graphical user interface if the first touch operation is not finished, the method further includes: and if the first touch operation is not finished and the second touch operation is finished, controlling the virtual component to move on the first plane based on the first touch operation.
In an optional embodiment of the invention, after the step of responding to the first touch operation for the virtual component, the method further includes: and if the first touch operation is finished, controlling the virtual component to stop moving.
In an optional embodiment of the present invention, after the step of responding to the second touch operation for the graphical user interface if the first touch operation is not finished, the method further includes: and if the first touch operation and the second touch operation are not finished, not responding to the third touch operation aiming at the graphical user interface.
In an alternative embodiment of the present invention, the method further includes: the virtual component is rotated in response to a rotation operation for the virtual component.
In an alternative embodiment of the present invention, the method further includes: the size of the virtual component is adjusted in response to a scaling operation for the virtual component.
In an alternative embodiment of the present invention, the method further includes: in response to a cancel move operation for the virtual component, the movement of the virtual component is canceled.
In this embodiment, the virtual component may be controlled to move on the first plane in response to the first touch operation for the virtual component; if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane; wherein the first plane and the second plane are different planes. In the mode, the terminal equipment can respond to the first touch operation and/or the second touch operation, control the virtual component to move on different planes, and the player can control the virtual component to move on different planes without selecting the moving plane, so that the operation is simple, and the experience of the player can be improved.
Further, the electronic device shown in fig. 8 further includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103, and the memory 100 are connected through the bus 102.
The memory 100 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 103 (which may be wired or wireless), and may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 102 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 8, but not only one bus or type of bus.
The processor 101 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 101 or instructions in the form of software. The processor 101 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 100 and the processor 101 reads information in the memory 100 and in combination with its hardware performs the steps of the method of the previous embodiments.
The embodiment of the invention also provides a computer readable storage medium, which stores computer executable instructions that when being called and executed by a processor, cause the processor to implement the control method of the virtual component, and can execute the following steps:
controlling the virtual component to move on a first plane in response to a first touch operation for the virtual component; if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane; wherein the first plane and the second plane are different planes.
In an alternative embodiment of the present invention, the step of controlling the virtual component to move on the first plane in response to the first touch operation on the virtual component includes: responding to a first touch operation aiming at the virtual component, and dragging the virtual component into a graphical user interface; and responding to the first touch operation, and controlling the virtual component to move on the first plane.
In an alternative embodiment of the present invention, the step of controlling the virtual component to move on the second plane in response to the first touch operation and the second touch operation for the gui includes: and if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane based on the first touch operation.
In an optional embodiment of the present invention, after the step of responding to the second touch operation for the graphical user interface if the first touch operation is not finished, the method further includes: and if the first touch operation is not finished and the second touch operation is finished, controlling the virtual component to move on the first plane based on the first touch operation.
In an optional embodiment of the invention, after the step of responding to the first touch operation for the virtual component, the method further includes: and if the first touch operation is finished, controlling the virtual component to stop moving.
In an optional embodiment of the present invention, after the step of responding to the second touch operation for the graphical user interface if the first touch operation is not finished, the method further includes: and if the first touch operation and the second touch operation are not finished, not responding to the third touch operation aiming at the graphical user interface.
In an alternative embodiment of the present invention, the method further includes: the virtual component is rotated in response to a rotation operation for the virtual component.
In an alternative embodiment of the present invention, the method further includes: the size of the virtual component is adjusted in response to a scaling operation for the virtual component.
In an alternative embodiment of the present invention, the method further includes: in response to a cancel move operation for the virtual component, the movement of the virtual component is canceled.
In this embodiment, the virtual component may be controlled to move on the first plane in response to the first touch operation for the virtual component; if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane; wherein the first plane and the second plane are different planes. In the mode, the terminal equipment can respond to the first touch operation and/or the second touch operation, control the virtual component to move on different planes, and the player can control the virtual component to move on different planes without selecting the moving plane, so that the operation is simple, and the experience of the player can be improved.
The method, the device, the electronic device and the computer program product of the readable storage medium for controlling the virtual component provided by the embodiment of the invention comprise the computer readable storage medium storing the program code, the instructions included in the program code can be used for executing the method in the previous method embodiment, and specific implementation can be referred to the method embodiment and will not be repeated here.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and/or apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In addition, in the description of embodiments of the present invention, unless explicitly stated and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention for illustrating the technical solution of the present invention, but not for limiting the scope of the present invention, and although the present invention has been described in detail with reference to the foregoing examples, it will be understood by those skilled in the art that the present invention is not limited thereto: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (12)

1. A control method of a virtual component is characterized in that a graphical user interface is provided through terminal equipment, and the graphical user interface displays the virtual component; the method comprises the following steps:
controlling the virtual component to move on a first plane in response to a first touch operation aiming at the virtual component;
if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane; wherein the first plane and the second plane are different planes.
2. The method of claim 1, wherein the step of controlling the virtual component to move on the first plane in response to the first touch operation for the virtual component comprises:
responding to a first touch operation aiming at the virtual component, and dragging the virtual component into the graphical user interface;
and responding to the first touch operation, and controlling the virtual component to move on a first plane.
3. The method of claim 1, wherein controlling the virtual component to move on a second plane in response to the first touch operation and a second touch operation for the graphical user interface comprises:
And if the first touch operation is not finished, responding to a second touch operation aiming at the graphical user interface, and controlling the virtual component to move on a second plane based on the first touch operation.
4. A method according to any of claims 1-3, wherein after the step of responding to a second touch operation for the graphical user interface if the first touch operation is not ended, the method further comprises:
and if the first touch operation is not finished and the second touch operation is finished, controlling the virtual component to move on the first plane based on the first touch operation.
5. A method according to any of claims 1-3, wherein after the step of responding to the first touch operation for the virtual component, the method further comprises:
and if the first touch operation is finished, controlling the virtual component to stop moving.
6. A method according to any of claims 1-3, wherein after the step of responding to a second touch operation for the graphical user interface if the first touch operation is not ended, the method further comprises:
and if the first touch operation and the second touch operation are not finished, not responding to a third touch operation aiming at the graphical user interface.
7. A method according to any one of claims 1-3, wherein the method further comprises:
the virtual component is rotated in response to a rotation operation for the virtual component.
8. A method according to any one of claims 1-3, wherein the method further comprises:
the size of the virtual component is adjusted in response to a scaling operation for the virtual component.
9. A method according to any one of claims 1-3, wherein the method further comprises:
in response to a cancel move operation for the virtual component, the movement of the virtual component is canceled.
10. A control device of a virtual component, characterized in that a graphical user interface is provided through a terminal device, the graphical user interface displaying the virtual component; the device comprises:
the virtual component first plane moving module is used for responding to a first touch operation aiming at the virtual component and controlling the virtual component to move on a first plane;
the virtual component second plane moving module is used for responding to the second touch operation aiming at the graphical user interface and controlling the virtual component to move on a second plane if the first touch operation is not finished; wherein the first plane and the second plane are different planes.
11. An electronic device comprising a processor and a memory, the memory storing computer executable instructions executable by the processor, the processor executing the computer executable instructions to implement the steps of the method of controlling a virtual component of any one of claims 1-9.
12. A computer readable storage medium storing computer executable instructions which, when invoked and executed by a processor, cause the processor to implement the steps of the method of controlling a virtual component according to any one of claims 1 to 9.
CN202311061657.4A 2023-08-21 2023-08-21 Control method and device of virtual component, electronic equipment and readable storage medium Pending CN117065348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311061657.4A CN117065348A (en) 2023-08-21 2023-08-21 Control method and device of virtual component, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311061657.4A CN117065348A (en) 2023-08-21 2023-08-21 Control method and device of virtual component, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117065348A true CN117065348A (en) 2023-11-17

Family

ID=88711183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311061657.4A Pending CN117065348A (en) 2023-08-21 2023-08-21 Control method and device of virtual component, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117065348A (en)

Similar Documents

Publication Publication Date Title
CN108355354B (en) Information processing method, device, terminal and storage medium
JP2022527502A (en) Virtual object control methods and devices, mobile terminals and computer programs
CN110694271B (en) Camera gesture control method and device in game scene and electronic equipment
CN111330272B (en) Virtual object control method, device, terminal and storage medium
CN108776544B (en) Interaction method and device in augmented reality, storage medium and electronic equipment
CN109189302B (en) Control method and device of AR virtual model
JP2023524368A (en) ADAPTIVE DISPLAY METHOD AND DEVICE FOR VIRTUAL SCENE, ELECTRONIC DEVICE, AND COMPUTER PROGRAM
CN113908550A (en) Virtual character control method, nonvolatile storage medium, and electronic apparatus
CN113350779A (en) Game virtual character action control method and device, storage medium and electronic equipment
CN111760272B (en) Game information display method and device, computer storage medium and electronic equipment
EP4268913A1 (en) Position adjustment method and apparatus for operation controls, and terminal, and storage medium
CN113318428A (en) Game display control method, non-volatile storage medium, and electronic device
CN112245908A (en) Method and device for controlling game virtual character, storage medium and electronic equipment
CN113721820B (en) Man-machine interaction method and device and electronic equipment
CN115105831A (en) Virtual object switching method and device, storage medium and electronic device
CN115671735A (en) Object selection method and device in game and electronic equipment
CN117065348A (en) Control method and device of virtual component, electronic equipment and readable storage medium
CN115738230A (en) Game operation control method and device and electronic equipment
CN113694514A (en) Object control method and device
CN111973984A (en) Coordinate control method and device for virtual scene, electronic equipment and storage medium
CN113332712B (en) Game scene picture moving method and device and electronic equipment
WO2024000980A1 (en) Game interaction method and apparatus, and electronic device
CN114307131A (en) Game control method and device
CN114504812A (en) Virtual role control method and device
CN115518373A (en) Visual angle adjusting method and device in game scene, electronic equipment and storage medium

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