Interactive control method and device in game
By providing a graphical user interface and switching controls in the game, the problem of virtual objects accidentally touching is solved, the accuracy of virtual object switching and the efficiency of scene layout are improved, and the player experience is improved.
Patent Information
- Application Number
- CN202110854300.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-27
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2041-07-27
Smart Images

Figure CN113663322B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of human-computer interaction, and in particular to an interactive control method and device in a game. Background Art
[0002] For current scene layout games, due to the limitation of screen size and user operation, content overlap often occurs, especially for mobile games. There are some ways to deal with this problem, such as changing the map display from 3D to 2D, changing the map perspective from normal perspective to vertical perspective, etc., to minimize overlapping points and facilitate player operation. However, this method still cannot distinguish objects that are close, resulting in accidental touches, which seriously affects the player's gaming experience. Summary of the invention
[0003] The purpose of the present invention is to provide an interactive control method and device in a game, which avoids the accidental touching of virtual objects due to the small scene in the prior art, improves the accuracy of triggering selection when switching virtual objects in the scene, and thus improves the efficiency of scene layout.
[0004] In the first aspect, the present invention provides an interactive control method in a game. A graphical user interface is provided through a touch terminal, wherein the graphical user interface includes a game scene, and the game scene includes a plurality of arranged virtual objects; the method includes: responding to a touch operation on an initial virtual object at a first position in the game scene, determining the initial virtual object as a selected state, and determining an alternative virtual object within a specified range of the first position; displaying at least one switching control on the graphical user interface, each of the switching controls corresponding to one of the alternative virtual objects; responding to a switching operation on a target switching control in the at least one switching control, determining the alternative virtual object corresponding to the target switching control as a selected state.
[0005] In an optional implementation, the step of displaying at least one switching control on the graphical user interface includes: displaying the at least one switching control at a second position corresponding to the initial virtual object.
[0006] In an optional implementation, the switching control includes a virtual object identifier, and the virtual object identifier includes a thumbnail of the virtual object.
[0007] In an optional implementation, after the candidate virtual object corresponding to the target switching control is determined to be in a selected state, the method further includes: controlling the at least one switching control to be hidden.
[0008] In an optional implementation, the method further includes: if there is an overlap between the initial virtual object and the candidate virtual object, controlling the semi-transparent display of the candidate virtual object overlapping with the initial virtual object.
[0009] In an optional implementation, the method further includes: in response to a selection operation on a semi-transparently displayed candidate virtual object, determining the semi-transparently displayed candidate virtual object as the selected state, and controlling the semi-transparent display of the candidate virtual object in the unselected state.
[0010] In an optional implementation, the method further includes: displaying a layout control in response to a touch operation on a currently selected virtual object; the currently selected virtual object is an initial virtual object or an alternative virtual object; and arranging the currently selected virtual object in response to a first layout operation on the layout control.
[0011] In an optional implementation, the arrangement control includes a selection-only sub-control; and in response to the arrangement operation on the arrangement control, arranging the currently selected virtual object includes: in response to the touch operation on the selection-only sub-control, determining the currently selected virtual object as a selection-only state, and setting other virtual objects other than the currently selected virtual object to a locked state.
[0012] In an optional implementation, the locking state includes any one or more of the following: prohibiting movement, prohibiting copying, prohibiting rotation, prohibiting scaling, and prohibiting retraction.
[0013] In an optional implementation, the arrangement control also includes a rotation sub-control and / or a retraction sub-control; and in response to an arrangement operation on the arrangement control, arranging the currently selected virtual object includes: in response to the rotation sub-control, controlling the rotation of the currently selected virtual object; or, in response to a touch operation on the retraction sub-control, controlling the retraction of the currently selected virtual object.
[0014] In an optional implementation, it also includes: responding to a drag operation in which the touch start position is a currently selected virtual object, determining the touch end position of the drag operation, and moving the currently selected virtual object to the touch end position of the drag operation; or, responding to a zoom operation on the currently selected virtual object, zooming the previously selected virtual object.
[0015] In the second aspect, an interactive control device in a game is provided. A graphical user interface is provided through a touch terminal, the graphical user interface includes a game scene, and the game scene includes a plurality of arranged virtual objects; the device includes: a response unit, which is used to respond to a touch operation on an initial virtual object at a first position in the game scene, determine the initial virtual object as a selected state, and determine an alternative virtual object in a specified range of the first position; a display unit, which is used to display at least one switching control in the graphical user interface, each of which corresponds to one of the alternative virtual objects; a switching unit, which is used to respond to a switching operation on a target switching control in the at least one switching control, and determine the alternative virtual object corresponding to the target switching control as a selected state.
[0016] According to a third aspect, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0017] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores machine-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to execute any one of the methods described in the first aspect.
[0018] The interactive control method and device in the game provided by the present invention provide a graphical user interface through a touch terminal, wherein the graphical user interface includes a game scene, and the game scene includes multiple virtual objects that have been arranged; the method first responds to the touch operation of the initial virtual object at the first position in the game scene, determines the initial virtual object as a selected state, and determines the candidate virtual objects in the specified range of the first position, and then displays at least one switching control in the graphical user interface, each switching control corresponds to an alternative virtual object, and then responds to the switching operation of the target switching control in at least one switching control, and determines the candidate virtual object corresponding to the target switching control as a selected state. In the above method, after clicking on a virtual object in the game scene, the virtual object will be selected, and multiple nearby candidate virtual objects will be displayed, so that the virtual object corresponding to the selected state can be switched through the switching control corresponding to the candidate virtual object, so that the target candidate virtual object for switching can be selected from multiple virtual objects, avoiding the false touch of the virtual object due to the small scene in the prior art, improving the accuracy of triggering the selection when the virtual object in the scene is switched, and thus improving the efficiency of scene arrangement. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 A flowchart of an interactive control method in a game provided by an embodiment of the present invention;
[0021] Figure 2 A game scene interface diagram for an initial virtual object and nearby candidate virtual objects provided by an embodiment of the present invention;
[0022] Figure 3 A game scene interface diagram for switching between alternative virtual objects provided by an embodiment of the present invention;
[0023] Figure 4 A game scene interface including only selecting sub-controls provided by an embodiment of the present invention;
[0024] Figure 5 A schematic diagram of the structure of an interactive control device in a game provided by an embodiment of the present invention;
[0025] Figure 6 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0027] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0029] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, or the positions or positional relationships in which the product of the invention is usually placed when in use. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0030] In addition, the terms "horizontal", "vertical", "overhanging" and the like do not mean that the components are required to be absolutely horizontal or overhanging, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted.
[0031] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0032] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0033] Considering that current mobile games are limited by screens and operations, overlapping content often occurs when arranging homes. For overlapping virtual objects in the game scene, it is often impossible to directly select the target virtual object you want to select, resulting in accidental touches of virtual objects in the scene. Based on this, an embodiment of the present invention provides an interactive control method in a game, which avoids the accidental touches of virtual objects caused by the small scene in the prior art, improves the accuracy of triggering selection when switching virtual objects in the scene, and thereby improves the efficiency of scene arrangement.
[0034] For ease of understanding, the interactive control method in the game provided by the embodiment of the present invention is first described in detail. Figure 1A flow chart of an interactive control method in a game is shown, wherein the method provides a graphical user interface through a touch terminal, wherein the graphical user interface includes a game scene, and the game scene includes a plurality of arranged virtual objects. The game scene may be, for example, a virtual room in the game, and the plurality of arranged virtual objects in the game scene may correspondingly be a plurality of pieces of furniture arranged in the virtual room, etc.
[0035] The interactive control method in the game may mainly include the following steps S110 to S130:
[0036] Step S110, in response to a touch operation on an initial virtual object at a first position in the game scene, the initial virtual object is determined to be in a selected state, and candidate virtual objects within a specified range at the first position are determined.
[0037] Both the initial virtual object and the candidate virtual object are contents in the game scene, and can usually be displayed through an interface identifier (UI identifier). Displaying through the UI identifier can enable quick selection of virtual objects in the game scene.
[0038] The first position designated range is mainly used to determine the content that coincides with or is close to the initial virtual object position. The designated range can be preset, for example, a distance threshold can be determined, and the range whose distance from the first position is less than the distance threshold is determined as the designated range of the first position.
[0039] The first position may be the position of the touch point of the touch operation, and the first position falls on the initial virtual object in the game scene.
[0040] When the initial virtual object is determined to be in the selected state, the initial virtual object can be highlighted, for example, it can be highlighted or a mask can be superimposed, so that when there are many virtual objects in the game scene, the currently selected initial virtual object can be highlighted.
[0041] Taking into account that there may be many virtual objects in the game scene, or there may be overlap in positions between virtual objects, in order to reduce the impact of the currently selected initial virtual object not being the virtual object actually desired to be selected, alternative virtual objects within the specified range of the first position can be determined so that the currently selected initial virtual object can be switched to the alternative virtual object and the virtual object actually desired to be selected can be selected.
[0042] Step S120: display at least one switching control on the graphical user interface, each switching control corresponding to a candidate virtual object.
[0043] At least one switching control may be displayed at a second position corresponding to the initial virtual object. The second position may be near the initial virtual object so that the virtual object can be switched quickly. For example, the second position may be located at the upper left of the initial virtual object. In addition, in order to prevent the switching control from blocking the alternative virtual object near the initial virtual object, the switching control may be set to a blank position near the initial virtual object (i.e., a position where no virtual object is arranged).
[0044] In order to facilitate switching the initial virtual object to any candidate virtual object arranged nearby, a switching control corresponds to each candidate virtual object, so that the candidate virtual object can be switched directly according to the corresponding switching control.
[0045] The switching control may include a virtual object identifier, and the virtual object identifier includes a thumbnail of the virtual object. Each switching control may correspond to a virtual object identifier.
[0046] Step S130, in response to a switching operation acting on a target switching control in at least one switching control, determining a candidate virtual object corresponding to the target switching control to be in a selected state.
[0047] The switching operation may be, for example, a touch operation on the target switching control, such as a click or a double click. When the user triggers the target switching control, since each switching control corresponds to an alternative virtual object, the corresponding alternative virtual object is directly switched to, thereby switching the initially selected initial virtual object to the alternative virtual object corresponding to the target switching control.
[0048] In addition, the desired virtual object can usually be determined with one switch, so after the candidate virtual object corresponding to the target switch control is determined to be in the selected state, at least one switch control can be controlled to be hidden, thereby saving space resources in the graphical user interface.
[0049] The interactive control method in the game provided by the embodiment of the present invention selects a virtual object in the game scene after clicking on the virtual object, and displays multiple candidate virtual objects nearby, so that the virtual object corresponding to the selected state can be switched through the switching control corresponding to the candidate virtual object, so that the target candidate virtual object for switching can be selected from multiple virtual objects, avoiding the accidental touch of the virtual object due to the small scene in the prior art, improving the accuracy of triggering the selection when switching the virtual objects in the scene, and thus improving the efficiency of scene layout.
[0050] In one implementation, if the currently selected initial virtual object is a virtual object that needs to be moved when arranging the game scene, there is no need to switch the virtual object at this time, and the dragging operation on the selected initial virtual object can be directly responded to.
[0051] In another embodiment, if the currently selected initial virtual object is not the virtual object that needs to be moved, the currently selected initial virtual object is first switched to the alternative virtual object corresponding to the target switching control, and further responds to the drag operation of the alternative virtual object selected after the switch.
[0052] Therefore, the virtual objects corresponding to the above-mentioned selected state may include the initial virtual object selected before the switching operation or the alternative virtual object selected after the switching operation, so that the virtual objects corresponding to the selected state (such as the initial virtual object selected before the switching operation or the alternative virtual object selected after the switching operation) can be moved to arrange the game scene.
[0053] For ease of understanding, an example of a game scene interface diagram for an initial virtual object and nearby candidate virtual objects is shown in FIG. Figure 2 As shown, by responding to the touch operation on the initial virtual object at the first position in the game scene, the initial virtual object is determined to be in a selected state, and the candidate virtual objects in the specified range of the first position are determined. A nearby category label corresponding to the candidate virtual object can be displayed; the nearby category label includes at least one switching control.
[0054] The touch operation acting on the initial virtual object at the first position in the game scene can be a click operation on the initial virtual object. When the initial virtual object is determined to be in a selected state, the initial virtual object can be highlighted so that the currently selected virtual object can be clearly and intuitively determined.
[0055] Since the switching controls correspond one-to-one to the candidate virtual objects, the candidate virtual objects near the currently selected initial virtual object can be intuitively displayed through nearby category labels. Figure 2 As shown in , since there are actually three alternative virtual objects near the initial virtual object, the corresponding nearby category identifiers also have three switching controls.
[0056] It is understandable that in actual applications, there may be multiple alternative virtual objects near the initial virtual object. Considering the limitation of screen size, the nearby category label may include a drop-down menu, and only some switch controls may be displayed in the nearby category label. Other switch controls can be scrolled and displayed in the nearby category label through sliding operations.
[0057] In addition, the switching control is provided with a corresponding virtual object identifier, and the virtual object identifier corresponding to the switching control is used to display thumbnails of the candidate virtual objects in the specified range of the first position. Figure 2 For example, when Figure 2The initial virtual object selected is the table in the game scene, the alternative virtual object 1 is the ornament next to the table, the alternative virtual object 2 is the stool next to the table, and the alternative virtual object 3 is the book next to the table. The corresponding virtual object identifiers are thumbnails of the ornament, stool, and book. In this way, the player can directly determine the alternative virtual object to be switched based on the thumbnail, and switch the alternative virtual object by touching the switch control corresponding to the thumbnail, which can make the switching of virtual objects more intuitive and prevent accidental touches caused by the alternative virtual object being too close.
[0058] See also Figure 3 As shown in the figure, when the candidate virtual object to be selected is the candidate virtual object 3, the candidate virtual object 3 is determined to be in the selected state by responding to the click operation on the virtual object identifier (not shown in the figure) corresponding to the switching control, and the selected state is displayed (that is, Figure 3 By switching the selected state of a virtual object in this way, it is possible to prevent the problem of accidental touch and difficulty in switching caused by the initial virtual object and the candidate virtual object being too close to each other. The virtual object identifier and the corresponding switching control can be used to switch the virtual object directly, thereby improving the convenience and accuracy of switching the virtual object.
[0059] In some implementations, considering that virtual objects in the game scene may overlap, if the initial virtual object overlaps with the candidate virtual object, the candidate virtual object overlapping with the initial virtual object is controlled to be displayed semi-transparently.
[0060] For example, in a specific example, suppose the initial virtual object selected is a cup placed on a table, and a book is placed under the cup. At this time, by directly clicking on the touch terminal, the cup is initially selected, but the actual requirement is to move the book under the cup from the table to the carpet under the table. Since the cup and the book are at the same position on the plane in the scene, when the cup is selected, the book under the cup will also be displayed with a preset transparency, such as semi-transparency. This method can also display the covered virtual objects, thereby preventing the problem of being unable to be selected due to the virtual objects being covered, and improving the comprehensiveness of the switching selection.
[0061] After the covered candidate virtual object is displayed with a preset transparency, in response to a selection operation on the semi-transparently displayed candidate virtual object, the semi-transparently displayed candidate virtual object can be determined as the selected state, and the semi-transparent display of the candidate virtual object in the unselected state can be controlled.
[0062] Taking into account the interactive control in current games, the actual display effects of the existing methods of arrangement are quite different, and completely overlapping objects cannot be distinguished. That is, in addition to virtual objects that are close to each other in the game scene being prone to accidental touches, there are often overlapping virtual objects, which leads to a poor actual arrangement effect. The covered virtual objects due to the overlap often cannot be selected by direct touch. Therefore, this embodiment displays the covered candidate virtual objects with a preset transparency, and the covered candidate virtual objects can be selected by touching the position of the preset transparency, thereby avoiding the problem of being unable to be selected due to overlap.
[0063] In addition, the covered candidate virtual objects can also be switched through the switch controls corresponding to the nearby category labels. In actual applications, players can choose the switching method according to actual needs.
[0064] Considering that when arranging the game scene, after selecting a virtual object, it is usually necessary to perform a certain degree of operation on the selected virtual object, so by setting the operation control, the player can directly operate the currently selected virtual object through the operation control, which is more convenient. In specific implementation, the arrangement control can be displayed in response to the touch operation on the currently selected virtual object; the currently selected virtual object is the initial virtual object or the alternative virtual object; in response to the first arrangement operation on the arrangement control, the currently selected virtual object is arranged.
[0065] The arrangement control may include a rotation sub-control and / or a retraction sub-control; at this time, the step of arranging the currently selected virtual object in response to the arrangement operation of the arrangement control may include: responding to the rotation sub-control, controlling the rotation of the currently selected virtual object; or responding to the touch operation of the retraction sub-control, controlling the retraction of the currently selected virtual object.
[0066] Among them, retrieving the currently selected virtual object may refer to deleting the currently selected virtual object in the current game interface and putting it into the warehouse.
[0067] In order to avoid accidental touches when arranging scenes, the above arrangement controls can include a selection-only sub-control, see Figure 4 As shown, the select-only subcontrol can be triggered according to actual needs, that is, the select-only function can be turned on or off. Therefore, in actual application, in response to the touch operation on the select-only subcontrol, the currently selected virtual object can be determined as the select-only state, and other virtual objects other than the currently selected virtual object can be set to the locked state.
[0068] The locking state includes any one or more of the following: prohibiting movement, prohibiting copying, prohibiting rotation, prohibiting scaling, and prohibiting retraction, etc.
[0069] Since the operation controls for the selected virtual object are displayed after the virtual object is selected, the only virtual object currently selected is the selected virtual object.
[0070] By locking virtual objects other than the currently selected virtual object, operations can be performed only on the currently selected virtual object, thereby ensuring that other virtual objects will not be accidentally touched when operating the currently selected virtual object.
[0071] In addition, a second arrangement operation may be performed. For example, in response to a drag operation in which the touch start position is a currently selected virtual object, the touch end position of the drag operation may be determined, and the currently selected virtual object may be moved to the touch end position of the drag operation; or, in response to a scaling operation on the currently selected virtual object, the previously selected virtual object may be scaled.
[0072] Since one or more of the above operations are often performed on the selected virtual object in the scene arrangement, after the selection-only sub-control is triggered, the operation can be performed only on the currently selected virtual object, thereby avoiding accidental touches on other virtual objects that are closer.
[0073] To facilitate understanding, a specific example is provided:
[0074] For example, in the current game scene, the player wants to insert the virtual flowers in the scene into the vase on the table, but the current vase and the virtual flowers are not in the right proportion. When the virtual flowers are dragged into the vase, the proportions will be inconsistent, resulting in a poor sense of arrangement. Therefore, it is necessary to scale the virtual flowers or vases so that the vase and the virtual flowers meet a suitable proportion. At this time, if they are scaled directly, the vase and the virtual flowers may be scaled at the same time (because the distance is too close), so the currently selected virtual object can be determined as the vase in the game scene. At this time, all virtual objects except the vase are locked, so only the vase can be scaled without affecting the display of the layout effect diagram, which can enhance the player's gaming experience.
[0075] Considering that there may be a virtual object at the target position of the drag when the virtual object is dragged, but the existing object and the virtual object to be dragged must be placed at the target position, however, most existing methods usually squeeze the virtual objects originally placed at the target position after the virtual object to be dragged is dragged to the target position, resulting in the inability to arrange them at the same position at the same time. In the game scene, there are usually two or more virtual objects placed at the same position. Therefore, for the situation where the touch end position of the drag operation includes a pre-set virtual object, the selection only function can be used to place two or more virtual objects at the same position without conflict, which is more in line with the actual situation and allows players to experience a more realistic feeling in the game scene.
[0076] Furthermore, in the case where the touch end position of the drag operation includes a preset virtual object, the third position of the currently selected virtual object after the move in the game scene can be determined based on the object relationship between the currently selected virtual object and the preset virtual object.
[0077] The object relationship between the currently selected virtual object and the pre-set virtual object can be, for example, the relationship between a vase and a flower, or the relationship between a table and a floor. Different object relationships may exist in different game scenes, and the virtual objects in the scenes arranged by different players may also be different. Therefore, the object relationship can be determined based on the actual scene.
[0078] The third position in the game scene is the position determined after the currently selected virtual object moves, which can be the same as the touch end position or different (such as in the case of flower vase placement). In this way, even if the touch end position includes a pre-set virtual object, it will not cause accidental touch, thereby reducing the difficulty of operation for players.
[0079] In summary, the scene layout method provided by the embodiment of the present invention can simultaneously solve the problems of accidental touching and difficult selection of overlapping contents; overlapping objects can be displayed semi-transparently to facilitate selection, so that players can accurately switch the objects they want to select; and the "select only" switch button is used to help players drag the virtual objects in the game scene they want to change, which reduces the player's operating difficulty without affecting the display of the layout effect, allowing players to "see what you get", thereby improving the player's gaming experience.
[0080] In view of the interactive control method in the above game, the present invention provides an interactive control device in the game, which is used to provide a graphical user interface for the method, wherein the graphical user interface includes a game scene, and the game scene includes a plurality of arranged virtual objects. For ease of understanding, the structural diagram of the device is shown in FIG. Figure 5As shown, the device mainly includes the following parts:
[0081] A response unit 51 is used to respond to a touch operation on an initial virtual object at a first position in the game scene, determine the initial virtual object as a selected state, and determine candidate virtual objects in a specified range of the first position;
[0082] A display unit 52, configured to display at least one switching control in the graphical user interface, each of the switching controls corresponding to one of the candidate virtual objects;
[0083] The switching unit 53 is configured to respond to a switching operation on a target switching control in the at least one switching control and determine that the candidate virtual object corresponding to the target switching control is in a selected state.
[0084] The touch terminal provided by the embodiment of the present invention selects a virtual object in a game scene after clicking on the virtual object, and displays multiple candidate virtual objects nearby, so that the virtual object corresponding to the selected state can be switched through the switching control corresponding to the candidate virtual object, so that the target candidate virtual object for switching can be selected from multiple virtual objects, avoiding the accidental touch of the virtual object due to the small scene in the prior art, improving the accuracy of triggering the selection when switching the virtual objects in the scene, and thus improving the efficiency of scene layout.
[0085] In some embodiments, the display unit 52 is specifically configured to: display the at least one switching control at a second position corresponding to the initial virtual object.
[0086] In some embodiments, the switching control includes a virtual object identifier, and the virtual object identifier includes a thumbnail of the virtual object.
[0087] In some embodiments, the display unit 52 is further used to: control hiding of the at least one switching control.
[0088] In some embodiments, the display unit 52 is further configured to: if there is an overlap between the initial virtual object and the candidate virtual object, control the semi-transparent display of the candidate virtual object overlapping with the initial virtual object.
[0089] In some embodiments, the switching unit 53 is further used to: respond to a selection operation on a semi-transparently displayed candidate virtual object, determine the semi-transparently displayed candidate virtual object as the selected state, and control the semi-transparent display of the candidate virtual object in the unselected state.
[0090] In some embodiments, the arrangement unit is used to: display an arrangement control in response to a touch operation on a currently selected virtual object; the currently selected virtual object is an initial virtual object or an alternative virtual object; and arrange the currently selected virtual object in response to a first arrangement operation on the arrangement control.
[0091] In some embodiments, the arrangement control includes a selection-only sub-control; in response to the arrangement operation on the arrangement control, the arrangement unit is specifically used to: respond to the touch operation on the selection-only sub-control, determine the currently selected virtual object as a selection-only state, and set other virtual objects other than the currently selected virtual object to a locked state.
[0092] In some embodiments, the locked state includes any one or more of the following: prohibiting movement, prohibiting copying, prohibiting rotation, prohibiting scaling, and prohibiting retraction.
[0093] In some embodiments, the arrangement control also includes a rotation sub-control and / or a retraction sub-control; in response to the arrangement operation on the arrangement control, the arrangement unit is specifically used to: in response to the rotation sub-control, control the rotation of the currently selected virtual object; or, in response to the touch operation on the retraction sub-control, control the retraction of the currently selected virtual object.
[0094] In some embodiments, the arrangement unit is further configured to: respond to a drag operation in which the touch start position is a currently selected virtual object, determine a touch end position of the drag operation, and move the currently selected virtual object to the touch end position of the drag operation;
[0095] Alternatively, in response to a scaling operation on the currently selected virtual object, the previously selected virtual object is scaled.
[0096] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0097] A computer device provided by an embodiment of the present invention specifically includes a memory and a processor; the memory stores a computer program executable on the processor, and when the computer program is executed by the processor, the method described in any one of the above-mentioned implementation modes is executed.
[0098] The method in the embodiment of the present application can be applied to various types of computer devices, such as a touch terminal or a virtual reality device, etc. The touch terminal may include a touch screen and a processor, and the touch screen is used to present a graphical user interface and receive operations on the graphical user interface.
[0099] In some embodiments, when a graphical user interface is operated through a touch terminal, the graphical user interface can be used to operate local content of the touch terminal, and can also be used to operate content on a peer server.
[0100] For example, the application scenario may include a touch terminal and a server, and the touch terminal may communicate with the server via a wired network or a wireless network. The touch terminal is used to run a virtual desktop, and through the virtual desktop, the touch terminal may interact with the server to operate the content in the server.
[0101] The touch terminal of this embodiment is described by taking a mobile phone as an example. Figure 6 As shown, the mobile phone includes components such as a radio frequency (RF) circuit 610, a memory 620, a touch screen 630, and a processor 640. Those skilled in the art will understand that Figure 6 The structure of the mobile phone shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. Those skilled in the art will understand that the touch screen 630 belongs to the user interface (UI), and the mobile phone may include more or fewer user interfaces than shown in the figure.
[0102] The RF circuit 610 can also communicate with the network and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobilecommunication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0103] The memory 620 can be used to store software programs and modules. The processor 640 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 620. The memory 620 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory 620 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0104] The touch screen 630 can be used to display a graphical user interface and receive user operations on the graphical user interface. The specific touch screen 630 may include a display panel and a touch panel. The display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. The touch panel may collect the user's contact or non-contact operations on or near it, and generate pre-set operation instructions. In addition, the touch panel may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation and posture, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into information that the processor can process, and then sends it to the processor 640, and can receive and execute commands sent by the processor 640. In addition, the touch panel can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves, and any technology developed in the future can also be used to implement the touch panel. Furthermore, the touch panel may cover the display panel, and the user may operate on or near the touch panel covered on the display panel according to the graphical user interface displayed on the display panel. After the touch panel detects the operation on or near it, it transmits it to the processor 640 to determine the user input, and then the processor 640 provides corresponding visual output on the display panel in response to the user input. In addition, the touch panel and the display panel can be implemented as two independent components or integrated.
[0105] Processor 640 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of the mobile phone and processes data by running or executing software programs and / or modules stored in memory 620 and calling data stored in memory 620, thereby monitoring the mobile phone as a whole.
[0106] The interactive control method in the game, the method and the computer program product of the touch terminal provided in the embodiments of the present invention include a computer-readable storage medium storing a non-volatile program code executable by a processor, and a computer program is stored on the computer-readable storage medium. The computer program is executed by the processor to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0107] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned embodiment, and will not be repeated here.
[0108] The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be referred to the method embodiment, which will not be repeated here.
[0109] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An interactive control method in a game, characterized in that: Providing a graphical user interface through a touch terminal, the graphical user interface includes a game scene, and the game scene includes a plurality of arranged virtual objects; the method includes: In response to a touch operation on an initial virtual object at a first position in the game scene, the initial virtual object is determined to be in a selected state, and candidate virtual objects within a specified range of the first position are determined; wherein the first position is the position of a touch point of the touch operation, and the first position falls on the initial virtual object in the game scene; Displaying at least one switching control on the graphical user interface, each switching control corresponding to one of the candidate virtual objects; In response to a switching operation on a target switching control in the at least one switching control, determining a candidate virtual object corresponding to the target switching control as being in a selected state; The step of displaying at least one switching control on the graphical user interface comprises: displaying the at least one switching control at a second position corresponding to the initial virtual object; The method further comprises: If there is an overlap between the initial virtual object and the candidate virtual object, controlling the semi-transparent display of the candidate virtual object overlapping with the initial virtual object; The method further comprises: In response to a touch operation on a currently selected virtual object, a layout control is displayed; the currently selected virtual object is a candidate virtual object; In response to a first arrangement operation on the arrangement control, the currently selected virtual object is arranged.
2. The interactive control method in a game according to claim 1, characterized in that: The switching control includes a virtual object identifier, and the virtual object identifier includes a thumbnail of the virtual object.
3. The interactive control method in a game according to claim 2, characterized in that: After determining that the candidate virtual object corresponding to the target switching control is in a selected state, the method further includes: The at least one switch control is controlled to be hidden.
4. The interactive control method in a game according to claim 1, characterized in that: The method further comprises: In response to a selection operation on a semi-transparently displayed candidate virtual object, the semi-transparently displayed candidate virtual object is determined to be in the selected state, and the semi-transparent display of the candidate virtual object in the selected state is controlled to be cancelled.
5. The interactive control method in a game according to claim 1, characterized in that: The arranging control includes selecting only a sub-control; and in response to the arrangement operation on the arranging control, arranging the currently selected virtual object includes: In response to a touch operation on the selection-only sub-control, the currently selected virtual object is determined to be in a selection-only state, and other virtual objects except the currently selected virtual object are set to a locked state.
6. The interactive control method in a game according to claim 5, characterized in that: The locking state includes any one or more of the following: No moving, no copying, no rotation, no scaling, and no retraction.
7. The interactive control method in a game according to any one of claims 1 to 6, characterized in that: The arrangement control further includes a rotation sub-control and / or a retraction sub-control; In response to the arrangement operation on the arrangement control, arranging the currently selected virtual object includes: In response to the rotation sub-control, controlling the rotation of the currently selected virtual object; or, In response to a touch operation on the retract subcontrol, control the retraction of the currently selected virtual object.
8. The interactive control method in a game according to any one of claims 1 to 6, characterized in that: Also includes: In response to a drag operation in which the touch start position is a currently selected virtual object, determining a touch end position of the drag operation, and moving the currently selected virtual object to the touch end position of the drag operation; Alternatively, in response to a scaling operation on the currently selected virtual object, the previously selected virtual object is scaled.
9. An interactive control device in a game, characterized in that: A graphical user interface is provided through a touch terminal, wherein the graphical user interface includes a game scene, and the game scene includes a plurality of arranged virtual objects; the device includes: A response unit, configured to respond to a touch operation on an initial virtual object at a first position in the game scene, determine the initial virtual object as a selected state, and determine candidate virtual objects within a specified range of the first position; wherein the first position is a position where a touch point of the touch operation is located, and the first position falls on the initial virtual object in the game scene; A display unit, configured to display at least one switching control on the graphical user interface, each of the switching controls corresponding to one of the candidate virtual objects; a switching unit, configured to respond to a switching operation on a target switching control in the at least one switching control and determine that the candidate virtual object corresponding to the target switching control is in a selected state; The display unit is specifically configured to display the at least one switching control at a second position corresponding to the initial virtual object; The display unit is further configured to control the semi-transparent display of the candidate virtual object overlapping with the initial virtual object if there is an overlap between the initial virtual object and the candidate virtual object; The device further comprises: an arrangement unit; The arrangement unit is used to display an arrangement control in response to a touch operation on a currently selected virtual object; the currently selected virtual object is a candidate virtual object; and in response to a first arrangement operation on the arrangement control, arrange the currently selected virtual object.
10. A computer device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores machine-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the method according to any one of claims 1 to 8.
