CN112473139A - Object form switching method and device, storage medium and electronic device - Google Patents

Object form switching method and device, storage medium and electronic device Download PDF

Info

Publication number
CN112473139A
CN112473139A CN202011363389.8A CN202011363389A CN112473139A CN 112473139 A CN112473139 A CN 112473139A CN 202011363389 A CN202011363389 A CN 202011363389A CN 112473139 A CN112473139 A CN 112473139A
Authority
CN
China
Prior art keywords
operation object
instruction
detection
switching
virtual scene
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
CN202011363389.8A
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.)
Perfect World Chongqing Interactive Technology Co ltd
Perfect World Co Ltd
Original Assignee
Perfect World Chongqing Interactive Technology 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 Perfect World Chongqing Interactive Technology Co ltd filed Critical Perfect World Chongqing Interactive Technology Co ltd
Priority to CN202011363389.8A priority Critical patent/CN112473139A/en
Publication of CN112473139A publication Critical patent/CN112473139A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/69Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions
    • 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/60Methods for processing data by generating or executing the game program
    • A63F2300/65Methods for processing data by generating or executing the game program for computing the condition of a game character

Abstract

The invention provides a method and a device for switching object forms, a storage medium and an electronic device, wherein the method comprises the following steps: selecting a first object set and a second object set according to scene information of a virtual scene; responding to a hiding instruction aiming at the first operation object, switching the first operation object from a first form to a second form, and adding the first operation object in the second form in the virtual scene; and detecting a detection instruction of the second operation object in the virtual scene, and switching the first operation object from the second form to the third form according to a detection result, wherein the detection instruction is used for detecting whether the detection object is the first operation object. By the method and the device, the flexible switching of the form of the virtual object in the virtual scene is realized, and the personification degree and reality of the virtual scene are improved.

Description

Object form switching method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for switching object forms, a storage medium, and an electronic apparatus.
Background
In the related art, with the development of computer technology and the diversification of terminal functions, more and more virtual scenes can be implemented on devices such as terminals, for example, virtual games including racing games, sandboxes, Role-playing games (RPGs), shooting games, and the like. Among them, MMORPG (massively multiplayer Online Role-playing game) plays a fictional Role in all Role-playing games, a Player controls the game of the Role to complete various tasks, and interacts with NPC (NPC is an abbreviation of Non-Player Character, a type of Role in the game, meaning a Non-Player Role, and refers to a game Role in the game that is not manipulated by the Player) in the game.
In the related art, PCC or NPC appearing in a game scene has a Character form, for example, the Character form of NPC is an avatar set based on a certain Character prototype, dinosaur, a form of a certain animal, and the like, in the related art, a Player selects a Character form of PCC (Player-Controlled Character) and cannot switch, and only can follow system setting, if the Player wants to switch the Character form, the Player needs to reselect PCC or wear skin, and if PCC is not changed or an additional kit is added, the Character form cannot be switched in the game scene in the related art.
In view of the above problems in the related art, no effective solution has been found at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for switching object forms, a storage medium and an electronic device.
According to an embodiment of the present invention, there is provided a method for switching an object modality, including: selecting a first object set and a second object set according to scene information of a virtual scene, wherein the first object set and the second object set respectively comprise a first number of first operation objects and a second number of second operation objects; responding to a hiding instruction aiming at the first operation object, switching the first operation object from a first form to a second form, and adding the first operation object in the second form in the virtual scene; and detecting a detection instruction of the second operation object in the virtual scene, and switching the first operation object from the second form to the third form according to a detection result, wherein the detection instruction is used for detecting whether the detection object is the first operation object.
Optionally, before switching the first operation object from the first form to the second form, the method further includes: switching the first operation object from a first preset form to the first form, and switching the second operation object from a second preset form to a third form, wherein the first preset form and the second preset form correspond to initial forms of the first operation object and the second operation object in the virtual scene respectively.
Optionally, switching the first operation object from the first form to the second form includes one of: randomly allocating one form in a preset form library as the second form, and switching the first operation object from the first form to the second form; responding to a first selection instruction of the first operation object, and switching the first operation object from a first form to a second form based on the first selection instruction, wherein the first selection instruction is used for selecting identification information of the second form in a preset form list; and detecting a second selection instruction of the first operation object in the virtual scene, determining the form of the field scene selected by the second selection instruction as the second form, and switching the first operation object from the first form to the second form.
Optionally, randomly allocating one form in a preset form library as the second form includes one of: responding to a switching instruction of the first operation object before the switching duration is finished, and randomly allocating one form in a preset form library as the second form; and after the switching duration is finished, generating a switching instruction, and randomly allocating one form in a preset form library as the second form.
Optionally, after selecting the first object set and the second object set according to the scene information of the virtual scene, the method further includes: moving the second operation object to a specified position in a virtual map in response to a moving instruction for the second operation object within a first time, and showing scene elements around the specified position in the virtual scene; controlling the second operation object to be in a static state and controlling the first operation object to be in a movable state within a second time after the first time, wherein the first operation object can trigger the hiding instruction in the movable state; and controlling the second operation object to be in a movable state in a third time after the second time, wherein the second operation object can trigger the detection instruction in the movable state.
Optionally, after the first operation object is added in the second form in the virtual scene, the method further includes: counting the number of objects of a first designated operation object within a preset time, wherein the first designated operation object is the first operation object of which the current form is the third form; if the number of the objects is equal to the first number, allocating first virtual resources to the second operation object; and if the number of the objects is less than the first number, allocating second virtual resources to the first operation object.
Optionally, after the first operation object is added in the second form in the virtual scene, the method further includes: receiving the in-station information uploaded by any first operation object in a first private channel; and after the first number of first operation objects all have approval, issuing the in-station message to a public channel of the virtual scene, wherein all the first operation objects and the second operation objects can receive the in-station message through the public channel.
Optionally, the detecting instruction of the second operation object in the virtual scene includes: calculating the time interval between the current time and the preset termination time; generating a cycle duration of a detection cycle based on the time interval, wherein the cycle duration is positively correlated with the time interval; and detecting a detection instruction of the second operation object in the virtual scene according to the period duration.
Optionally, the detecting instruction of the second operation object in the virtual scene includes: allocating a third number of detection times to the second operation object; starting from the third number, if a detection instruction of the second operation object in the virtual scene is detected, subtracting 1 from the current number of the detection times until the current number of the detection times is 0.
Optionally, the detecting instruction of the second operation object in the virtual scene includes: allocating a first activation period of the detection instruction to the second operation object; if the detection instruction of the second operation object in the virtual scene is detected, after the corresponding duration of the first activation period, the detection instruction of the second operation object in the virtual scene is continuously detected until a preset termination time.
Optionally, the detecting instruction of the second operation object in the virtual scene includes: calculating the time interval between the current time and the preset termination time; when the time interval is smaller than the preset time length, allocating a fourth number of detection times to the second operation object or allocating a second activation period of the detection instruction to the second operation object; detecting a detection instruction of the second operation object in the virtual scene based on the detection times and/or the second activation period.
Optionally, detecting a probing instruction of the second operand in the virtual scene, and switching the first operand from the second state to the third state according to a probing result includes: activating a detection function of the second operation object, wherein the detection function is used for triggering a detection instruction through peripheral operation; detecting a detection instruction of the second operation object, and acquiring a detection object pointed by the detection instruction; judging whether the detection object is the first operation object; and if the detection object is a first operation object, switching the first operation object from the second form to the third form.
According to another embodiment of the present invention, there is provided an apparatus for switching a form of an object, including: the device comprises a selection module, a selection module and a display module, wherein the selection module is used for selecting a first object set and a second object set according to scene information of a virtual scene, and the first object set and the second object set respectively comprise a first number of first operation objects and a second number of second operation objects; the first switching module is used for responding to a hiding instruction aiming at the first operation object, switching the first operation object from a first form to a second form and adding the first operation object in the second form in the virtual scene; the second switching module is configured to detect a probing instruction of the second operation object in the virtual scene, and switch the first operation object from the second form to the third form according to a probing result, where the probing instruction is used to detect whether the probing object is the first operation object.
Optionally, the apparatus further comprises: a third switching module, configured to switch the first operation object from a first preset form to the first form and switch the second operation object from a second preset form to a third form before the first switching module switches the first operation object from the first role form to the second role form, where the first preset form and the second preset form correspond to initial forms of the first operation object and the second operation object in the virtual scene, respectively.
Optionally, the first switching module includes one of: a first switching unit, configured to randomly allocate one form as the second form in a preset form library, and switch the first operation object from a first form to the second form; the second switching unit is used for responding to a first selection instruction of the first operation object and switching the first operation object from a first form to a second form based on the first selection instruction, wherein the first selection instruction is used for selecting the identification information of the second form in a preset form list; and the third switching unit is used for detecting a second selection instruction of the first operation object in the virtual scene, determining the form of the field scene selected by the second selection instruction as the second form, and switching the first operation object from the first form to the second form.
Optionally, the first switching unit includes one of: the first switching subunit is used for responding to a switching instruction of the first operation object before the switching duration is finished, and randomly allocating one form in a preset form library as the second form; and the second switching subunit is used for generating a switching instruction after the switching duration is finished, and randomly allocating one form in a preset form library as the second form.
Optionally, the apparatus further comprises: the display module is used for responding to a moving instruction aiming at the second operation object in a first time after the selection module selects the first object set and the second object set according to the scene information of the virtual scene, moving the second operation object to a specified position in a virtual map, and displaying scene elements around the specified position in the virtual scene; the first control module controls the second operation object to be in a static state and controls the first operation object to be in a movable state within a second time after the first time, wherein the first operation object can trigger the hiding instruction in the movable state; and the second control module is used for controlling the second operation object to be in a movable state in a third time after the second time, wherein the second operation object can trigger the detection instruction in the movable state.
Optionally, the apparatus further comprises: a counting module, configured to count, within a preset time, the number of objects that designate a first operation object after the first switching module adds the first operation object in the virtual scene in the second form, where the designated first operation object is a first operation object whose current form is the third form; an allocation module, configured to allocate a first virtual resource to the second operation object if the number of objects is equal to the first number; and if the number of the objects is less than the first number, allocating second virtual resources to the first operation object.
Optionally, the apparatus further comprises: a receiving module, configured to receive in-station information uploaded by any one of the first operation objects in a first private channel after the first switching module adds the first operation object in the virtual scene in the second form; and the issuing module is used for issuing the in-station message to a public channel of the virtual scene after the first number of first operation objects approve, wherein all the first operation objects and the second operation objects can receive the in-station message through the public channel.
Optionally, the second switching module includes: the first calculating unit is used for calculating the time interval between the current time and the preset termination time; a generating unit, configured to generate a cycle duration of a detection cycle based on the time interval, wherein the cycle duration is positively correlated with the time interval; and the detection unit is used for detecting a detection instruction of the second operation object in the virtual scene according to the period duration.
Optionally, the second switching module includes: the first allocation unit is used for allocating a third number of detection times to the second operation object; and the first detection unit is used for subtracting 1 from the third number to the current number of the detection times until the current number of the detection times is 0 if the detection instruction of the second operation object in the virtual scene is detected.
Optionally, the second switching module includes: a second allocating unit, configured to allocate a first activation period of the probe instruction to the second operand; and if the detection instruction of the second operation object in the virtual scene is detected, after the corresponding duration of the first activation period, continuing to detect the detection instruction of the second operation object in the virtual scene until a preset termination time.
Optionally, the second switching module includes: the second calculating unit is used for calculating the time interval between the current time and the preset termination time; a third allocating unit, configured to allocate a fourth number of detection times to the second operation object or allocate a second activation period of the detection instruction to the second operation object when the time interval is smaller than a preset time; a third detecting unit, configured to detect a probing instruction of the second operation object in the virtual scene based on the probing number and/or the second activation period.
Optionally, the second switching module includes: the activation unit is used for activating a detection function of the second operation object, wherein the detection function is used for triggering a detection instruction through peripheral operation; the acquisition unit is used for detecting a detection instruction of the second operation object and acquiring a detection object pointed by the detection instruction; a determination unit configured to determine whether the detection object is the first operation object; and a switching unit, configured to switch the first operation object from the second form to the third form if the detection object is the first operation object.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the first object set and the second object set are selected according to the scene information of the virtual scene, the hidden instruction aiming at the first operation object is responded, the first operation object is switched from the first form to the second form, the first operation object is added into the virtual scene in the second form, the detection instruction of the second operation object in the virtual scene is detected, the first operation object is switched from the second form to the third form according to the detection result, the form of the virtual object is switched through the hidden instruction and the detection instruction, the technical problem that the form of the virtual object cannot be switched in the related technology is solved, the flexible switching of the form of the virtual object in the virtual scene is realized, and the personification degree and the authenticity of the virtual scene are improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a block diagram of a hardware configuration of an object form switching computer according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for switching object types according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a game scenario according to an embodiment of the present invention;
FIG. 4 is a block diagram of a switching apparatus for object morphology according to an embodiment of the present invention;
fig. 5 is a block diagram of an electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile phone, a tablet, a server, a computer, or a similar electronic terminal. Taking a computer as an example, fig. 1 is a hardware configuration block diagram of a switching computer in an object form according to an embodiment of the present invention. As shown in fig. 1, computer 10 may include one or more (only one shown in fig. 1) processors 102 (processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those of ordinary skill in the art that the configuration shown in FIG. 1 is illustrative only and is not intended to limit the configuration of the computer described above. For example, computer 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to a method for switching an object form in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory located remotely from processor 102, which may be connected to computer 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. In the present embodiment, the processor 104 is configured to control the target virtual character to perform a specified operation to complete the game task in response to the human-machine interaction instruction and the game policy. The memory 104 is used for storing program scripts of the electronic game, configuration information, attribute information of the virtual character, and the like.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of such networks may include wireless networks provided by the communications provider of computer 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Optionally, the input/output device 108 further includes a human-computer interaction screen for acquiring a human-computer interaction instruction through a human-computer interaction interface and for presenting a game picture in a game scene;
in the present embodiment, a method for switching an object form is provided, and fig. 2 is a schematic flowchart of a method for switching an object form according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, a first object set and a second object set are selected according to scene information of a virtual scene, wherein the first object set and the second object set respectively comprise a first number of first operation objects and a second number of second operation objects;
in this embodiment, the virtual scene may be a virtual game scene, a virtual teaching scene, or a virtual demonstration scene, where the virtual scene includes at least two object sets, an operation object in an object set may control an operation through an interactive instruction of a user or a control logic of a computer, and the number of the operation objects in the object set is determined according to a scene type, a range of a scene map, a scene mode, and the like. In this embodiment, a virtual scene is taken as an example of a virtual game scene, in one game scene, a first object set and a second object set form two party camps, the two party camps are enemy camps, and a first operation object and a second operation object are Player characters (PCC) Controlled by a master Player in the virtual game.
Step S204, responding to a hiding instruction aiming at the first operation object, switching the first operation object from a first form to a second form, and adding the first operation object in the virtual scene in the second form;
the form in this embodiment is an element expression form of an operation object in a virtual scene, and includes a UI component, a logic component, and the like, and taking the form of a character in a virtual game scene as an example, the form of a character in this embodiment includes UI attributes such as a shape, an appearance, and a color of a PCC in a game scene, and different forms of characters correspond to different rendering models, for example, a tortoise and a rabbit are different forms of characters respectively. The first operation object can disguise the character originally having the first character form as another character/object (second character form) by switching the object form, and further hide the character in place or at a designated position in the game scene.
Step S206, detecting a detection instruction of the second operation object in the virtual scene, and switching the first operation object from the second form to the third form according to a detection result, wherein the detection instruction is used for detecting whether the detection object is the first operation object;
the second operation object clicks the character/object (which may or may not be disguised by the first operation object) in the game scene, a detection instruction is triggered, the system judges whether the currently clicked character/object is disguised by the first operation object, if so, the clicked first operation object is switched from the second character form to the third character form, and if not, the first operation object is not switched.
Through the steps, the first object set and the second object set are selected according to the scene information of the virtual scene, the hidden instruction aiming at the first operation object is responded, the first operation object is switched from the first form to the second form, the first operation object is added into the virtual scene in the second form, the detection instruction of the second operation object in the virtual scene is detected, the first operation object is switched from the second form to the third form according to the detection result, the form of the virtual object is switched through the hidden instruction and the detection instruction, the technical problem that the form of the virtual object cannot be switched in the related technology is solved, the flexible switching of the form of the virtual object in the virtual scene is realized, and the personification degree and the authenticity of the virtual scene are improved.
It should be noted that the third aspect of the present embodiment may be another aspect different from the first and second aspects, or may be the first aspect, in which the form of the first operation target is changed by the probe operation, but the present invention is not limited to the specific aspect after the change.
In one embodiment of this embodiment, before switching the first operation object from the first form to the second form, the method further includes: and switching the first operation object from a first preset form to a first form, and switching the second operation object from a second preset form to a third form, wherein the first preset form and the second preset form respectively correspond to the initial forms of the first operation object and the second operation object in the virtual scene.
In this embodiment, each first operation object includes three forms in the game scene, which are a first preset form, a first form, and a second form, respectively, each second operation object includes two forms, which are a second preset form and a third form, respectively, wherein the first preset form and the second preset form are respectively the following forms of the operation object in the system, such as the form of PCC in a game scene in a world scene, the first character form and the third character form are the formation forms of a first formation and a second formation respectively, in each camp, the camp forms of a plurality of operation objects are the same, because the first camp and the second camp are the camp which is enemy to each other, the respective forms of the game can be set as the forms of the combination of cat, mouse, hawk, chicken and the like, the identification degree of each role in the game scene is increased, and the interest of the game is increased.
In this embodiment, when the first operation object is switched to the second form, the first operation object may be switched in a plurality of optional manners, and the switching of the first operation object from the first form to the second form may be, but is not limited to:
example one: randomly allocating one form as a second form in a preset form library, and switching a first operation object from the first form to the second form;
in this example, the second modality may be randomly acquired by the first operation object triggered by itself, or may be allocated by the system, and randomly allocating one modality in the preset modality library as the second modality includes one of the following: responding to a switching instruction of a first operation object before the switching duration is finished, and randomly allocating one form in a preset form library as a second form; and after the switching duration is finished, generating a switching instruction, and randomly allocating one form in a preset form library as a second form.
Example two: responding to a first selection instruction of a first operation object, and switching the first operation object from a first form to a second form based on the first selection instruction, wherein the first selection instruction is used for selecting identification information of the second form in a preset form list;
in the virtual scene, the preset form list is a preset role form library, the preset role form library comprises a plurality of role forms, wherein the role forms can be the role forms of scene elements in the game scene, or not the role forms of the scene elements in the game scene, such as boxes, wine tables, lanterns, trees, NPCs and the like, and the first operation object is switched from the first role form to the second role form through system random allocation and user selection.
Example three: and detecting a second selection instruction of the first operation object in the virtual scene, determining the form of the field scene selected by the second selection instruction as a second form, and switching the first operation object from the first form to the second form.
In this example, the second character form to be switched belongs to a scene in the game scene, such as a building, an NPC, a kettle, etc. in the game scene, the first operation object selects a scene in the game scene through the second selection instruction, the system copies the form of the scene object, and renders the scene object in the game scene again to determine the second character form as the first operation object.
In other embodiments based on example three, after the first object set and the second object set are selected according to the scene information of the virtual scene, the scene object is deleted in the virtual scene or replaced in the game scene by using the first operation object, so as to ensure the integrity of the game scene and enable the player and the game scene to be integrated. Meanwhile, by using the form of the existing scene in the game scene, the rendering data of the scene object can be directly copied without regenerating new rendering data, and the switching time of the object form can be reduced.
In the process of switching the role form, the present embodiment controls the states of the operation objects according to the process time of the virtual task, for example, controls the states of the operation objects according to the process time of the game task, and after selecting the first object set and the second object set according to the scene information of the virtual scene, the method further includes:
s11, in response to the moving instruction of the second operation object, moving the second operation object to the specified position in the virtual map within the first time, and displaying the scene elements around the specified position in the virtual scene;
the first time is the patrol time of the second operation object, and in the time, the second operation object can patrol each existing scene element in the virtual map where the virtual scene is located by outputting the moving instruction, wherein the scene element comprises non-interactive elements (landscape, goods and the like) and interactive elements (such as NPC). The entire scene element in the virtual scene may be presented at a time (zooming in the scene element at the designated position to which the second operation object is moved), or may be presented step by step as the virtual map is expanded.
S12, in a second time after the first time, controlling the second operation object to be in a static state and controlling the first operation object to be in a movable state, wherein the first operation object can trigger the hiding instruction in the movable state;
and in the second time, the second operation object finishes the field patrol, the first operation object moves in the game scene, the form and the hidden position of the second role to be switched are selected, the hidden command is output, the system detects the hidden command, and the first operation object is added in the game scene to realize the hidden effect.
And S13, controlling the second operation object to be in a movable state in a third time after the second time, wherein the second operation object can trigger the detection instruction in the movable state.
And in a third time, the first operation object is hidden, the second operation object moves in the game scene, the first operation object is in a static state under static control or the moving speed of the first operation object is less than that of the second operation object, a detection instruction is triggered, and the first operation object hidden in the game scene is found out.
Fig. 3 is a schematic diagram of a game scene according to an embodiment of the present invention, where the first and second campuses each include 3 operation objects, which are a first character and a second character, respectively, the second character moves in the game scene, and the first characters are hidden in the game scene, and are character forms of a fence, a coconut tree, and a sea stone, respectively.
In this embodiment, the above process may be implemented by a state machine, and the time is used as a trigger condition of the state machine, and corresponding states are set for the first operation object or the second operation object at different times.
In the implementation scenario of this embodiment, after the game starts, two teams of players (each team may be 3 persons or 5 persons, etc.) are matched, the team in the first and second teams of cats are changed into a cat and a mouse (the first and third character forms) respectively by their own master control character according to their affiliated teams, the team of cats starts to patrol, the original scenery display in the game scenario is shown, after the time of finding the court ends, the team of cats returns to the starting position, the team of rats starts to hide, the team of rats can be switched into any item (such as box, wine table, lantern, tree), NPC, etc., and then a certain position placed in the game scenario is selected, the team of players' change can be randomly recommended by the system, or selected in the recommendation list, or the players can select to copy the existing item in a certain scenario in the game scenario, after the change is finished, adding disguised articles in an original scene, controlling the players of the teams of cats not to leave the original scene during the hiding period, after the hiding period is finished, the players of the teams of cats entering a game scene to start to search for the change of the teams of rats, during the period, the players of the teams of rats are fixed in the original scene and cannot move, or slowly move (the moving speed is far lower than that of the cats) in the game scene at low speed, the players of the teams of rats can see during the moving process, if the players of the teams of cats find that a certain article is suspicious, the players of the teams of rats can pretend to be the teams of rats, clicking detection can be carried out, detection instructions are triggered, such as detection instructions are triggered by releasing skills, if yes, the players of the teams of rats are found, each player of the teams of cats is allocated with a plurality of detection opportunities, if the detection opportunities, and if the detection opportunities of the whole team are used up and the players of the team are not found out completely, the team is judged to win, if the game time is over, the players of the team are not found out completely, the team is also judged to win, and the players of the team cat can win only if the players of the team are found out completely in the game time.
In an implementation manner of this embodiment, the detecting the probe instruction of the second operation object in the virtual scene includes: calculating the time interval between the current time and the preset termination time; generating a cycle duration of the detection cycle based on the time interval, wherein the cycle duration is positively correlated with the time interval; and detecting a detection instruction of the second operation object in the virtual scene according to the period duration.
In one example, the number of times that the second operand clicks the detection instruction in the virtual scene is not limited, the starting detection period is T0, and the detection period T of the current time is T0-n/T, where T is a time interval, n is an adjustment coefficient, and is a constant, and as the virtual task progresses, the time interval is smaller and smaller, the detection period is also smaller and smaller, and more detection instructions can be detected in the same time.
In another embodiment of this embodiment, the second operation object is allocated a certain number of detection times in the game task, and the available detection opportunities of the second battle can be amplified by multiple times in the last period of the game task, or have unlimited detection opportunities, for example, the time of the game task is 3 minutes, each second operation object is allocated 10 detection opportunities (i.e. 10 detection instructions can be triggered), and in the last 30 seconds, the detection opportunities of a certain second operation object remain 2 times, and are amplified by 5 times to obtain 10 detection opportunities. The cooling time of the detection skill can also be set according to the moving distance of the second operation object, and the shorter the moving distance of the second operation object, the shorter the cooling time, and vice versa, thereby balancing the fairness and playability of the game.
In some embodiments of this embodiment, an additional detection opportunity may be added for a fixed number of detection times or a fixed duration of detection cycles for the second operation object, or in the last period of time, as described below:
in one example, the detection instruction to detect the second operation object in the virtual scene includes: allocating a third number of detection times to the second operation object; and if detecting a detection instruction of the second operation object in the virtual scene from the third number, subtracting 1 from the current number of the detection times until the current number of the detection times is 0.
In one example, the detection instruction to detect the second operation object in the virtual scene includes: allocating a first activation period of a detection instruction to a second operation object; if the detection instruction of the second operation object in the virtual scene is detected, after the corresponding duration of the first activation period, the detection instruction of the second operation object in the virtual scene is continuously detected until the preset termination time.
In one example, the detection instruction to detect the second operation object in the virtual scene includes: calculating the time interval between the current time and the preset termination time; when the time interval is less than the preset time length, allocating a fourth number of detection times for the second operation object or allocating a second activation period of the detection instruction for the second operation object; and detecting a detection instruction of the second operation object in the virtual scene based on the detection times and/or the second activation period.
In this embodiment, detecting a probe instruction of the second operand in the virtual scene, and switching the first operand from the second form to the third form according to the probe result includes: activating a detection function of a second operation object, wherein the detection function is used for triggering a detection instruction through peripheral operation; detecting a detection instruction of a second operation object, and acquiring a detection object pointed by the detection instruction; judging whether the detection object is a first operation object or not; and if the detection object is the first operation object, switching the first operation object from the second form to the third form.
Optionally, the third form is the same as the first form, and of course, the third form may also be an identification form for characterizing that the corresponding first operation object has been recognized and is no longer in a hidden state, for example, a label is added on the basis of the second form.
In one embodiment of this embodiment, after the adding the first operation object in the second form in the virtual scene, the method further includes: counting the number of objects of a first operation object in a preset time, wherein the first operation object is designated as a first operation object of which the current form is a third form; if the number of the objects is equal to the first number, allocating first virtual resources to the second operation object; and if the number of the objects is less than the first number, allocating second virtual resources to the first operation object.
In the embodiment, when virtual resources such as gold coins and credits of game tasks are settled, the virtual resources include two types, one type is game resources awarded by a team, a winning party (a first formation and a second formation) obtains the awards of the team, and each team member in the team is the same; the other type is game resources awarded by individuals, and the game contributions of the members in each team correspond to, for example, in the operation objects in the second team, the more the first operation object is found out, the more the personal awards are, the higher the speed of finding out the first operation object is, the more the awards are, and in the operation objects in the first team, the longer the hidden time is, the more the personal awards are.
In one embodiment of this embodiment, after adding the first operation object in the second form in the virtual scene, the method further includes: receiving the in-station information uploaded by any first operation object in a first private channel; and after the first operation objects of the first number are approved, the in-station message is issued to the public channel of the virtual scene, wherein all the first operation objects and the second operation objects can receive the in-station message through the public channel.
During the second set of objects probing for the first play, the operational objects of each team may issue messages in the private channels within the team, notify the teammates of available threads, and may also issue messages in full channels, with non-teams either requiring full-channel consent or after the team leader agrees to issue messages in full channels in order to prevent passive traitors. The player ends the game halfway (the first operation object is found out or the detection opportunity of the second operation object is used up), and the statement is prohibited.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a device for switching object forms is further provided, which is used to implement the foregoing embodiments and preferred embodiments, and the description of the device that has been already described is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a switching apparatus for switching an object form according to an embodiment of the present invention, as shown in fig. 4, the apparatus including: a selection module 40, a first switching module 42, a second switching module 44, wherein,
a selecting module 40, configured to select a first object set and a second object set according to scene information of a virtual scene, where the first object set and the second object set respectively include a first number of first operation objects and a second number of second operation objects;
a first switching module 42, configured to switch the first operand from a first form to a second form in response to a hiding instruction for the first operand, and add the first operand in the second form in the virtual scene;
a second switching module 44, configured to detect a probing instruction of the second operand in the virtual scene, and switch the first operand from the second form to the third form according to a probing result, where the probing instruction is used to detect whether a probing object is the first operand.
Optionally, the apparatus further comprises: a third switching module, configured to switch the first operation object from a first preset form to the first form and switch the second operation object from a second preset form to a third form before the first switching module switches the first operation object from the first role form to the second role form, where the first preset form and the second preset form correspond to initial forms of the first operation object and the second operation object in the virtual scene, respectively.
Optionally, the first switching module includes one of: a first switching unit, configured to randomly allocate one form as the second form in a preset form library, and switch the first operation object from a first form to the second form; the second switching unit is used for responding to a first selection instruction of the first operation object and switching the first operation object from a first form to a second form based on the first selection instruction, wherein the first selection instruction is used for selecting the identification information of the second form in a preset form list; and the third switching unit is used for detecting a second selection instruction of the first operation object in the virtual scene, determining the form of the field scene selected by the second selection instruction as the second form, and switching the first operation object from the first form to the second form.
Optionally, the first switching unit includes one of: the first switching subunit is used for responding to a switching instruction of the first operation object before the switching duration is finished, and randomly allocating one form in a preset form library as the second form; and the second switching subunit is used for generating a switching instruction after the switching duration is finished, and randomly allocating one form in a preset form library as the second form.
Optionally, the apparatus further comprises: the display module is used for responding to a moving instruction aiming at the second operation object in a first time after the selection module selects the first object set and the second object set according to the scene information of the virtual scene, moving the second operation object to a specified position in a virtual map, and displaying scene elements around the specified position in the virtual scene; the first control module controls the second operation object to be in a static state and controls the first operation object to be in a movable state within a second time after the first time, wherein the first operation object can trigger the hiding instruction in the movable state; and the second control module is used for controlling the second operation object to be in a movable state in a third time after the second time, wherein the second operation object can trigger the detection instruction in the movable state.
Optionally, the apparatus further comprises: a counting module, configured to count, within a preset time, the number of objects that designate a first operation object after the first switching module adds the first operation object in the virtual scene in the second form, where the designated first operation object is a first operation object whose current form is the third form; an allocation module, configured to allocate a first virtual resource to the second operation object if the number of objects is equal to the first number; and if the number of the objects is less than the first number, allocating second virtual resources to the first operation object.
Optionally, the apparatus further comprises: a receiving module, configured to receive in-station information uploaded by any one of the first operation objects in a first private channel after the first switching module adds the first operation object in the virtual scene in the second form; and the issuing module is used for issuing the in-station message to a public channel of the virtual scene after the first number of first operation objects approve, wherein all the first operation objects and the second operation objects can receive the in-station message through the public channel.
Optionally, the second switching module includes: the first calculating unit is used for calculating the time interval between the current time and the preset termination time; a generating unit, configured to generate a cycle duration of a detection cycle based on the time interval, wherein the cycle duration is positively correlated with the time interval; and the detection unit is used for detecting a detection instruction of the second operation object in the virtual scene according to the period duration.
Optionally, the second switching module includes: the first allocation unit is used for allocating a third number of detection times to the second operation object; and the first detection unit is used for subtracting 1 from the third number to the current number of the detection times until the current number of the detection times is 0 if the detection instruction of the second operation object in the virtual scene is detected.
Optionally, the second switching module includes: a second allocating unit, configured to allocate a first activation period of the probe instruction to the second operand; and if the detection instruction of the second operation object in the virtual scene is detected, after the corresponding duration of the first activation period, continuing to detect the detection instruction of the second operation object in the virtual scene until a preset termination time.
Optionally, the second switching module includes: the second calculating unit is used for calculating the time interval between the current time and the preset termination time; a third allocating unit, configured to allocate a fourth number of detection times to the second operation object or allocate a second activation period of the detection instruction to the second operation object when the time interval is smaller than a preset time; a third detecting unit, configured to detect a probing instruction of the second operation object in the virtual scene based on the probing number and/or the second activation period.
Optionally, the second switching module includes: the activation unit is used for activating a detection function of the second operation object, wherein the detection function is used for triggering a detection instruction through peripheral operation; the acquisition unit is used for detecting a detection instruction of the second operation object and acquiring a detection object pointed by the detection instruction; a determination unit configured to determine whether the detection object is the first operation object; and a switching unit, configured to switch the first operation object from the second form to the third form if the detection object is the first operation object.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Fig. 5 is a structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device includes a processor 51, a communication interface 52, a memory 53 and a communication bus 54, where the processor 51, the communication interface 52, and the memory 53 complete communication with each other through the communication bus 54, and the memory 53 is used for storing a computer program;
the processor 51 is configured to implement the following steps when executing the program stored in the memory 53: selecting a first object set and a second object set according to scene information of a virtual scene, wherein the first object set and the second object set respectively comprise a first number of first operation objects and a second number of second operation objects; responding to a hiding instruction aiming at the first operation object, switching the first operation object from a first form to a second form, and adding the first operation object in the second form in the virtual scene; and detecting a detection instruction of the second operation object in the virtual scene, and switching the first operation object from the second form to the third form according to a detection result, wherein the detection instruction is used for detecting whether the detection object is the first operation object.
Optionally, before switching the first operation object from the first form to the second form, the method further includes: switching the first operation object from a first preset form to the first form, and switching the second operation object from a second preset form to a third form, wherein the first preset form and the second preset form correspond to initial forms of the first operation object and the second operation object in the virtual scene respectively.
Optionally, switching the first operation object from the first form to the second form includes one of: randomly allocating one form in a preset form library as the second form, and switching the first operation object from the first form to the second form; responding to a first selection instruction of the first operation object, and switching the first operation object from a first form to a second form based on the first selection instruction, wherein the first selection instruction is used for selecting identification information of the second form in a preset form list; and detecting a second selection instruction of the first operation object in the virtual scene, determining the form of the field scene selected by the second selection instruction as the second form, and switching the first operation object from the first form to the second form.
Optionally, randomly allocating one form in a preset form library as the second form includes one of: responding to a switching instruction of the first operation object before the switching duration is finished, and randomly allocating one form in a preset form library as the second form; and after the switching duration is finished, generating a switching instruction, and randomly allocating one form in a preset form library as the second form.
Optionally, after selecting the first object set and the second object set according to the scene information of the virtual scene, the method further includes: moving the second operation object to a specified position in a virtual map in response to a moving instruction for the second operation object within a first time, and showing scene elements around the specified position in the virtual scene; controlling the second operation object to be in a static state and controlling the first operation object to be in a movable state within a second time after the first time, wherein the first operation object can trigger the hiding instruction in the movable state; and controlling the second operation object to be in a movable state in a third time after the second time, wherein the second operation object can trigger the detection instruction in the movable state.
Optionally, after the first operation object is added in the second form in the virtual scene, the method further includes: counting the number of objects of a first designated operation object within a preset time, wherein the first designated operation object is the first operation object of which the current form is the third form; if the number of the objects is equal to the first number, allocating first virtual resources to the second operation object; and if the number of the objects is less than the first number, allocating second virtual resources to the first operation object.
Optionally, after the first operation object is added in the second form in the virtual scene, the method further includes: receiving the in-station information uploaded by any first operation object in a first private channel; and after the first number of first operation objects all have approval, issuing the in-station message to a public channel of the virtual scene, wherein all the first operation objects and the second operation objects can receive the in-station message through the public channel.
Optionally, the detecting instruction of the second operation object in the virtual scene includes: calculating the time interval between the current time and the preset termination time; generating a cycle duration of a detection cycle based on the time interval, wherein the cycle duration is positively correlated with the time interval; and detecting a detection instruction of the second operation object in the virtual scene according to the period duration.
Optionally, the detecting instruction of the second operation object in the virtual scene includes: allocating a third number of detection times to the second operation object; starting from the third number, if a detection instruction of the second operation object in the virtual scene is detected, subtracting 1 from the current number of the detection times until the current number of the detection times is 0.
Optionally, the detecting instruction of the second operation object in the virtual scene includes: allocating a first activation period of the detection instruction to the second operation object; if the detection instruction of the second operation object in the virtual scene is detected, after the corresponding duration of the first activation period, the detection instruction of the second operation object in the virtual scene is continuously detected until a preset termination time.
Optionally, the detecting instruction of the second operation object in the virtual scene includes: calculating the time interval between the current time and the preset termination time; when the time interval is smaller than the preset time length, allocating a fourth number of detection times to the second operation object or allocating a second activation period of the detection instruction to the second operation object; detecting a detection instruction of the second operation object in the virtual scene based on the detection times and/or the second activation period.
Optionally, detecting a probing instruction of the second operand in the virtual scene, and switching the first operand from the second state to the third state according to a probing result includes: activating a detection function of the second operation object, wherein the detection function is used for triggering a detection instruction through peripheral operation; detecting a detection instruction of the second operation object, and acquiring a detection object pointed by the detection instruction; judging whether the detection object is the first operation object; and if the detection object is a first operation object, switching the first operation object from the second form to the third form.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment provided by the present application, a computer-readable storage medium is further provided, in which instructions are stored, and when the instructions are executed on a computer, the instructions cause the computer to execute the method for switching the object form according to any one of the above embodiments.
In another embodiment provided by the present application, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the method for switching the object form according to any one of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (15)

1. A method for switching object morphology, comprising:
selecting a first object set and a second object set according to scene information of a virtual scene, wherein the first object set and the second object set respectively comprise a first number of first operation objects and a second number of second operation objects;
responding to a hiding instruction aiming at the first operation object, switching the first operation object from a first form to a second form, and adding the first operation object in the second form in the virtual scene;
and detecting a detection instruction of the second operation object in the virtual scene, and switching the first operation object from the second form to a third form according to a detection result, wherein the detection instruction is used for detecting whether the detection object is the first operation object.
2. The method of claim 1, wherein prior to switching the first operand from the first configuration to the second configuration, the method further comprises:
switching the first operation object from a first preset form to the first form, and switching the second operation object from a second preset form to a third form, wherein the first preset form and the second preset form correspond to initial forms of the first operation object and the second operation object in the virtual scene respectively.
3. The method of claim 1, wherein switching the first operand from the first configuration to the second configuration comprises one of:
randomly allocating one form in a preset form library as the second form, and switching the first operation object from the first form to the second form;
responding to a first selection instruction of the first operation object, and switching the first operation object from a first form to a second form based on the first selection instruction, wherein the first selection instruction is used for selecting identification information of the second form in a preset form list;
and detecting a second selection instruction of the first operation object in the virtual scene, determining the form of the field scene selected by the second selection instruction as the second form, and switching the first operation object from the first form to the second form.
4. The method of claim 3, wherein randomly assigning a modality as the second modality in a library of pre-defined modalities comprises one of:
responding to a switching instruction of the first operation object before the switching duration is finished, and randomly allocating one form in a preset form library as the second form;
and after the switching duration is finished, generating a switching instruction, and randomly allocating one form in a preset form library as the second form.
5. The method of claim 1, wherein after selecting the first set of objects and the second set of objects based on scene information of the virtual scene, the method further comprises:
moving the second operation object to a specified position in a virtual map in response to a moving instruction for the second operation object within a first time, and showing scene elements around the specified position in the virtual scene;
controlling the second operation object to be in a static state and controlling the first operation object to be in a movable state within a second time after the first time, wherein the first operation object can trigger the hiding instruction in the movable state;
and controlling the second operation object to be in a movable state in a third time after the second time, wherein the second operation object can trigger the detection instruction in the movable state.
6. The method of claim 1, wherein after adding the first operand in the second modality in the virtual scene, the method further comprises:
counting the number of objects of a first designated operation object within a preset time, wherein the first designated operation object is the first operation object of which the current form is the third form;
if the number of the objects is equal to the first number, allocating first virtual resources to the second operation object; and if the number of the objects is less than the first number, allocating second virtual resources to the first operation object.
7. The method of claim 1, wherein after adding the first operand in the second modality in the virtual scene, the method further comprises:
receiving the in-station information uploaded by any first operation object in a first private channel;
and after the first number of first operation objects all have approval, issuing the in-station message to a public channel of the virtual scene, wherein all the first operation objects and the second operation objects can receive the in-station message through the public channel.
8. The method of claim 1, wherein detecting the probing instruction of the second operand in the virtual scene comprises:
calculating the time interval between the current time and the preset termination time;
generating a cycle duration of a detection cycle based on the time interval, wherein the cycle duration is positively correlated with the time interval;
and detecting a detection instruction of the second operation object in the virtual scene according to the period duration.
9. The method of claim 1, wherein detecting the probing instruction of the second operand in the virtual scene comprises:
allocating a third number of detection times to the second operation object;
starting from the third number, if a detection instruction of the second operation object in the virtual scene is detected, subtracting 1 from the current number of the detection times until the current number of the detection times is 0.
10. The method of claim 1, wherein detecting the probing instruction of the second operand in the virtual scene comprises:
allocating a first activation period of the detection instruction to the second operation object;
if the detection instruction of the second operation object in the virtual scene is detected, after the corresponding duration of the first activation period, the detection instruction of the second operation object in the virtual scene is continuously detected until a preset termination time.
11. The method of claim 1, wherein detecting the probing instruction of the second operand in the virtual scene comprises:
calculating the time interval between the current time and the preset termination time;
when the time interval is smaller than the preset time length, allocating a fourth number of detection times to the second operation object or allocating a second activation period of the detection instruction to the second operation object;
detecting a detection instruction of the second operation object in the virtual scene based on the detection times and/or the second activation period.
12. The method of claim 1, wherein detecting a probing instruction of the second operand in the virtual scene and switching the first operand from the second state to the third state according to a probing result comprises:
activating a detection function of the second operation object, wherein the detection function is used for triggering a detection instruction through peripheral operation;
detecting a detection instruction of the second operation object, and acquiring a detection object pointed by the detection instruction;
judging whether the detection object is the first operation object;
and if the detection object is a first operation object, switching the first operation object from the second form to the third form.
13. An apparatus for switching a form of an object, comprising:
the device comprises a selection module, a selection module and a display module, wherein the selection module is used for selecting a first object set and a second object set according to scene information of a virtual scene, and the first object set and the second object set respectively comprise a first number of first operation objects and a second number of second operation objects;
the first switching module is used for responding to a hiding instruction aiming at the first operation object, switching the first operation object from a first form to a second form and adding the first operation object in the second form in the virtual scene;
the second switching module is configured to detect a probing instruction of the second operation object in the virtual scene, and switch the first operation object from the second form to a third form according to a probing result, where the probing instruction is used to detect whether the probing object is the first operation object.
14. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 12 when executed.
15. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 12.
CN202011363389.8A 2020-11-27 2020-11-27 Object form switching method and device, storage medium and electronic device Pending CN112473139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011363389.8A CN112473139A (en) 2020-11-27 2020-11-27 Object form switching method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011363389.8A CN112473139A (en) 2020-11-27 2020-11-27 Object form switching method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN112473139A true CN112473139A (en) 2021-03-12

Family

ID=74936596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011363389.8A Pending CN112473139A (en) 2020-11-27 2020-11-27 Object form switching method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112473139A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113069764A (en) * 2021-03-29 2021-07-06 广州三七互娱科技有限公司 Skin rendering method and device for game role and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107967116A (en) * 2015-06-16 2018-04-27 深圳市腾讯计算机系统有限公司 The method and apparatus of lock onto target, computer equipment in scene of game
CN108153475A (en) * 2016-12-06 2018-06-12 腾讯科技(深圳)有限公司 A kind of object's position switching method and mobile terminal
CN108404408A (en) * 2018-02-01 2018-08-17 网易(杭州)网络有限公司 Information processing method, device, storage medium and electronic equipment
CN110354489A (en) * 2019-08-08 2019-10-22 腾讯科技(深圳)有限公司 Control method, device, terminal and the storage medium of virtual objects
CN111013140A (en) * 2019-12-09 2020-04-17 网易(杭州)网络有限公司 Game control method, device, terminal, server and readable storage medium
CN111359211A (en) * 2020-03-02 2020-07-03 腾讯科技(深圳)有限公司 Role conversion method and device, computer equipment and storage medium
CN111603766A (en) * 2020-06-29 2020-09-01 上海完美时空软件有限公司 Control method and device of virtual carrier, storage medium and electronic device
CN111766950A (en) * 2020-08-12 2020-10-13 腾讯科技(深圳)有限公司 Virtual character interaction method and device, computer equipment and storage medium
CN111803929A (en) * 2020-05-26 2020-10-23 厦门雅基软件有限公司 Control object switching method and device, electronic equipment and computer storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107967116A (en) * 2015-06-16 2018-04-27 深圳市腾讯计算机系统有限公司 The method and apparatus of lock onto target, computer equipment in scene of game
CN108153475A (en) * 2016-12-06 2018-06-12 腾讯科技(深圳)有限公司 A kind of object's position switching method and mobile terminal
CN108404408A (en) * 2018-02-01 2018-08-17 网易(杭州)网络有限公司 Information processing method, device, storage medium and electronic equipment
CN110354489A (en) * 2019-08-08 2019-10-22 腾讯科技(深圳)有限公司 Control method, device, terminal and the storage medium of virtual objects
CN111013140A (en) * 2019-12-09 2020-04-17 网易(杭州)网络有限公司 Game control method, device, terminal, server and readable storage medium
CN111359211A (en) * 2020-03-02 2020-07-03 腾讯科技(深圳)有限公司 Role conversion method and device, computer equipment and storage medium
CN111803929A (en) * 2020-05-26 2020-10-23 厦门雅基软件有限公司 Control object switching method and device, electronic equipment and computer storage medium
CN111603766A (en) * 2020-06-29 2020-09-01 上海完美时空软件有限公司 Control method and device of virtual carrier, storage medium and electronic device
CN111766950A (en) * 2020-08-12 2020-10-13 腾讯科技(深圳)有限公司 Virtual character interaction method and device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113069764A (en) * 2021-03-29 2021-07-06 广州三七互娱科技有限公司 Skin rendering method and device for game role and electronic equipment

Similar Documents

Publication Publication Date Title
CN111672122B (en) Interface display method, device, terminal and storage medium
CN111558221B (en) Virtual scene display method and device, storage medium and electronic equipment
CN111298430A (en) Virtual item control method and device, storage medium and electronic device
KR20220088941A (en) Method and apparatus, electronic device, computer-readable storage medium and computer program product for executing an interaction event
US20230065576A1 (en) Battle settlement interface display method, apparatus, device, and storage medium
CN112619145A (en) Control method and device of virtual role, storage medium and electronic device
CN114082198A (en) Interaction method and device in cloud game live broadcast, storage medium and electronic device
CN111265870A (en) Control method and device of virtual operation object and storage medium
CN112337090A (en) Event message broadcasting method and device, storage medium and electronic device
CN112675543A (en) Role attribute configuration method and device, storage medium and electronic device
CN108144301B (en) Virtual object information display method and device, storage medium and electronic device
CN113648650B (en) Interaction method and related device
JP2024500929A (en) Method and device for displaying facial expressions in a virtual scene, computer equipment and program
CN112704873B (en) Event processing method and device, storage medium and electronic equipment
CN112138379B (en) Interaction method and device among different application modes and storage medium
CN112473139A (en) Object form switching method and device, storage medium and electronic device
CN111921195B (en) Three-dimensional scene generation method and device, storage medium and electronic device
CN106139590A (en) The method and apparatus of control object
CN111249725B (en) Control method and device for virtual scene object
CN111228806B (en) Control method and device of virtual operation object, storage medium and electronic device
CN112402970A (en) Virtual object information adjusting method and device, storage medium and electronic device
JP7131905B2 (en) Information processing method, server device, program, and information terminal
CN113952739A (en) Game data processing method and device, electronic equipment and readable storage medium
WO2024060914A1 (en) Virtual object generation method and apparatus, device, medium, and program product
CN111359214A (en) Virtual item control method and device, storage medium and electronic device

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