CN113769379A - Virtual object locking method, device, equipment, storage medium and program product - Google Patents

Virtual object locking method, device, equipment, storage medium and program product Download PDF

Info

Publication number
CN113769379A
CN113769379A CN202111137157.5A CN202111137157A CN113769379A CN 113769379 A CN113769379 A CN 113769379A CN 202111137157 A CN202111137157 A CN 202111137157A CN 113769379 A CN113769379 A CN 113769379A
Authority
CN
China
Prior art keywords
locking
interactive
mode
type
control
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
CN202111137157.5A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202111137157.5A priority Critical patent/CN113769379A/en
Publication of CN113769379A publication Critical patent/CN113769379A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

The application provides a locking method, a locking device, a locking equipment, a computer readable storage medium and a computer program product of a virtual object; the method comprises the following steps: presenting at least two types of interactive objects comprising a first type in a virtual scene, and displaying a locking control for locking the interactive objects in a first mode; responding to a selection instruction of a first locking mode triggered based on a locking control, controlling the locking mode of the virtual scene to be the first locking mode, and switching the display style of the locking control from a first style to a second style corresponding to the first style; the first locking mode is used for indicating that the interactive object of the first type in the at least two types of interactive objects is locked; and locking the interactive object of the first type in response to a locking instruction triggered by the locking control based on the second style so as to assist the target object to interact with the interactive object in the locking state. By the method and the device, the target type interactive object can be locked in a targeted mode, and the interaction efficiency is improved.

Description

Virtual object locking method, device, equipment, storage medium and program product
Technical Field
The present application relates to human-computer interaction technologies, and in particular, to a method, an apparatus, a device, a computer-readable storage medium, and a computer program product for locking a virtual object.
Background
With the development of computer technology and the improvement of mobile equipment performance, the operation direction of the human-computer interface in the virtual scene is developed towards a more convenient control mode, so that a user has a more pleasant human-computer interaction mode. For example, in a mobile game, if a player encounters different types of interactive objects simultaneously in a battle, the manner of locking the interactive objects in the related art is as follows: the player clicks the locking control to automatically lock the interactive object closest to the player, and in this way, only the distance from the interactive object to the player is considered, and the interactive object of a certain type cannot be locked in a targeted manner, so that in order to achieve a certain interaction purpose, the user needs to control the player to perform multiple interactive operations through the terminal, and the interaction efficiency is low.
Disclosure of Invention
Embodiments of the present application provide a method, an apparatus, a device, a computer-readable storage medium, and a computer program product for locking a virtual object, which can lock an interactive object of a target type in a targeted manner, and improve interaction efficiency.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a method for locking a virtual object, which comprises the following steps:
presenting at least two types of interactive objects comprising a first type in a virtual scene, and displaying a locking control for locking the interactive objects in a first mode;
in response to a selection instruction of a first locking mode triggered based on the locking control, controlling the locking mode of the virtual scene to be the first locking mode, and
switching the display style of the locking control from the first style to a second style corresponding to the first style;
the first locking mode is used for indicating that the interactive object of the first type in the at least two types of interactive objects is locked;
and locking the interactive object of the first type in response to a locking instruction triggered by a locking control based on the second style so as to assist a target object to interact with the interactive object in a locked state.
An embodiment of the present application provides a virtual object locking apparatus, including:
the object display module is used for presenting at least two types of interactive objects comprising a first type in a virtual scene and displaying a locking control for locking the interactive objects in the first type;
a mode control module, configured to control a locking mode of the virtual scene to be a first locking mode in response to a selection instruction of the first locking mode triggered based on the locking control, and control the mode to be the first locking mode
Switching the display style of the locking control from the first style to a second style corresponding to the first style;
the first locking mode is used for indicating that the interactive object of the first type in the at least two types of interactive objects is locked;
and the object locking module is used for locking the interactive object of the first type in response to a locking instruction triggered by the locking control based on the second style so as to assist the target object to interact with the interactive object in a locked state.
In the foregoing solution, before the controlling the locking mode of the virtual scene to be the first locking mode, the apparatus further includes:
a selection instruction receiving module, configured to present lock mode options corresponding to at least two lock modes in response to a first trigger operation of the lock control for the first style;
receiving a selection instruction of a first locking mode in response to a selection operation for the first locking mode of the at least two locking modes based on the locking mode option;
before the locking the interactive object of the first type, the apparatus further comprises:
and the locking instruction receiving module is used for receiving the locking instruction in response to a second trigger operation aiming at the locking control of the second style.
In the foregoing solution, before the control of the locking mode of the virtual scene is the first locking mode, the selection instruction receiving module is further configured to present, in response to a trigger operation for the locking control of the first mode, at least two concentric rings with the locking control as a center of a circle, where each ring corresponds to one locking mode;
and responding to the dragging operation aiming at the locking control, synchronously moving the locking control, and receiving a selection instruction of the first locking mode when the dragging operation is released when the locking control is in a circular ring corresponding to the first locking mode.
In the above solution, when the number of the interactive objects of the first type is at least two, the object locking module is further configured to lock a target interactive object of the at least two interactive objects of the first type in response to a locking instruction triggered by a locking control based on the second style;
and the distance between the target interactive object and the target object meets a preset distance condition, or the attribute value of the target interactive object is lower than the target attribute value.
In the above solution, when the number of the interactive objects of the first type is at least two, the object locking module is further configured to control at least two interactive objects of the first type to be in a candidate state in response to a locking instruction triggered by a locking control based on the second style;
locking the target interactive object of the first type in response to a selection operation for a target interactive object of the at least two interactive objects in the candidate state.
In the above scheme, the apparatus further comprises:
the locking switching module is used for presenting a switching control for switching the target interactive object;
in the process of locking the target interactive object, responding to the trigger operation aiming at the switching control, and switching the target interactive object to be locked into other interactive objects;
wherein the other interactive objects are interactive objects different from the target interactive object in the at least two interactive objects corresponding to the first type.
In the above solution, the locking switching module is further configured to, in a process of locking the target interactive object, respond to a switching instruction for the target interactive object, and control at least two interactive objects corresponding to the first type to be in a candidate state;
and responding to the selection operation of other interactive objects in the at least two interactive objects in the candidate state, and switching to lock the target interactive object to lock the other interactive objects.
In the foregoing solution, when the number of the interactive objects of the first type is at least two, the object locking module is further configured to lock, by one key, each of the interactive objects corresponding to the first type in response to a locking instruction triggered by a locking control based on the second style.
In the above solution, after the locking the interactive object of the first type, the apparatus further includes:
a locking mode switching module, configured to, in the process of locking the first type of interactive object, present locking mode options of at least two locking modes available for selection in response to a third trigger operation for the locking control of the second style;
based on the locking mode option, in response to a selection operation for a second locking mode of the at least two locking modes, controlling the locking mode of the virtual scene to be switched from the first locking mode to the second locking mode, and
switching the display style of the locking control from the second style to a third style corresponding to the second type of interactive object;
the second locking mode is used for indicating that the interactive object of the second type in the at least two types of interactive objects is locked.
In the above solution, after the interactive object of the first type is locked, the locking mode switching module is further configured to display an interactive screen between the target object and the interactive object of the first type in a locked state;
and in the process of interacting the target object and the interactive object of the first type, when the interaction of the interactive object of the first type fails, controlling the locking mode of the virtual scene to be switched from the first locking mode to other locking modes.
In the above scheme, the object display module is configured to present a locking control for locking the interactive object, and present a default graphical identifier on the locking control;
the mode control module is further configured to switch the graphic identifier presented on the locking control from the default graphic identifier to the graphic identifier corresponding to the interactive object of the first type.
In the foregoing solution, after displaying the locking control for locking the interactive object in the first pattern, the apparatus further includes:
the first indication information module is used for presenting cooling progress indication information corresponding to the locking control in the process of displaying the locking control when the locking control is in an inactivated state;
the cooling progress indicating information is used for indicating the cooling time or the energy recovery progress corresponding to the locking control switched from the inactivated state to the activated state;
the mode control module is further configured to, when the cooling progress indication information indicates that the locking control is in an activated state, respond to a selection instruction of a first locking mode triggered based on the locking control in the activated state, and control the locking mode of the virtual scene to be the first locking mode.
In the foregoing solution, before the controlling the locking mode of the virtual scene to be the first locking mode, the apparatus further includes:
the second indication information module is used for presenting locking mode setting indication information, and the locking mode setting indication information is used for indicating the interaction success rate of the first locking mode corresponding to the target object;
when the locking mode setting indication information indicates that the interaction success rate exceeds a probability threshold, a selection instruction of the first locking mode is received in response to a selection operation for the first locking mode triggered based on the locking control.
In the foregoing aspect, after the switching from the first pattern to the second pattern corresponding to the first type, the apparatus further includes:
a third indication information module for presenting locking opportunity indication information for the interactive object;
the locking opportunity indication information is used for indicating that the interactive object is in an interactive position which is favorable for the target object to execute interactive operation.
In the above solution, after the locking the interactive object of the first type, the apparatus further includes:
the fourth indication information module is used for displaying a picture of interaction between the target object and the interaction object of the first type in the locked state;
in the process that the target object interacts with the interactive object of the first type in the locking state, presenting locking mode switching indication information in response to the interactive operation of other types of interactive objects different from the first type;
and the locking mode switching indication information is used for indicating the interaction gain brought by locking the interactive object of the first type and switching to locking the interactive objects of other types.
In the above solution, after the locking the interactive object of the first type, the apparatus further includes:
the object control module is used for displaying a picture of the interaction between the target object and the interactive object of the first type in the locked state;
in the process that the target object interacts with the interactive object of the first type in the locked state, when the interactive object in the locked state moves in the virtual scene, the target object is controlled to move synchronously along with the interactive object.
In the above solution, after the locking the interactive object of the first type, the apparatus further includes:
a fifth indication information module, configured to control the target object to perform an interactive operation on the interactive object of the first type in a locked state;
and when the interactive operation successfully acts on the interactive object, presenting effect enhancement prompt information, wherein the effect enhancement prompt information is used for prompting that the action effect corresponding to the interactive operation is improved.
An embodiment of the present application provides an electronic device, including:
a memory for storing executable instructions;
and the processor is used for realizing the locking method of the virtual object provided by the embodiment of the application when the executable instruction stored in the memory is executed.
The embodiment of the application provides a computer-readable storage medium, which stores executable instructions for causing a processor to execute the method for locking a virtual object, which is provided by the embodiment of the application.
The embodiment of the present application provides a computer program product, which includes a computer program or instructions, and the computer program or instructions, when executed by a processor, implement the locking method for a virtual object provided in the embodiment of the present application.
The embodiment of the application has the following beneficial effects:
when a plurality of different types of interactive objects exist in a virtual scene at the same time, a locking mode corresponding to the interactive object of the target type is selected through a locking control, so that the interactive object of the target type can be rapidly and pertinently locked, the interaction between the target object and the interactive object with the locking characteristic is assisted, the requirement of rapid combat is met, the times of operating a terminal by a user for achieving a certain interaction purpose can be greatly reduced, the man-machine interaction efficiency is improved, and the consumption of computing resources is saved; meanwhile, the display style of the locking control is matched with the type of the interactive object corresponding to the selected locking mode, the display style of the locking control is enriched, and the user experience is improved.
Drawings
Fig. 1 is a schematic architecture diagram of a system 100 for locking virtual objects in a virtual scene according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a method for locking a virtual object in a virtual scene according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a display of a locking control provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a lock mode selection provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of a lock mode selection provided by an embodiment of the present application;
fig. 7 is a schematic display diagram of lock mode setting indication information provided in an embodiment of the present application;
fig. 8 is a schematic diagram illustrating display of lock mode switching indication information according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a lock mode selection provided by an embodiment of the present application;
fig. 10 is a flowchart illustrating a method for locking a virtual object according to an embodiment of the present application.
Detailed Description
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the description that follows, reference is made to the term "first \ second …" merely to distinguish between similar objects and not to represent a particular ordering for the objects, it being understood that "first \ second …" may be interchanged in a particular order or sequence of orders as permitted to enable embodiments of the application described herein to be practiced in other than the order illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
Before further detailed description of the embodiments of the present application, terms and expressions referred to in the embodiments of the present application will be described, and the terms and expressions referred to in the embodiments of the present application will be used for the following explanation.
1) The client, an application program running in the terminal for providing various services, such as a video playing client, a game client, etc.
2) In response to the condition or state on which the performed operation depends, one or more of the performed operations may be in real-time or may have a set delay when the dependent condition or state is satisfied; there is no restriction on the order of execution of the operations performed unless otherwise specified.
3) The virtual scene is a virtual scene displayed (or provided) when an application program runs on a terminal, and the virtual scene may be a simulation environment of a real world, a semi-simulation semi-fictional virtual environment, or a pure fictional virtual environment. The virtual scene may be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene, and the dimension of the virtual scene is not limited in the embodiment of the present application.
For example, when the virtual scene is a three-dimensional virtual space, the three-dimensional virtual space may be an open space, and the virtual scene may be used to simulate a real environment in reality, for example, the virtual scene may include sky, land, sea, and the like, and the land may include environmental elements such as a desert, a city, and the like. Of course, the virtual scene may also include virtual objects, for example, buildings, vehicles, or props such as weapons required for arming themselves or fighting with other virtual objects in the virtual scene, and the virtual scene may also be used to simulate real environments in different weathers, for example, weather such as sunny days, rainy days, foggy days, or dark nights. The user may control the movement of the virtual object in the virtual scene.
4) Virtual objects, the appearance of various people and objects in the virtual scene that can interact, or movable objects in the virtual scene. The movable object can be a virtual character, a virtual animal, an animation character, etc., such as: characters, animals, plants, oil drums, walls, stones, etc. displayed in the virtual scene. The virtual object may be an avatar in the virtual scene that is virtual to represent the user. The virtual scene may include a plurality of virtual objects, each virtual object having its own shape and volume in the virtual scene and occupying a portion of the space in the virtual scene.
Alternatively, the virtual object may be a user Character controlled by an operation on the client, an Artificial Intelligence (AI) set in the virtual scene fight by training, or a Non-user Character (NPC) set in the virtual scene interaction. Alternatively, the virtual object may be a virtual character that is confrontationally interacted with in a virtual scene. Optionally, the number of virtual objects participating in the interaction in the virtual scene may be preset, or may be dynamically determined according to the number of clients participating in the interaction.
Taking a shooting game as an example, the user may control a virtual object to freely fall, glide, open a parachute to fall, run, jump, climb, bend over, and move on the land, or control a virtual object to swim, float, or dive in the sea, or the like, but the user may also control a virtual object to move in the virtual scene by riding a virtual vehicle, for example, the virtual vehicle may be a virtual car, a virtual aircraft, a virtual yacht, and the like, and the above-mentioned scenes are merely exemplified, and the present invention is not limited to this. The user can also control the virtual object to carry out antagonistic interaction with other virtual objects through the virtual prop, for example, the virtual prop can be a throwing type virtual prop such as a grenade, a beaming grenade and a viscous grenade, and can also be a shooting type virtual prop such as a machine gun, a pistol and a rifle, and the application does not specifically limit the switching type of the calling object in the virtual scene.
In the embodiment of the application, the target is virtualized to be a virtual object in a virtual scene corresponding to the current login account, and the interactive object is a virtual object in a virtual scene corresponding to other login accounts.
5) Scene data, representing various features that objects in the virtual scene are exposed to during the interaction, may include, for example, the location of the objects in the virtual scene. Of course, different types of features may be included depending on the type of virtual scene; for example, in a virtual scene of a game, scene data may include a time required to wait for various functions provided in the virtual scene (depending on the number of times the same function can be used within a certain time), and attribute values indicating various states of a game character, for example, a life value (energy value, also referred to as red value) and a magic value (also referred to as blue value).
Referring to fig. 1, fig. 1 is an architectural diagram of a locking system 100 for virtual objects in a virtual scene provided in this embodiment, in order to support an exemplary application, terminals (illustratively, a terminal 400-1 and a terminal 400-2) are connected to a server 200 through a network 300, where the network 300 may be a wide area network or a local area network, or a combination of the two networks, and data transmission is implemented using a wireless or wired link.
The terminal can be various types of user terminals such as a smart phone, a tablet computer, a notebook computer and the like, and can also be a desktop computer, a game machine, a television or a combination of any two or more of the data processing devices; the server 200 may be a single server configured to support various services, may also be configured as a server cluster, may also be a cloud server, and the like.
In practical applications, the terminal is installed and operated with an application program supporting a virtual scene, where the application program may be any one of a First-Person shooter game (FPS), a third-Person shooter game, a Multiplayer Online tactical sports game (MOBA), a Two-dimensional (2D) game application, a Three-dimensional (3D) game application, a virtual reality application program, a Three-dimensional map program, a military simulation program, or a Multiplayer gunfight survival game, and the application program may also be a stand-alone application program, such as a stand-alone 3D game program.
The virtual scene related in the embodiment of the present invention may be used to simulate a three-dimensional virtual space, where the three-dimensional virtual space may be an open space, and the virtual scene may be used to simulate a real environment in reality, for example, the virtual scene may include sky, land, sea, and the like, and the land may include environmental elements such as a desert, a city, and the like. Of course, the virtual scene may also include virtual objects, such as buildings, tables, vehicles, and props for arming themselves or weapons required for fighting with other virtual objects. The virtual scene can also be used for simulating real environments in different weathers, such as sunny days, rainy days, foggy days or nights. The virtual object may be an avatar in the virtual scene for representing the user, and the avatar may be in any form, such as a simulated character, a simulated animal, and the like, which is not limited by the invention. In practical implementation, the user may use the terminal to control the virtual object to perform activities in the virtual scene, including but not limited to: adjusting at least one of body posture, crawling, running, riding, jumping, driving, picking, shooting, attacking, throwing, cutting a stab.
Taking an electronic game scene as an exemplary scene, a user may operate on the terminal in advance, and after detecting the operation of the user, the terminal may download a game configuration file of the electronic game, where the game configuration file may include an application program, interface display data, virtual scene data, or the like of the electronic game, so that the user (or a player) may invoke the game configuration file when logging in the electronic game on the terminal to render and display an electronic game interface. The method comprises the steps that a user can perform touch operation on a terminal, the terminal can send an acquisition request of game data corresponding to the touch operation to a server after detecting the touch operation, the server determines the game data corresponding to the touch operation based on the acquisition request and returns the game data to the terminal, the terminal performs rendering display on the game data, and the game data can comprise virtual scene data, behavior data of virtual objects in a virtual scene and the like.
In practical application, a terminal presents at least two types of interactive objects in a virtual scene, and displays a locking control for locking the interactive objects in a first mode; responding to a selection instruction of a first locking mode triggered based on a locking control, controlling the locking mode of the virtual scene to be the first locking mode, and switching the display style of the locking control from a first style to a second style corresponding to the first style; wherein the first locking mode corresponds to a first type of interactive object of the at least two types of interactive objects; and locking the interactive object of the first type in response to a locking instruction triggered by the locking control based on the second style so as to assist the target object to interact with the interactive object in the locking state.
The virtual simulation application of military is taken as an exemplary scene, the virtual scene technology is adopted to enable a trainee to experience a battlefield environment in a real way in vision and hearing and to be familiar with the environmental characteristics of a to-be-battle area, necessary equipment is interacted with an object in the virtual environment, and the implementation method of the virtual battlefield environment can create a three-dimensional battlefield environment which is a dangerous image ring life and is almost real through background generation and image synthesis through a corresponding three-dimensional battlefield environment graphic image library comprising a battle background, a battlefield scene, various weaponry, fighters and the like. In actual implementation, the terminal presents at least two types of interactive objects (such as simulation enemies) in a virtual scene, and displays a locking control for locking the interactive objects in a first mode; responding to a selection instruction of a first locking mode triggered based on a locking control, controlling the locking mode of the virtual scene to be the first locking mode, and switching the display style of the locking control from a first style to a second style corresponding to the first style; wherein the first locking mode corresponds to a first type of interactive object of the at least two types of interactive objects; and locking the interactive objects of the first type in response to a locking instruction triggered by the locking control based on the second style so as to assist the target objects (such as simulated fighters) to interact with the interactive objects in the locking state.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an electronic device 500 provided in the embodiment of the present application, in an actual application, the electronic device 500 may be the terminal 400-1, the terminal 400-2, or the server in fig. 1, and the electronic device is the terminal 400-1 or the terminal 400-2 shown in fig. 1 as an example, which is used to describe the electronic device implementing the method for locking the virtual object in the virtual scene in the embodiment of the present application. The electronic device 500 shown in fig. 2 includes: at least one processor 510, memory 550, at least one network interface 520, and a user interface 530. The various components in the electronic device 500 are coupled together by a bus system 540. It is understood that the bus system 540 is used to enable communications among the components. The bus system 540 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 540 in fig. 2.
The Processor 510 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor, or the like.
The user interface 530 includes one or more output devices 531 enabling presentation of media content, including one or more speakers and/or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components to facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
The memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard disk drives, optical disk drives, and the like. Memory 550 optionally includes one or more storage devices physically located remote from processor 510.
The memory 550 may comprise volatile memory or nonvolatile memory, and may also comprise both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a Random Access Memory (RAM). The memory 550 described in embodiments herein is intended to comprise any suitable type of memory.
In some embodiments, memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or subsets or supersets thereof, as exemplified below.
An operating system 551 including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
a network communication module 552 for communicating to other computing devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 including: bluetooth, wireless compatibility authentication (WiFi), and Universal Serial Bus (USB), etc.;
a presentation module 553 for enabling presentation of information (e.g., a user interface for operating peripherals and displaying content and information) via one or more output devices 531 (e.g., a display screen, speakers, etc.) associated with the user interface 530;
an input processing module 554 to detect one or more user inputs or interactions from one of the one or more input devices 532 and to translate the detected inputs or interactions.
In some embodiments, the locking device for the virtual object in the virtual scene provided by the embodiments of the present application may be implemented in software, and fig. 2 illustrates a locking device 555 for the virtual object in the virtual scene stored in the memory 550, which may be software in the form of programs and plug-ins, and includes the following software modules: an object display module 5551, a mode control module 5552 and an object lock module 5553, which are logical and thus can be arbitrarily combined or further divided according to the implemented functions, and the functions of the respective modules will be described below.
In some embodiments, the electronic device may implement the locking method for the virtual object in the virtual scene provided by the embodiments of the present application by running a computer program, for example, the computer program may be a native program or a software module in an operating system; may be a local (Native) Application program (APP), i.e. a program that needs to be installed in an operating system to run, such as a game APP; or may be an applet, i.e. a program that can be run only by downloading it to the browser environment; but also a game applet that can be embedded in any APP. In general, the computer programs described above may be any form of application, module or plug-in.
Next, a method for locking a virtual object in a virtual scene provided in the embodiment of the present application is described, where in actual implementation, the method may be implemented by a server or a terminal alone, or may be implemented by a server and a terminal in cooperation. Referring to fig. 3, fig. 3 is a schematic flowchart of a method for locking a virtual object in a virtual scene according to an embodiment of the present application, and the steps shown in fig. 3 will be described.
Step 101: the terminal presents at least two types of interactive objects comprising a first type in the virtual scene, and displays a locking control for locking the interactive objects in the first type.
The method includes the steps that a client supporting a virtual scene is installed on a terminal, when a user opens the client on the terminal and the terminal runs the client, the terminal presents an interface of the virtual scene obtained by observing the virtual scene from a target object view angle, wherein the target object is a virtual object in the virtual scene corresponding to a current user account, and a user (also called a player) can control the target object to interact with an interactive object based on the interface of the virtual scene, for example, the target object is controlled to have a virtual shooting property (such as a virtual sniping gun, a virtual submachine gun, a virtual shotgun and the like) to shoot the interactive object.
The interactive objects are virtual objects in a virtual scene corresponding to other user accounts different from the current user account, and can be in an enemy relationship with the target object, the types of the interactive objects can be various, the interactive capabilities of the interactive objects of different types can be the same or different, and when the interactive capabilities of the interactive objects of different types are different, the attacks or damages caused to the target object in the interaction between the interactive objects and the target object in the virtual scene are different.
The locking control is used for locking the interactive object in the virtual scene and assisting the target object to interact with the interactive object in the locking state so as to improve the interactive capability of the target object.
Step 102: and in response to a selection instruction of a first locking mode triggered based on the locking control, controlling the locking mode of the virtual scene to be the first locking mode, and switching the display style of the locking control from the first style to a second style corresponding to the first type.
For example, the locking mode corresponding to the first type of interactive object is a first locking mode, and the locking mode corresponding to the second type of interactive object is a second locking mode, when the locking mode of the virtual scene is set to the first locking mode, only the first type of interactive object can be locked, but not the second type of interactive object, and similarly, when the locking mode of the virtual scene is set to the second locking mode, only the second type of interactive object can be locked, but not the first type of interactive object. In order to distinguish different locking modes, the locking controls in different locking modes can be displayed in different display styles (e.g., different colors, shapes, sizes, etc.).
In some embodiments, the terminal may display a lock control for locking the interactive object in a first pattern by: presenting a locking control for locking the interactive object, and presenting a default graphic identifier on the locking control; correspondingly, after the first locking mode is selected, the terminal can switch the display style of the locking control from the first style to a second style corresponding to the first style in the following way: and switching the graphic identification presented on the locking control from the default graphic identification to the graphic identification corresponding to the interactive object of the first type.
Referring to fig. 4, fig. 4 is a display schematic diagram of a locking control provided in the embodiment of the present application, before a locking mode is set, a graphical identifier presented on the locking control is a default graphical identifier 1, and after the locking mode of a virtual scene is set to a first locking mode, since the first locking mode corresponds to an interactive object of a first type, the graphical identifier presented on the locking control is switched from the default graphical identifier 1 to a graphical identifier 2 corresponding to the interactive object of the first type.
It should be noted that the default graphical identifier is a graphical identifier corresponding to the current locking mode of the virtual scene, for example, before the locking mode of the virtual scene is set to the first locking mode, if the locking mode of the virtual scene is the second locking mode, and the second locking mode corresponds to the second type of interactive object, the default graphical identifier is a graphical identifier of the second type of interactive object. For another example, before the locking mode of the virtual scene is set to the first locking mode, if the locking mode of the virtual scene is a default free locking mode, where the free locking mode is a mode in which all types of interactive objects in the virtual scene are randomly locked, the default graphical identifier is a graphical identifier indicating free locking, and at this time, the graphical identifier presented on the locking control is not a graphical identifier of any interactive object.
In some embodiments, after the terminal displays the locking control for locking the interactive object in the first pattern, when the locking control is in an inactivated state, in the process of displaying the locking control, the terminal may further present cooling progress indication information corresponding to the locking control; correspondingly, the terminal can respond to a selection instruction of the first locking mode triggered based on the locking control in the following way, and control the locking mode of the virtual scene to be the first locking mode: when the cooling progress indication information indicates that the locking control is in the activated state, responding to a selection instruction of a first locking mode triggered based on the locking control in the activated state, and controlling the locking mode of the virtual scene to be the first locking mode.
The cooling progress indicating information is used for indicating the cooling time or the energy recovery progress corresponding to the locking control switched from the inactivated state to the activated state; the cooling progress indication information can be presented before the user triggers the locking control, at this time, the player can accurately master the trigger time for the locking control based on the cooling progress of the locking control indicated by the cooling progress indication information, and if the player urgently needs to lock the interactive object and the locking control is in an inactivated state, the player can immediately trigger the locking control once the cooling progress indication information indicates that the cooling is finished so as to quickly realize the setting of the locking mode and the locking of the interactive object; the cooling progress indicating information can be displayed after the user triggers the locking control, the locking control is found to be in an inactivated state after the locking control is triggered, at the moment, the player can accurately master the selection opportunity for the locking mode based on the cooling progress of the locking control indicated by the cooling progress indicating information, and if the player urgently needs to lock the interactive object, once the cooling progress indicating information indicates that the cooling is finished, the player can immediately select the locking mode to quickly realize the locking of the interactive object of the corresponding type.
In some embodiments, before controlling the locking mode of the virtual scene to be the first locking mode, the terminal may receive a selection instruction of the first locking mode by: in response to a first triggering operation of a locking control for a first style, presenting locking mode options corresponding to at least two locking modes; receiving a selection instruction of a first locking mode in response to a selection operation for the first locking mode of the at least two locking modes based on the locking mode option; correspondingly, before the interactive object of the first type is locked, the terminal may receive the locking instruction by: in response to a second trigger operation of the lock control for the second style, a lock instruction is received.
The second trigger operation is different from the first trigger operation, for example, the first trigger operation is a single-click operation, the second trigger operation is a double-click operation, and for example, the first trigger operation is a long-press operation, the second trigger operation is a single-click operation, and so on. In practical applications, the lock mode option may be presented in a pop-up window form, or may be presented through a sub-interface independent of the virtual scene interface.
Referring to fig. 5, fig. 5 is a schematic diagram of lock mode selection provided in this embodiment of the present application, when a user presses a lock control 501 for a long time, a terminal presents a plurality of lock mode options of selectable lock modes, such as a first lock mode 502, a second lock mode 503, and a third lock mode 504, in response to the long press operation, when the user selects the first lock mode 502, the terminal receives a selection instruction of the first lock mode in response to the selection operation, and sets the lock mode of a virtual scene to the first lock mode; at this time, the display style of the locking control is switched from the first style to the second style, and when the user clicks the locking control of the second style, the terminal responds to the clicking operation, and the interactive object of the first type can be locked.
In some embodiments, before controlling the locking mode of the virtual scene to be the first locking mode, the terminal may receive a selection instruction of the first locking mode by: presenting at least two concentric rings taking the locking control as a circle center in response to the triggering operation of the locking control of the first style, wherein each ring corresponds to one locking mode; and responding to the dragging operation aiming at the locking control, synchronously moving the locking control, and receiving a selection instruction of the first locking mode when the dragging operation is released when the locking control is in a circular ring corresponding to the first locking mode.
Referring to fig. 6, fig. 6 is a schematic diagram illustrating a lock mode selection provided in the embodiment of the present application, when a user presses a lock control 601 for a long time, a terminal presents a plurality of concentric rings in response to the long press operation, where a circle center of each ring is a position of the lock control, a first ring corresponds to a first lock mode 602, a second ring corresponds to a second lock mode 603, and a third ring corresponds to a third lock mode 604, and when the user drags the lock control to release the lock control into the first ring, the terminal receives a selection instruction of the first lock mode, and sets a lock mode of a virtual scene to the first lock mode.
In some embodiments, before controlling the locking mode of the virtual scene to be the first locking mode, the terminal may further present locking mode setting indication information, where the locking mode setting indication information is used to indicate an interaction success rate for setting a target object corresponding to the first locking mode; when the locking mode setting indication information indicates that the interaction success rate exceeds the probability threshold, a selection instruction of the first locking mode is received in response to a selection operation for the first locking mode triggered based on the locking control.
In practical application, because the interaction success rate of the target object and the interactive objects is related to the types, the number and the like of the interactive objects, if a certain type of interactive object causing the greatest threat to the target object is locked in the interaction process, the interaction capability of the target object is greatly improved, and the target object is favorable for being successful in the interaction process.
Referring to fig. 7, fig. 7 is a schematic display diagram of locking mode setting indication information provided in this embodiment of the application, before a user triggers a locking control, the locking mode setting indication information 701 is presented, for example, "the first locking mode helps you to have an interaction success rate of xx%", when the locking mode setting indication information 701 indicates that the interaction success rate of setting a target object corresponding to the first locking mode reaches a probability threshold, the user may trigger the locking control, the terminal responds to the trigger operation, presents selectable mode options including the first locking mode, and when the user selects the first locking mode, the terminal receives a selection instruction of the first locking mode, and sets the locking mode of a virtual scene to the first locking mode.
Step 103: and locking the interactive object of the first type in response to a locking instruction triggered by the locking control based on the second style so as to assist the target object to interact with the interactive object in the locking state.
After the locking mode of the virtual scene is set to the first locking mode, when a user triggers the locking control, the first type of interactive object can be locked to assist the target object to interact with the first type of interactive object in the locking state.
In some embodiments, after the display style of the locking control is switched from the first style to the second style corresponding to the first style, locking opportunity indication information for the interactive object can be further presented; and the locking opportunity indication information is used for indicating that the interactive object is at an interactive position which is favorable for the target object to execute interactive operation.
Here, after the locking mode of the virtual scene is set to the first locking mode, the locking opportunity indication information for the user to refer to when the locking instruction is triggered is presented, when the locking opportunity indication information indicates that the interactive object of the first type is at an interactive position most favorable for the target object to perform the interactive operation, the user may perform the triggering operation for the locking control of the second type, the terminal receives the locking instruction of the interactive object of the first type in response to the triggering operation, and locks the interactive object of the first type, so that the player triggers the locking instruction in a situation more suitable for locking the interactive object based on the locking opportunity indication information, and the interaction success rate of the target object and the interactive object in the locking state can be improved.
In some embodiments, when the number of the interactive objects of the first type is at least two, the terminal may lock the interactive objects of the first type in response to a lock instruction triggered by the lock control based on the second style by: locking a target interactive object in the at least two interactive objects of the first type in response to a locking instruction triggered by a locking control based on the second style; and the distance between the target interactive object and the target object meets a preset distance condition, or the attribute value of the target interactive object is lower than the target attribute value.
Here, when a plurality of interactive objects of the first type are provided, the terminal responds to a trigger operation for the locking control, respectively obtains distances between the interactive objects and the target object, and selects an interactive object satisfying a preset distance condition (such as a minimum distance) from the distances to lock; or, the attribute values (such as energy value, blood value, life value, etc.) of each interactive object are respectively obtained, and the interactive object with the attribute value lower than the target attribute value (with the minimum attribute value) is selected from the acquired attribute values for locking. Namely, the locked target interactive object is obtained by the terminal through automatic screening from a plurality of interactive objects of the first type in response to the locking instruction, and the locking speed is improved.
In some embodiments, when the number of the interactive objects of the first type is at least two, the terminal may lock the interactive objects of the first type in response to a lock instruction triggered by the lock control based on the second style by: controlling at least two interactive objects of the first type to be in a candidate state in response to a locking instruction triggered by a locking control based on the second style; and locking the target interactive object of the first type in response to the selection operation of the target interactive object in the at least two interactive objects in the candidate state.
Here, when a plurality of interactive objects of the first type are provided, the terminal controls at least two interactive objects of the first type to be in a candidate state in response to a trigger operation for the locking control, and the user can select a locking target interactive object from the plurality of interactive objects in the candidate state to lock; therefore, the locked target interactive objects are obtained by screening the first type of the multiple interactive objects by the user, and the user can manually select the target interactive objects according to the actual situation, so that the applicability of the locked target is improved.
In some embodiments, the terminal may present a switch control for switching the target interactive object; in the process of locking the target interactive object, responding to the trigger operation aiming at the switching control, and switching the target interactive object to be locked into other interactive objects; and the other interactive objects are interactive objects which are different from the target interactive object and correspond to the at least two interactive objects of the first type.
Here, in the process of locking the target interactive object, when the locking target is switched in the same locking mode, the other interactive objects to be switched and locked are interactive objects that are selected by the terminal from the multiple interactive objects of the first type and meet the preset condition except the target interactive object, for example, when the target interactive object is the interactive object closest to the target object, the locking target interactive object is switched to the interactive object that is next closest to the target object; or when the target interactive object is the interactive object with the lowest attribute value, the locked target interactive object is switched to the interactive object with the next-lowest or highest locked attribute value, and the like, so that a user can switch the locked target in real time according to the interactive condition in the process of locking the target interactive object, and the switching speed is improved.
In some embodiments, in the process of locking a target interactive object, a terminal controls at least two interactive objects corresponding to a first type to be in a candidate state in response to a switching instruction for the target interactive object; and switching the locking target interactive object to lock other interactive objects in response to the selection operation of other interactive objects in the at least two interactive objects in the candidate state.
In the process of locking the target interactive object, when the target is switched in the same locking mode, other interactive objects to be switched and locked are manually selected by a user according to actual conditions, wherein a switching instruction can be triggered by a switching control, for example, the switching control for switching the target interactive object is presented, and the switching instruction is received in response to the triggering operation for the switching control; the switching instruction can also be triggered by long-press operation aiming at the interface of the virtual scene or the long-press operation aiming at other interactive objects different from the target interactive object in the first type of interactive objects; the terminal responds to the switching instruction, at least two interactive objects corresponding to the first type are controlled to be in a candidate state, and a user can select and lock other interactive objects from a plurality of interactive objects in the candidate state to perform switching locking; therefore, the other interaction objects locked by switching are obtained by screening the interaction objects of the first type by the user, and the user can manually select the other interaction objects according to the actual situation, so that the applicability of the switching target is improved.
In some embodiments, in the process of locking the target interactive object, the terminal may also present target-locking switching indication information according to interaction conditions of other interactive objects of the first type, for example, in the case of locking the target interactive object, if threat of the target interactive object to the target object is removed, or threat of other interactive objects to the target object is gradually strengthened, present prompt information indicating to switch the target-locking interactive object to locking other interactive objects, which is favorable for improving interaction capability and interaction success rate of the target object.
In some embodiments, when the number of the interactive objects of the first type is at least two, the terminal may lock the interactive objects of the first type in response to a lock instruction triggered by the lock control based on the second style by: and in response to a locking instruction triggered by the locking control based on the second style, locking each interactive object corresponding to the first type by one key.
Here, after the locking mode of the virtual scene is set to the first locking mode, when there are a plurality of interactive objects of the first type, the terminal may lock all the interactive objects of the first type by one key in response to the locking instruction, thereby improving the locking efficiency.
In some embodiments, after the terminal locks the interactive object of the first type, the switching of the locking mode may be implemented by: in the process of locking the interactive objects of the first type, presenting at least two selectable locking mode options of the locking mode in response to a third triggering operation of the locking control aiming at the second style; based on the locking mode option, in response to a selection operation for a second locking mode of the at least two locking modes, controlling the locking mode of the virtual scene to be switched from the first locking mode to the second locking mode, and switching the display style of the locking control from the second style to a third style corresponding to the second type of interactive object; and the second locking mode is used for indicating that the interactive object of the second type in the at least two types of interactive objects is locked.
The third trigger operation is different from the second trigger operation, the second trigger operation is an operation capable of triggering a lock instruction, the third trigger operation is an operation capable of triggering a lock mode switching instruction, the second trigger operation corresponding to the lock instruction and the third trigger operation corresponding to the lock mode switching instruction may be preset, and when the user performs a corresponding trigger operation with respect to the lock instruction of the second style, the instruction corresponding to the trigger operation of the user is triggered.
For example, when the user performs a third trigger operation with respect to the lock instruction of the second style, the terminal presents a plurality of selectable lock mode options, such as a second lock mode, a third lock mode, and a free lock mode, in response to the third trigger operation, and when the user selects the second lock mode, the terminal controls the lock mode of the virtual scene to be switched from the first lock mode to the second lock mode, at which time, the display style of the lock control is switched from the second style corresponding to the first lock mode to the third style corresponding to the second lock mode, such as switching the graphic identifier presented on the lock control from the graphic identifier 2 corresponding to the interactive object of the first type to the graphic identifier 3 corresponding to the interactive object of the second type. When the user executes a fourth trigger operation (different from the third trigger operation) on the locking control of the third style, the terminal locks the interactive object of the second type in response to the fourth trigger operation.
In some embodiments, after the terminal locks the interactive object of the first type, the switching of the locking mode may be implemented by: displaying an interactive picture of a target object and a first type of interactive object in a locked state; in the process of interacting the target object and the interactive objects of the first type, when the interaction of the interactive objects of the first type fails, the locking mode of the virtual scene is controlled to be switched from the first locking mode to other locking modes.
Here, when the interaction of the first type of the locked interaction object fails, for example, the life value of the interaction object returns to zero and dies, the locking mode of the virtual scene is automatically controlled to be switched to another locking mode, for example, to be switched to the second locking mode to lock the second type of interaction object, or to be switched to the free locking mode to lock any type of interaction object satisfying the locking condition in the virtual scene.
In some embodiments, after the interactive object of the first type is locked, the terminal may further display a screen on which the target object interacts with the interactive object of the first type in the locked state; in the process that a target object interacts with an interactive object of a first type in a locked state, presenting locking mode switching indication information in response to the interactive operation of other types of interactive objects different from the first type; and the locking mode switching indication information is used for indicating the interaction gain brought by locking the interactive object of the first type and switching to locking the interactive objects of other types.
Here, in the process of locking the first type of interaction object, the terminal may also present indication information indicating switching of the locking mode according to an interaction condition of the first type of interaction object or an interaction condition of another type of interaction object other than the first type, for example, in the case of locking the first type of interaction object, a threat of the first type of interaction object to the target object is released, or a threat of another type of interaction object to the target object is gradually strengthened.
Referring to fig. 8, fig. 8 is a schematic display diagram of locking mode switching indication information provided in this embodiment of the application, and the locking mode switching indication information 801 is presented, for example, "interactive objects of a second type are threatening your seriously, please switch the locking mode", where the locking mode switching indication information 801 is used to indicate that the locking mode of a virtual scene is switched from a first locking mode to a second locking mode corresponding to an interactive object of the second type, and the interactive object of the first type is switched to be locked to an interactive object of the second type that is more threatening according to 801, so that more positive gains can be brought to a target object, and the interactive capability and the interactive success rate of the target object are improved.
In some embodiments, after the interactive object of the first type is locked, the terminal may further display a screen on which the target object interacts with the interactive object of the first type in the locked state; in the process that the target object interacts with the interactive object of the first type in the locking state, when the interactive object in the locking state moves in the virtual scene, the target object is controlled to move synchronously along with the interactive object.
Here, under the condition that the interactive object of the first type is locked, in the process of interacting the target object and the interactive object of the first type in the locked state, if the interactive object of the first type in the locked state moves in the virtual scene, the target object is controlled to move synchronously, which is beneficial to improving the interactive capability and the interactive success rate of the target object.
In some embodiments, after the interactive object of the first type is locked, the terminal may further control the target object to perform an interactive operation for the interactive object of the first type in the locked state; and when the interactive operation successfully acts on the interactive object, presenting effect enhancement prompt information, wherein the effect enhancement prompt information is used for prompting that the action effect corresponding to the interactive operation is improved.
For example, in the process that the target object interacts with the interactive object of the first type in the locked state, the target object is controlled to project the virtual prop in the virtual scene, where the projecting may include throwing or launching, for example, the target object is controlled to project the first virtual prop in the virtual scene, or the target object is controlled to launch the sub-virtual prop through the second virtual prop in the virtual scene, and when the projected virtual prop acts on or passes through the interactive object of the first type, a gain effect such as an attack force promotion may be obtained.
Next, an exemplary application of the embodiment of the present application in a practical application scenario will be described. Taking a virtual scene as an example of a mobile game, if a player encounters different types of interactive objects, such as monsters and enemy players, in a battle, the manner of locking the interactive objects in the related art is as follows: and the player clicks the locking control to automatically lock the interactive object closest to the player, so that the interactive object of a certain type cannot be locked in a targeted manner.
Therefore, the embodiment of the application provides a method for locking a virtual object, which can pertinently lock an interactive object of a specific type, and improve the interaction efficiency.
Referring to fig. 9, fig. 9 is a schematic diagram of the locking mode selection provided by the embodiment of the present application, during a mobile phone game, when the battle is entered, a plurality of types of interactive objects (virtual objects corresponding to other user accounts) interacting with the target object (virtual object corresponding to the current user account) exist in the game, such as a monster (first type) and an opposing player (second type), if the user long-presses the lock control, the terminal, in response to the long-press operation, presents a plurality of selectable lock modes, such as a free-lock mode, a monster-lock mode, a player-lock mode, wherein, the locking mode of the game is defaulted to a free locking mode, when a user drags the locking control to the corresponding ring of the 'monster locking mode' and releases the locking control, setting the locking mode of the game to be a monster locking mode, and meanwhile updating the graphical identification on the locking control; when the user clicks the locking control for updating the graphical identification, the terminal responds to the clicking operation to lock the monster in the game, and when the monster disappears, the locking mode of the game is returned to the free locking mode.
Referring to fig. 10, fig. 10 is a schematic flowchart of a method for locking a virtual object according to an embodiment of the present application, where the method includes:
step 201: the terminal presents at least two types of interactive objects in the game and displays a locking control for locking the interactive objects in a first mode.
Step 202: and responding to the long press operation aiming at the locking control, presenting a plurality of concentric rings taking the locking control as a circle center, wherein each ring corresponds to one locking mode.
Here, the terminal responds to the long press operation, and presents a plurality of selectable locking modes, such as presenting a plurality of concentric rings with the locking control as a center, each ring corresponding to one locking mode, such as three rings corresponding to each other in sequence from inside to outside in fig. 8: a free-lock mode, a monster-lock mode, a player-lock mode, wherein the innermost free-lock mode is the game default lock mode.
Step 203: and responding to the dragging operation aiming at the locking control, synchronously moving the locking control, and receiving a selection instruction aiming at the monster locking mode when the dragging operation is released in the circular ring corresponding to the locking control in the monster locking mode.
Here, the user may adjust the different locking modes by dragging the locking control, such as when the user drags the locking control into a circle corresponding to the "monster locking mode" and releases, receiving a selection instruction for the monster locking mode.
Step 204: in response to a selection instruction for the monster lock mode, the lock mode of the game is set to the monster lock mode and the lock control is displayed in a second style.
Here, the terminal switches the lock mode of the game from the default free lock mode to the monster lock mode in response to a selection instruction for the monster mode, and at the same time, switches the default graphic identification (corresponding to the free lock mode) displayed on the lock control to the graphic identification of the monster (corresponding to the monster lock mode).
Step 205: and locking monsters in the game in response to clicking operation of the locking control displayed for the second style.
Here, when the user clicks a lock control displayed as a monster graphic logo, the terminal locks a monster in the game in response to the click operation, and when the monster disappears, the locked mode of the game is returned to the free-lock mode.
By the mode, when the player has various different types of interactive objects in the game process, the target type of interactive objects can be quickly and pertinently locked, the requirement of the player for quick combat is met, the operation is quick and convenient, the times of operating the terminal by the user for achieving a certain interaction purpose can be greatly reduced, the man-machine interaction efficiency is improved, the computing resource consumption is saved, and the user experience is improved.
Continuing with the exemplary structure of the virtual object locking device 555 provided by the embodiments of the present application as a software module, in some embodiments, the software module stored in the virtual object locking device 555 in the memory 550 in fig. 2 may include:
an object display module 5551, configured to present at least two types of interactive objects including a first type in a virtual scene, and display a locking control for locking the interactive objects in a first manner;
a mode control module 5552, configured to control the locking mode of the virtual scene to be the first locking mode in response to a selection instruction of the first locking mode triggered based on the locking control, and control the virtual scene to be the first locking mode
Switching the display style of the locking control from the first style to a second style corresponding to the first style;
the first locking mode is used for indicating that the interactive object of the first type in the at least two types of interactive objects is locked;
an object locking module 5553, configured to lock the interactive object of the first type in response to a lock instruction triggered by the lock control based on the second style, so as to assist a target object to interact with the interactive object in a locked state.
In some embodiments, before the controlling the locking mode of the virtual scene to be the first locking mode, the apparatus further includes:
a selection instruction receiving module, configured to present lock mode options corresponding to at least two lock modes in response to a first trigger operation of the lock control for the first style;
receiving a selection instruction of a first locking mode in response to a selection operation for the first locking mode of the at least two locking modes based on the locking mode option;
before the locking the interactive object of the first type, the apparatus further comprises:
and the locking instruction receiving module is used for receiving the locking instruction in response to a second trigger operation aiming at the locking control of the second style.
In some embodiments, before the controlling of the locking mode of the virtual scene to be the first locking mode, the selection instruction receiving module is further configured to, in response to a triggering operation of a locking control for the first mode, present at least two concentric rings centered around the locking control, where each of the rings corresponds to one locking mode;
and responding to the dragging operation aiming at the locking control, synchronously moving the locking control, and receiving a selection instruction of the first locking mode when the dragging operation is released when the locking control is in a circular ring corresponding to the first locking mode.
In some embodiments, when the number of the interactive objects of the first type is at least two, the object locking module is further configured to lock a target interactive object of the at least two interactive objects of the first type in response to a locking instruction triggered by a locking control based on the second style;
and the distance between the target interactive object and the target object meets a preset distance condition, or the attribute value of the target interactive object is lower than the target attribute value.
In some embodiments, when the number of the interactive objects of the first type is at least two, the object locking module is further configured to control the at least two interactive objects of the first type to be in a candidate state in response to a locking instruction triggered by a locking control based on the second style;
locking the target interactive object of the first type in response to a selection operation for a target interactive object of the at least two interactive objects in the candidate state.
In some embodiments, the apparatus further comprises:
the locking switching module is used for presenting a switching control for switching the target interactive object;
in the process of locking the target interactive object, responding to the trigger operation aiming at the switching control, and switching the target interactive object to be locked into other interactive objects;
wherein the other interactive objects are interactive objects different from the target interactive object in the at least two interactive objects corresponding to the first type.
In some embodiments, the locking switching module is further configured to, in the process of locking the target interactive object, control at least two interactive objects corresponding to the first type to be in a candidate state in response to a switching instruction for the target interactive object;
and responding to the selection operation of other interactive objects in the at least two interactive objects in the candidate state, and switching to lock the target interactive object to lock the other interactive objects.
In some embodiments, when the number of the interactive objects of the first type is at least two, the object locking module is further configured to lock each of the interactive objects of the first type by one key in response to a lock instruction triggered by a lock control based on the second style.
In some embodiments, after said locking said first type of interactive object, said apparatus further comprises: a locking mode switching module, configured to, in the process of locking the first type of interactive object, present locking mode options of at least two locking modes available for selection in response to a third trigger operation for the locking control of the second style;
based on the locking mode option, in response to a selection operation for a second locking mode of the at least two locking modes, controlling the locking mode of the virtual scene to be switched from the first locking mode to the second locking mode, and switching the display style of the locking control from the second style to a third style corresponding to a second type of interactive object;
the second locking mode is used for indicating that the interactive object of the second type in the at least two types of interactive objects is locked.
In some embodiments, after the first type of interactive object is locked, the locked mode switching module is further configured to display an interactive screen of the target object and the first type of interactive object in a locked state;
and in the process of interacting the target object and the interactive object of the first type, when the interaction of the interactive object of the first type fails, controlling the locking mode of the virtual scene to be switched from the first locking mode to other locking modes.
In some embodiments, the object display module is configured to present a locking control for locking the interactive object, and present a default graphical identifier on the locking control;
the mode control module is further configured to switch the graphic identifier presented on the locking control from the default graphic identifier to the graphic identifier corresponding to the interactive object of the first type.
In some embodiments, after displaying the lock control for locking the interactive object in the first pattern, the apparatus further comprises:
the first indication information module is used for presenting cooling progress indication information corresponding to the locking control in the process of displaying the locking control when the locking control is in an inactivated state;
the cooling progress indicating information is used for indicating the cooling time or the energy recovery progress corresponding to the locking control switched from the inactivated state to the activated state;
the mode control module is further configured to, when the cooling progress indication information indicates that the locking control is in an activated state, respond to a selection instruction of a first locking mode triggered based on the locking control in the activated state, and control the locking mode of the virtual scene to be the first locking mode.
In some embodiments, before the controlling the locking mode of the virtual scene to be the first locking mode, the apparatus further includes:
the second indication information module is used for presenting locking mode setting indication information, and the locking mode setting indication information is used for indicating the interaction success rate of the first locking mode corresponding to the target object;
when the locking mode setting indication information indicates that the interaction success rate exceeds a probability threshold, a selection instruction of the first locking mode is received in response to a selection operation for the first locking mode triggered based on the locking control.
In some embodiments, after the switching from the first pattern to the second pattern corresponding to the first type, the apparatus further comprises:
a third indication information module for presenting locking opportunity indication information for the interactive object;
the locking opportunity indication information is used for indicating that the interactive object is in an interactive position which is favorable for the target object to execute interactive operation.
In some embodiments, after said locking said first type of interactive object, said apparatus further comprises:
the fourth indication information module is used for displaying a picture of interaction between the target object and the interaction object of the first type in the locked state;
in the process that the target object interacts with the interactive object of the first type in the locking state, presenting locking mode switching indication information in response to the interactive operation of other types of interactive objects different from the first type;
and the locking mode switching indication information is used for indicating the interaction gain brought by locking the interactive object of the first type and switching to locking the interactive objects of other types.
In some embodiments, after said locking said first type of interactive object, said apparatus further comprises:
the object control module is used for displaying a picture of the interaction between the target object and the interactive object of the first type in the locked state;
in the process that the target object interacts with the interactive object of the first type in the locked state, when the interactive object in the locked state moves in the virtual scene, the target object is controlled to move synchronously along with the interactive object.
In some embodiments, after said locking said first type of interactive object, said apparatus further comprises:
a fifth indication information module, configured to control the target object to perform an interactive operation on the interactive object of the first type in a locked state;
and when the interactive operation successfully acts on the interactive object, presenting effect enhancement prompt information, wherein the effect enhancement prompt information is used for prompting that the action effect corresponding to the interactive operation is improved.
Embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the locking method of the virtual object according to the embodiment of the present application.
Embodiments of the present application provide a computer-readable storage medium storing executable instructions, which when executed by a processor, cause the processor to perform a locking method of a virtual object provided by embodiments of the present application, for example, the method shown in fig. 3.
In some embodiments, the computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
In some embodiments, executable instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of programs, software modules, scripts or code, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, executable instructions may correspond, but do not necessarily have to correspond, to files in a file system, and may be stored in a portion of a file that holds other programs or data, such as in one or more scripts in a hypertext Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
By way of example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
The above description is only an example of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims (21)

1. A method for locking a virtual object, the method comprising:
presenting at least two types of interactive objects comprising a first type in a virtual scene, and displaying a locking control for locking the interactive objects in a first mode;
in response to a selection instruction of a first locking mode triggered based on the locking control, controlling the locking mode of the virtual scene to be the first locking mode, and
switching the display style of the locking control from the first style to a second style corresponding to the first style;
the first locking mode is used for indicating that the interactive object of the first type in the at least two types of interactive objects is locked;
and locking the interactive object of the first type in response to a locking instruction triggered by a locking control based on the second style so as to assist a target object to interact with the interactive object in a locked state.
2. The method of claim 1, wherein prior to said controlling the lock mode of the virtual scene to be the first lock mode, the method further comprises:
in response to a first triggering operation of a lock control for the first style, presenting lock mode options corresponding to at least two lock modes;
receiving a selection instruction of a first locking mode in response to a selection operation for the first locking mode of the at least two locking modes based on the locking mode option;
before the locking the interactive object of the first type, the method further comprises:
receiving the locking instruction in response to a second triggering operation of a locking control for the second style.
3. The method of claim 1, wherein prior to said controlling the lock mode of the virtual scene to be the first lock mode, the method further comprises:
presenting at least two concentric rings taking the locking control as a circle center in response to a triggering operation of the locking control in the first style, wherein each ring corresponds to one locking mode;
and responding to the dragging operation aiming at the locking control, synchronously moving the locking control, and receiving a selection instruction of the first locking mode when the dragging operation is released when the locking control is in a circular ring corresponding to the first locking mode.
4. The method of claim 1, wherein when the number of interactive objects of the first type is at least two, said locking the interactive objects of the first type in response to a lock instruction triggered based on the lock control of the second style comprises:
locking a target interactive object in the at least two interactive objects of the first type in response to a locking instruction triggered by a locking control based on the second style;
and the distance between the target interactive object and the target object meets a preset distance condition, or the attribute value of the target interactive object is lower than the target attribute value.
5. The method of claim 1, wherein when the number of interactive objects of the first type is at least two, said locking the interactive objects of the first type in response to a lock instruction triggered based on the lock control of the second style comprises:
controlling at least two interactive objects of the first type to be in a candidate state in response to a locking instruction triggered by a locking control based on the second style;
locking the target interactive object of the first type in response to a selection operation for a target interactive object of the at least two interactive objects in the candidate state.
6. The method of any of claims 4 or 5, further comprising:
presenting a switching control for switching the target interactive object;
in the process of locking the target interactive object, responding to the trigger operation aiming at the switching control, and switching the target interactive object to be locked into other interactive objects;
wherein the other interactive objects are interactive objects different from the target interactive object in the at least two interactive objects corresponding to the first type.
7. The method of any of claims 4 or 5, further comprising:
in the process of locking the target interactive object, at least two interactive objects corresponding to the first type are controlled to be in a candidate state in response to a switching instruction aiming at the target interactive object;
and responding to the selection operation of other interactive objects in the at least two interactive objects in the candidate state, and switching to lock the target interactive object to lock the other interactive objects.
8. The method of claim 1, wherein when the number of interactive objects of the first type is at least two, said locking the interactive objects of the first type in response to a lock instruction triggered based on the lock control of the second style comprises:
and in response to a locking instruction triggered by a locking control based on the second style, locking each interactive object corresponding to the first type by one key.
9. The method of claim 1, wherein after said locking the interactive object of the first type, the method further comprises:
in response to a third triggering operation of the lock control for the second style, presenting lock mode options of at least two lock modes available for selection in locking the interactive objects of the first type;
based on the locking mode option, in response to a selection operation for a second locking mode of the at least two locking modes, controlling the locking mode of the virtual scene to be switched from the first locking mode to the second locking mode, and
switching the display style of the locking control from the second style to a third style corresponding to the second type of interactive object;
the second locking mode is used for indicating that the interactive object of the second type in the at least two types of interactive objects is locked.
10. The method of claim 1, wherein after said locking the interactive object of the first type, the method further comprises:
displaying an interaction picture of the target object and the first type of interaction object in a locked state;
and in the process of interacting the target object and the interactive object of the first type, when the interaction of the interactive object of the first type fails, controlling the locking mode of the virtual scene to be switched from the first locking mode to other locking modes.
11. The method of claim 1, wherein displaying a locking control for locking the interactive object in a first pattern comprises:
presenting a locking control used for locking the interactive object, and presenting a default graphic identifier on the locking control;
the switching the display style of the locking control from the first style to a second style corresponding to the first style comprises:
and switching the graphic identifier presented on the locking control from the default graphic identifier to the graphic identifier corresponding to the interactive object of the first type.
12. The method of claim 1, wherein after displaying a lock control for locking the interactive object in the first pattern, the method further comprises:
when the locking control is in an inactivated state, displaying cooling progress indication information corresponding to the locking control in the process of displaying the locking control;
the cooling progress indicating information is used for indicating the cooling time or the energy recovery progress corresponding to the locking control switched from the inactivated state to the activated state;
the controlling the locking mode of the virtual scene to be the first locking mode in response to the selection instruction of the first locking mode triggered based on the locking control comprises:
when the cooling progress indication information indicates that the locking control is in an activated state, responding to a selection instruction of a first locking mode triggered based on the locking control in the activated state, and controlling the locking mode of the virtual scene to be the first locking mode.
13. The method of claim 1, wherein prior to said controlling the lock mode of the virtual scene to be the first lock mode, the method further comprises:
presenting locking mode setting indication information, wherein the locking mode setting indication information is used for indicating the interaction success rate of setting the first locking mode corresponding to the target object;
when the locking mode setting indication information indicates that the interaction success rate exceeds a probability threshold, a selection instruction of the first locking mode is received in response to a selection operation for the first locking mode triggered based on the locking control.
14. The method of claim 1, wherein after switching the display style of the lock control from the first style to a second style corresponding to the first type, the method further comprises:
presenting lock opportunity indication information for the interactive object;
the locking opportunity indication information is used for indicating that the interactive object is in an interactive position which is favorable for the target object to execute interactive operation.
15. The method of claim 1, wherein after said locking the interactive object of the first type, the method further comprises:
displaying a picture of the target object interacting with the interaction object of the first type in the locked state;
in the process that the target object interacts with the interactive object of the first type in the locking state, presenting locking mode switching indication information in response to the interactive operation of other types of interactive objects different from the first type;
and the locking mode switching indication information is used for indicating the interaction gain brought by locking the interactive object of the first type and switching to locking the interactive objects of other types.
16. The method of claim 1, wherein after said locking the interactive object of the first type, the method further comprises:
displaying a picture of the target object interacting with the interaction object of the first type in the locked state;
in the process that the target object interacts with the interactive object of the first type in the locked state, when the interactive object in the locked state moves in the virtual scene, the target object is controlled to move synchronously along with the interactive object.
17. The method of claim 1, wherein after said locking the interactive object of the first type, the method further comprises:
controlling the target object to perform an interactive operation aiming at the interactive object of the first type in a locked state;
and when the interactive operation successfully acts on the interactive object, presenting effect enhancement prompt information, wherein the effect enhancement prompt information is used for prompting that the action effect corresponding to the interactive operation is improved.
18. An apparatus for locking a virtual object, the apparatus comprising:
the object display module is used for presenting at least two types of interactive objects comprising a first type in a virtual scene and displaying a locking control for locking the interactive objects in the first type;
a mode control module, configured to control a locking mode of the virtual scene to be a first locking mode in response to a selection instruction of the first locking mode triggered based on the locking control, and control the mode to be the first locking mode
Switching the display style of the locking control from the first style to a second style corresponding to the first style;
the first locking mode is used for indicating that the interactive object of the first type in the at least two types of interactive objects is locked;
and the object locking module is used for locking the interactive object of the first type in response to a locking instruction triggered by the locking control based on the second style so as to assist the target object to interact with the interactive object in a locked state.
19. An electronic device, comprising:
a memory for storing executable instructions;
a processor, configured to implement the method of locking a virtual object according to any one of claims 1 to 17 when executing executable instructions stored in the memory.
20. A computer-readable storage medium storing executable instructions for implementing a method for locking a virtual object according to any one of claims 1 to 17 when executed by a processor.
21. A computer program product comprising a computer program or instructions, characterized in that the computer program or instructions, when executed by a processor, implement the locking method of a virtual object according to any one of claims 1 to 17.
CN202111137157.5A 2021-09-27 2021-09-27 Virtual object locking method, device, equipment, storage medium and program product Pending CN113769379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111137157.5A CN113769379A (en) 2021-09-27 2021-09-27 Virtual object locking method, device, equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111137157.5A CN113769379A (en) 2021-09-27 2021-09-27 Virtual object locking method, device, equipment, storage medium and program product

Publications (1)

Publication Number Publication Date
CN113769379A true CN113769379A (en) 2021-12-10

Family

ID=78853841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111137157.5A Pending CN113769379A (en) 2021-09-27 2021-09-27 Virtual object locking method, device, equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN113769379A (en)

Similar Documents

Publication Publication Date Title
WO2022057529A1 (en) Information prompting method and apparatus in virtual scene, electronic device, and storage medium
WO2022105474A1 (en) State switching method and apparatus in virtual scene, device, medium, and program product
WO2022105523A1 (en) Virtual object control method and apparatus, and device, storage medium and program product
WO2022105471A1 (en) Position acquisition method and apparatus in virtual scene, device, medium and program product
CN111921198B (en) Control method, device and equipment of virtual prop and computer readable storage medium
CN112691377A (en) Control method and device of virtual role, electronic equipment and storage medium
CN112402959A (en) Virtual object control method, device, equipment and computer readable storage medium
CN113769379A (en) Virtual object locking method, device, equipment, storage medium and program product
CN112138385B (en) Virtual shooting prop aiming method and device, electronic equipment and storage medium
CN113633964A (en) Virtual skill control method, device, equipment and computer readable storage medium
CN112295230B (en) Method, device, equipment and storage medium for activating virtual props in virtual scene
CN112121432B (en) Control method, device and equipment of virtual prop and computer readable storage medium
CN112121434B (en) Interaction method and device of special effect prop, electronic equipment and storage medium
CN113144603A (en) Method, device, equipment and storage medium for switching call objects in virtual scene
CN113440852B (en) Control method, device, equipment and storage medium for virtual skill in virtual scene
CN113633991A (en) Virtual skill control method, device, equipment and computer readable storage medium
CN112057864A (en) Control method, device and equipment of virtual prop and computer readable storage medium
CN112057863A (en) Control method, device and equipment of virtual prop and computer readable storage medium
CN113101667A (en) Virtual object control method, device, equipment and computer readable storage medium
CN113181649A (en) Control method, device, equipment and storage medium for calling object in virtual scene
CN113769392A (en) State processing method and device for virtual scene, electronic equipment and storage medium
CN112156472A (en) Control method, device and equipment of virtual prop and computer readable storage medium
CN112057860A (en) Method, device, equipment and storage medium for activating operation control in virtual scene
CN113457151A (en) Control method, device and equipment of virtual prop and computer readable storage medium
CN112891930A (en) Information display method, device, equipment and storage medium in virtual scene

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