CN110124309A - Virtual role control method and device, storage medium and electronic device - Google Patents

Virtual role control method and device, storage medium and electronic device Download PDF

Info

Publication number
CN110124309A
CN110124309A CN201910372725.6A CN201910372725A CN110124309A CN 110124309 A CN110124309 A CN 110124309A CN 201910372725 A CN201910372725 A CN 201910372725A CN 110124309 A CN110124309 A CN 110124309A
Authority
CN
China
Prior art keywords
component
state
virtual role
virtual
adjusted
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
CN201910372725.6A
Other languages
Chinese (zh)
Inventor
裴钰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201910372725.6A priority Critical patent/CN110124309A/en
Publication of CN110124309A publication Critical patent/CN110124309A/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/20Input arrangements for video game devices
    • A63F13/23Input arrangements for video game devices for interfacing with the game device, e.g. specific interfaces between game controller and console
    • 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/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Pinball Game Machines (AREA)

Abstract

The invention discloses a kind of virtual role control method and devices, storage medium and electronic device.Wherein, this method comprises: in the operational process of the game at one innings, the virtual role in the virtual scene of one innings of game is shown in the display interface;Receive component adjustment instruction relevant to virtual role;The first component of virtual role is adjusted to the second state by first state in response to component adjustment instruction, wherein, first state is one of hidden state or display state, second state is the another kind in hidden state or display state, the component that virtual role is allowed to use in one innings of game is multiple components including the first component, when adjusting the state of the first component, maintain the state of virtual role constant.The present invention solves the technical issues of switching weapon low efficiency in game process.

Description

Virtual role control method and device, storage medium and electronic device
Technical field
The present invention relates to computer fields, in particular to a kind of virtual role control method and device, storage medium And electronic device.
Background technique
In the related technology, the weapon that the virtual portrait in one innings of game and virtual portrait are configured is an entirety.To The weapon of virtual portrait is switched over, the first weapon is such as switched to the second weapon, then needs to prepare virtual portrait and holds not With the entirety of weapon, in switching, the entirety that virtual portrait switches the first weapon is switched to virtual portrait and holds the second weapon Entirety.
If however, not only before starting game, needing to prepare virtual portrait using the above method and holding various weapons Entirety, cause preparation amount big, and in game running need at the same prepare at the various entirety for being possible to be switched to It in be switched state, causes system operations amount big, reduces the efficiency for switching weapon in game process.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of virtual role control method and devices, storage medium and electronic device, so that It is few to solve the technical issues of switching weapon low efficiency in game process.
According to an aspect of an embodiment of the present invention, a kind of virtual role control method is provided, comprising: in one innings of game Operational process in, show the virtual role in the virtual scene of above-mentioned one innings of game in the display interface;It receives and above-mentioned void The quasi- relevant component adjustment instruction of role;In response to above-mentioned component adjustment instruction by the first component of above-mentioned virtual role by first State is adjusted to the second state, wherein above-mentioned first state is one of hidden state or display state, above-mentioned second state For the another kind in above-mentioned hidden state or above-mentioned display state, above-mentioned virtual role is allowed to use in above-mentioned one innings of game Component be multiple components including the above-mentioned first component, when adjusting the state of the above-mentioned first component, maintain above-mentioned void The state of quasi- role is constant.
According to another aspect of an embodiment of the present invention, a kind of virtual role control device is additionally provided, comprising: display is single Member, it is virtual in the virtual scene in the operational process of the game at one innings, showing above-mentioned one innings of game in the display interface Role;Receiving unit, for receiving component adjustment instruction relevant to above-mentioned virtual role;The first adjustment unit, for responding The first component of above-mentioned virtual role is adjusted to the second state by first state in above-mentioned component adjustment instruction, wherein above-mentioned First state is one of hidden state or display state, and above-mentioned second state is above-mentioned hidden state or above-mentioned display state In another kind, the component that above-mentioned virtual role is allowed to use in above-mentioned one innings of game is including the above-mentioned first component Multiple components maintain the state of above-mentioned virtual role constant when adjusting the state of the above-mentioned first component.
As an alternative embodiment, above-mentioned apparatus further include: configuration unit, for being shown on above-mentioned display interface Before showing the virtual role in the virtual scene of above-mentioned one innings of game, for above-mentioned virtual role configure above-mentioned multiple components and on State the state of multiple components, wherein the state of each of above-mentioned multiple components component include above-mentioned first state with it is above-mentioned Second state.
Another aspect according to an embodiment of the present invention, additionally provides a kind of storage medium, and meter is stored in the storage medium Calculation machine program, wherein the computer program is arranged to execute above-mentioned virtual role control method when operation.
Another aspect according to an embodiment of the present invention, additionally provides a kind of electronic device, including memory, processor and deposits Store up the computer program that can be run on a memory and on a processor, wherein above-mentioned processor passes through computer program and executes Above-mentioned virtual role control method.
In embodiments of the present invention, it uses during running one innings of game, on above-mentioned display interface in display State the virtual role in the virtual scene of one innings of game;Component adjustment instruction relevant to above-mentioned virtual role is received above-mentioned In the case where, the first component of above-mentioned virtual role is adjusted to the second shape by first state in response to above-mentioned component adjustment instruction The method of state.Since the virtual role in this programme is different parts from the component of virtual role, to virtual role Component when switching over, corresponding component is adjusted according only to relevant instruction, without to the whole of virtual role and component Body switches over, to improve the efficiency being adjusted to the component of virtual role, and then solves and cuts in game process The technical issues of changing weapon low efficiency.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of the application environment of optional virtual role control method according to an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of optional virtual role control method according to an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of optional virtual role control method according to an embodiment of the present invention;
Fig. 4 is the schematic diagram of another optional virtual role control method according to an embodiment of the present invention;
Fig. 5 is the schematic diagram of another optional virtual role control method according to an embodiment of the present invention;
Fig. 6 is the schematic diagram of another optional virtual role control method according to an embodiment of the present invention;
Fig. 7 is the schematic diagram of another optional virtual role control method according to an embodiment of the present invention;
Fig. 8 is the flow diagram of another optional virtual role control method according to an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of optional virtual role control device according to an embodiment of the present invention;
Figure 10 is the structural schematic diagram of another optional virtual role control device according to an embodiment of the present invention;
Figure 11 is the structural schematic diagram of another optional virtual role control device according to an embodiment of the present invention;
Figure 12 is the structural schematic diagram of another optional virtual role control device according to an embodiment of the present invention;
Figure 13 is the structural schematic diagram of another optional virtual role control device according to an embodiment of the present invention;
Figure 14 is the structural schematic diagram of another optional virtual role control device according to an embodiment of the present invention;
Figure 15 is the structural schematic diagram of another optional virtual role control device according to an embodiment of the present invention;
Figure 16 is a kind of structural schematic diagram of optional electronic device according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
According to an aspect of an embodiment of the present invention, a kind of virtual role control method is provided, optionally, as one kind Optional embodiment, above-mentioned virtual role control method can be, but not limited to be applied in environment as shown in Figure 1.
Human-computer interaction can be carried out in Fig. 1 between user 102 and user equipment 104.It include storage in user equipment 104 Device 106, for storing interaction data, processor 108, for handling interaction data.User equipment 104 can pass through network 110 Data interaction is carried out between server 112.It include database 114 in server 112, for storing interaction data, processing Engine 116, for handling interaction data.During user equipment 104 runs one innings of game, shown on user equipment 104 The virtual role being shown in virtual scene.After user equipment 104 receives component adjustment instruction, component is adjusted, it will Component is adjusted to the second state by first state, such as by the weapon of right side virtual portrait is adjusted by display state in 104-4 in Fig. 1 For the hidden state in 104-2.Alternatively, after receiving component adjustment instruction, by the weapon of virtual portrait by hidden state tune Whole is display state.
It should be noted that in the related technology, during the weapon to the virtual role in game is adjusted, leading to It often needs before starting game, prepares the entirety that virtual portrait holds various weapons, cause preparation amount big, and swimming Need to prepare simultaneously when play operation it is various be possible to be switched to generally in be switched state, cause system operations amount big, drop Switch the efficiency of weapon in low game process.And when switching the component of virtual role in the present embodiment in one innings of game, by It is different entirety in virtual role and the component of virtual role, therefore can neatly adjusts virtual role by adjusting instruction Any one or more components, and maintain the state of virtual role constant, to improve the component of switching virtual role Efficiency.
Optionally, above-mentioned user equipment 104 can be, but not limited to as that can calculate the terminal of data, such as mobile phone, plate The terminals such as computer, laptop, PC machine, above-mentioned network can include but is not limited to wireless network or cable network.Wherein, should Wireless network includes WIFI and other realize the network of wireless communication.Above-mentioned cable network can include but is not limited to: wide area network, Metropolitan Area Network (MAN), local area network.Above-mentioned server 112 can include but is not limited to any hardware device that can be calculated.
It is installed it should be noted that above-mentioned virtual role control method can equally be used in above-mentioned user equipment 104 Client on, or apply client operation small routine in.
Optionally, as an alternative embodiment, as shown in Fig. 2, above-mentioned virtual role control method includes:
S202 in the operational process of the game at one innings, shows the void in the virtual scene of one innings of game in the display interface Quasi- role;
S204 receives component adjustment instruction relevant to virtual role;
The first component of virtual role is adjusted to the second state by first state in response to component adjustment instruction by S206, Wherein, first state is one of hidden state or display state, and the second state is another in hidden state or display state One kind, the component that virtual role is allowed to use in one innings of game are multiple components including the first component, are being adjusted When the state of the first component, maintain the state of virtual role constant.
Optionally, above-mentioned virtual role control method can be, but not limited to be applied to field of play, such as mobile phone games, computer Game, reality-virtualizing game etc..Or can be, but not limited to be applied to the field that other are included as virtual role replacement component, such as Durings being that virtual role more changes one's clothes equal in shopping application.
It is empty during running one innings of game for above-mentioned virtual role control method is applied to field of play One or more of multiple components can be used in quasi- role.When receiving component adjustment instruction, response component adjustment instruction The first component that virtual role can be used is adjusted to hidden state by display state or is adjusted to show by hidden state State to realize that a frame is adjusted the component of virtual role, while guaranteeing that the state of virtual role is constant again.
Optionally, the state of above-mentioned holding virtual role is constant can be constant for the display state of holding virtual role.Such as In a frame animation, virtual role is in the state of running, and virtual role holds the first component, and in next frame animation, Virtual role is constant still in the state of running, but the first component of virtual role conceals.
It should be noted that after the state of the first component to virtual role is modified, the attribute of virtual role Information can change.After the first component is such as switched to hidden state by display state, the attack of virtual role is reduced Deng.
Optionally, it when the first component is adjusted to the second state by first state according to adjustment instruction, can also respond Second component is adjusted to first state by the second state by component adjustment instruction.
Optionally, the above-mentioned first component and second component can be the identical component of shape or be different component.Example Such as, by taking the above-mentioned first component and second component are weapon as an example, as shown in Figure 3 and Figure 4, there is 302 back of virtual role in Fig. 3 Weapon 304 does not hold weapon in hand.(holds weapon in hand but be in hidden state, the force of the weapon and back held in hand Device shape is identical).When receiving the component adjustment instruction to weapon 304, response component adjustment instruction is by the weapon in Fig. 3 304 are adjusted to hidden state as shown in Figure 4 by display state, and by the not shown weapon held in virtual role hand then by The hidden state of Fig. 3 is adjusted to hold weapon 404 in 402 hand of virtual role in the display state such as Fig. 4 of Fig. 4.In adjustment process In a frame switching can be completed, the virtual role in Fig. 3 and Fig. 4 does not change in external display.
Optionally, the above-mentioned first component and second component may be different components.For example, using the first component as sword, Second component be knife for, be illustrated in conjunction with Fig. 4 with shown in Fig. 5.As shown in figure 4, having had shown that virtual role in Fig. 4 402 swords 404 (virtual role also holds weapon knife, but knife is not shown) held with virtual role, and adjusted receiving When whole instruction, response adjustment instruction hides the sword 404 in Fig. 4, while not shown weapon knife being shown.Such as Fig. 5 institute Show, virtual role 502 holds weapon knife 504.Above-mentioned one frame of switching can be completed, the external display of virtual role in Fig. 4 and Fig. 5 On do not change.
Optionally, it is above-mentioned be adjusted to the first component or to second component during, by component by hidden state Being adjusted to display state can be, but not limited to be adjusted to component by display state to hide shape to amplify the size of component State can be, but not limited to reduce the size of component.
If then under initial situation, component is in hidden state for example, component is adjusted to display state by hidden state When, size can be less than first threshold, be that naked eyes are sightless less than the component of first threshold.And component is adjusted to display shape State can be amplified to preset second threshold, to keep component visible to amplify the size of component.And if by component Hidden state is adjusted to by display state, then the original dimension of component can be second threshold, the component having a size of second threshold It is visually visible.It is less than first threshold by the size adjusting of component, then component such as naked eyes are invisible, realize component by display shape State is adjusted to hidden state.
It should be noted that above-mentioned second threshold can be different according to the difference of component.For example, the various weapons such as daggers and swords Size it is different, during adjustment, second threshold is not also identical.The second threshold of huge sword can be larger, and the of dagger Two threshold values can be smaller, and above-mentioned numerical value can be determined flexibly as the case may be.
Optionally, it is above-mentioned be adjusted to the first component or to second component during, by component by hidden state The figure layer of component can also be modified by being adjusted to display state.For example, virtual portrait is in the first figure layer, in the first figure It further include the second figure layer except layer.It needs hiding component to be located in the second figure layer, component to be shown is needed to be located at the first figure layer On.When needing the workable component by virtual role for example clothes being adjusted, the clothes of the first figure layer is adjusted to In two figure layers, the clothes of the second figure layer is adjusted in the first figure layer, to realize the portions such as the clothes of frame replacement virtual role Part.
Optionally, optionally, it is above-mentioned be adjusted to the first component or to second component during, by component by hidden Hiding state, which is adjusted to display state, to modify to the transparency of component.For example, it is desired to the transparency of hiding component It is set as absolutely, then naked eyes are invisible, and component transparency to be shown is needed to can be set to be less than absolutely, then meat Eye is visible.It, can be by the transparency of hair decorations by percent when the component of virtual role such as hair decorations are adjusted to display by hiding Hundred are reduced to absolutely hereinafter, to realize that a frame is adjusted hair decorations.
Optionally, run according to before game, need to configure for virtual role it is one or more workable for component with And the state of each workable component.State includes first state and the second state.It is if virtual role is a swordsman, then empty What quasi- role may use three requires sword to be pre-configured with, and sword all configure hidden state to be every and show state.
Optionally, before running one innings of game, need to obtain all workable portions of virtual role and virtual role Part.And multiple skeleton points are provided on virtual role, skeleton point with each workable component for being bound.For example, such as Shown in Fig. 6, Fig. 6 is the pattern diagram of an optional virtual role, and choosing on the body of virtual role has multiple skeleton points, such as bone Point 602 and skeleton point 604 etc..Skeleton point can be chosen at any position of virtual role, and Fig. 6 is merely illustrative.And virtual role All workable components need to bind with skeleton point.If the binding of skeleton point 602 has a sword, the binding of skeleton point 604 has One knife.When component is tied on the skeleton point of virtual role, it is also necessary to the display state of all parts be set, show shape State is to hide or show.Such as, the knife by 604 bindings that skeleton point in Fig. 6 is bound is hidden, then can only see void in interface display Quasi- role holds one sword, and can't see hand-held knife.
Optionally, component also needs setting binding point.As shown in Figure 7.One in Fig. 7 is provided with binding point 702 knife, It, will be on the skeleton point of the binding knife virtual role of binding point 702 of knife when binding knife and virtual role.Binding point in Fig. 7 is only For example, multiple binding points can be set on component, for binding different skeleton points.
Optionally, a component can be bound with multiple skeleton points.Such as one the skeleton point of knife and virtual role back is tied up It is fixed, while being bound with the skeleton point of virtual role on hand.At this point, passing through the knife of control back and hiding and display for knife on hand The position of frame switching knife can be realized (from back switching to hand or from being switched to back on hand).On the other hand, a bone Bone point can also be bound with multiple components.Multiple components on a skeleton point are distinguished by different marks.For example, different Component has different numbers etc..
Optionally, position of the skeleton point of virtual role with virtual role can be overlapped, but the skeleton point being overlapped Need different marks, such as number.When being adjusted with the component to virtual role, can according to skeleton point to component into Row adjustment.
Optionally, the mark that the skeleton point to be adjusted can be carried in component adjustment instruction is receiving component After adjustment instruction, according to the skeleton point of the identifier lookup virtual role of the skeleton point carried in component adjustment instruction, matching is found Skeleton point after, change with skeleton point binding component state, be such as adjusted to display state from hidden state.
Optionally, after receiving component adjustment instruction, if failing to detect void when the skeleton point of detection virtual role The skeleton point of quasi- role, illustrating virtual role not includes adjustable component, the component only shown.At this point, still keeping Unit status shown by virtual role is constant.If virtual role holds a knife, then illustrate that virtual role cannot hold other Weapon.At this point, the hand-held knife of virtual role is still shown, without making other changes after receiving component adjustment instruction.Alternatively, this When can issue corresponding prompt information, the reason of to prompt virtual role still to hold knife.
The control method of above-mentioned virtual role is illustrated below in conjunction with step S802 to the S814 of Fig. 8.To virtual The skeleton point of role needs to obtain before being controlled and the skeleton point of cached virtual role and the component that is bundled on skeleton point State.And obtain virtual role skeleton point before, need to preset for virtual role before the game starts skeleton point with It is bundled in the state of the component on skeleton point.As an example, FBX file is usually for realizing between different software The model of game, material, movement and photography machine information mutual conductance FBX format file.Above-mentioned mutual conductance is from a software Export, imported into another software.For example, designing the action message of virtual role on a software, then export is empty The action message of quasi- role is the file of a FBX format, calls the file of the FBX format that void may be implemented in other software Quasi- role executes movement indicated by above-mentioned action message.In the concrete realization, by where virtual role FBX file with it is each FBX file mergences where component is a FBX file, make to preserve in a FBX file information of virtual role ontology with The information of all parts workable for virtual role.And the FBX file export after merging is become by game running by script When the prefab file that reads, and the information such as state machine animator are hung on prefab file.Eventually by game Logical frame Script controlling corresponds to bone and ties up scalability information a little.In the state for obtaining skeleton point with the component being bundled on skeleton point When, the status information in the prefab file using the tool export FBX file generated of pre-production is needed, and be saved in In animation clips file.In the shape for obtaining the simultaneously skeleton point of cached virtual role and the component being bundled on skeleton point After state, during running one innings of game, frame script is run.Detection part adjustment instruction.Detecting component adjustment instruction Afterwards, skeleton point corresponding with component adjustment instruction has been detected whether.If detecting skeleton point corresponding with component adjustment instruction, The state for the component then bound on skeleton point.In the concrete realization, because in the FBX motion file of the softwares such as maya output, The status information about skeleton point can be saved, if still saving this information during a game running process will lead to script more In next frame (1/30 second) after having changed the status information of corresponding skeleton point, the status information of preservation can be covered again, be caused Desired model variation effect can not be controlled for a long time.The status information for being equivalent to skeleton point is locked, can not change.At this point, needing A movement optimization plug-in unit is made, movement optimization plug-in unit is used to detect the status information of the skeleton point of locking.In Fig. 8 Does step S808, detect skeleton point? if detecting the skeleton point of locking, then using movement optimization plug-in unit to the bone of locking The status information of point is unlocked, and proposes the shape from the skeleton point exported in animation clips file in FBX file State information is simultaneously adjusted the state with the component of skeleton point binding according to component adjustment instruction.
Through this embodiment, by showing one innings of game on the client during client runs one innings of game Virtual scene in virtual role;Component adjustment instruction relevant to virtual role is received on the client;In response to portion The method that the first component of virtual role is adjusted to the second state by first state by part adjustment instruction, thus to virtual role Component when switching over, corresponding component is adjusted according only to relevant instruction, without to the whole of virtual role and component Body switches over, and improves the efficiency switched over to the component of virtual role.
As a kind of optional embodiment, in response to component adjustment instruction by the first component of virtual role by first When state is adjusted to the second state, method further include:
The second component of virtual role is adjusted to first state by the second state in response to component adjustment instruction, wherein Multiple components include second component.
Optionally, above-mentioned second component can be identical component from the above-mentioned first component or be different component.If It is that second component is identical as the first component, for example one knife, then second component and the first component are located at the position of virtual role not Together.As the first component by virtual role it is hand held in, second component by virtual role carry on the back in back.And the first component and second It is display that state one of part, which is hiding one,.At this time after the state to the first component and second component is modified, such as The first component by hide be adjusted to show, second component is adjusted to hiding by showing, then on appearance is shown, virtual role is by carrying on the back On carry knife and become hold knife on hand.
Through this embodiment, by when being adjusted to the first component, response component adjustment instruction to second component into Row adjustment, to improve the regulated efficiency being adjusted to the component of virtual role.
As a kind of optional embodiment, the case where first state is display state, the second state is hidden state Under, by the first component by first state be adjusted to the second state include: by the size reduction of the first component to first threshold, In, the first component for narrowing down to first threshold is invisible;
In the case where first state is hidden state, the second state is display state, by the first component by first state Being adjusted to the second state includes: that the size of the first component is increased to second threshold, wherein increases to first of second threshold Part is visible.
For example, then being reduced by the first component by taking the numerical value such as size of 1 pixel that first threshold is a very little as an example After the size of the pixel arrived, naked eyes are not as it can be seen that hide the first component it is possible thereby to realize in the display interface.And Second threshold then can be kept the first component in length and breadth by a pixel size for normal display size, such as 500 pixel sizes Than increasing to 500 pixel sizes, realizes and be adjusted to show by hiding by the first component.
Through this embodiment, by the first component being adjusted to invisible or by invisible when adjusting the first component It is adjusted to as it can be seen that improving in game process to realize to hiding for the first component and being adjusted flexibly for display to first The regulated efficiency of component.
As a kind of optional embodiment, before one innings of game running, further includes:
Obtain multiple components of virtual role and virtual role, wherein virtual role includes multiple skeleton points, multiple bones Point is the point chosen on virtual role;
The first component in multiple components is bundled on the first skeleton point of virtual role, the first skeleton point is multiple bones A skeleton point in bone point, the first component are a component in multiple components.
For example, as shown in fig. 6, Fig. 6 is the pattern diagram of an optional virtual role there is more selection on the body of virtual role A skeleton point, such as skeleton point 602 and skeleton point 604.Skeleton point can be chosen at any position of virtual role.
It should be noted that a virtual role may include multiple skeleton points, each skeleton point and a virtual angle The component of color is bound, and a component of a virtual role can bind multiple and different skeleton points.The position of multiple skeleton points It can be overlapped, but the skeleton point being overlapped has different marks to distinguish.
Through this embodiment, by choosing multiple skeleton points on virtual role and binding the component of virtual role, thus It realizes through adjustment of the skeleton point to the state of the component of virtual role, improves the effect being adjusted to the component of virtual role Rate.
As a kind of optional embodiment, in the operational process of the game at one innings, further includes:
In the case where receiving component adjustment instruction, the first entrained skeleton point in obtaining widget adjustment instruction;
The state of component bound in first skeleton point is adjusted to the second state by first state.
Optionally, available to arrive component adjustment instruction in perform script due to during game running, and The information for the skeleton point to be adjusted is carried in component adjustment instruction.For example, the number of the skeleton point of adjustment in need is carried, Such as 001,002.According to above-mentioned number, the skeleton point of virtual role can be found, and obtains component bound in skeleton point And the state of component.If component is hidden state, then it is revised as display state, if component is display state, then modified For hidden state.
Through this embodiment, workable for by adjusting virtual role according to the skeleton point carried in component adjustment instruction The state of component improves the efficiency of the component of adjustment virtual role to realize being adjusted flexibly to the component of virtual role.
As a kind of optional embodiment, the virtual role in the virtual scene of one innings of game is shown in the display interface Before, further includes:
The state of multiple components and multiple components is configured for virtual role, wherein each of multiple components component State include first state and the second state.
Optionally, before carrying out one innings of game, need to be pre-configured with the multiple components and multiple components of virtual role State.For example, the component that virtual role can be used is knife, sword, carry-on accessories include cap, clothes, then need The skeleton point on the body of knife, sword, cap, clothes and virtual role is bound in advance, and sets knife, sword, cap, clothing The state of clothes.If knife is hidden state, sword is display state, and cap, clothes are all display state.It can be with during game It modifies to the state of knife, sword, cap, clothes, to realize the switching of component.
It through this embodiment, can be to void to realize by being pre-configured with the state of multiple components Yu multiple components The component of quasi- role carries out flexibly adjustment, improves the regulated efficiency of the component of virtual role.
As a kind of optional embodiment, in the case where client receives modification instruction, by the of virtual role One component is revised as the second state by first state
In the case where the skeleton point of role's ontology of virtual role is not detected, virtual role is shown on the client The first component maintains first state constant.
Optionally, since virtual role may only include a workable component, such as knife, knife is located at virtual role On hand, then at this point, virtual role can not replace component.If at this point, receiving component adjustment instruction, then not to virtual role Component: the state of knife is changed.
Through this embodiment, by the case where the skeleton point of virtual role is not detected, keeping the of virtual role The first state of one component is constant, mistake occurs so as to avoid when adjusting virtual role component, improves to virtual role The accuracy that is adjusted of component.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
Other side according to an embodiment of the present invention additionally provides a kind of for implementing above-mentioned virtual role control method Virtual role control device.As shown in figure 9, the device includes:
(1) display unit 902, for showing one innings of game in the display interface in the operational process of the game at one innings Virtual role in virtual scene;
(2) receiving unit 904, for receiving component adjustment instruction relevant to virtual role;
(3) the first adjustment unit 906, in response to component adjustment instruction by the first component of virtual role by the first shape State is adjusted to the second state, wherein first state is one of hidden state or display state, and the second state is hidden state Or the another kind in display state, the component that virtual role is allowed to use in one innings of game is including the first component Multiple components maintain the state of virtual role constant when adjusting the state of the first component.
Optionally, above-mentioned virtual role control device can be, but not limited to be applied to field of play, such as mobile phone games, computer Game, reality-virtualizing game etc..Or can be, but not limited to be applied to the field that other are included as virtual role replacement component, such as Durings being that virtual role more changes one's clothes equal in shopping application.
It is empty during running one innings of game for above-mentioned virtual role control method is applied to field of play One or more of multiple components can be used in quasi- role.When receiving component adjustment instruction, response component adjustment instruction The first component that virtual role can be used is adjusted to hidden state by display state or is adjusted to show by hidden state State to realize that a frame is adjusted the component of virtual role, while guaranteeing that the state of virtual role is constant again.
Optionally, the state of above-mentioned holding virtual role is constant can be constant for the display state of holding virtual role.Such as In a frame animation, virtual role is in the state of running, and virtual role holds the first component, and in next frame animation, Virtual role is constant still in the state of running, but the first component of virtual role conceals.
It should be noted that after the state of the first component to virtual role is modified, the attribute of virtual role Information can change.After the first component is such as switched to hidden state by display state, the attack of virtual role is reduced Deng.
Optionally, it when the first component is adjusted to the second state by first state according to adjustment instruction, can also respond Second component is adjusted to first state by the second state by component adjustment instruction.
Optionally, the above-mentioned first component and second component can be the identical component of shape or be different component.Example Such as, by taking the above-mentioned first component and second component are weapon as an example, as shown in Figure 3 and Figure 4, there is 302 back of virtual role in Fig. 3 Weapon 304 does not hold weapon in hand.(holds weapon in hand but be in hidden state, the force of the weapon and back held in hand Device shape is identical).When receiving the component adjustment instruction to weapon 304, response component adjustment instruction is by the weapon in Fig. 3 304 are adjusted to hidden state as shown in Figure 4 by display state, and by the not shown weapon held in virtual role hand then by The hidden state of Fig. 3 is adjusted to hold weapon 404 in 402 hand of virtual role in the display state such as Fig. 4 of Fig. 4.In adjustment process In a frame switching can be completed, the virtual role in Fig. 3 and Fig. 4 does not change in external display.
Optionally, the above-mentioned first component and second component may be different components.For example, using the first component as sword, Second component be knife for, be illustrated in conjunction with Fig. 4 with shown in Fig. 5.As shown in figure 4, having had shown that virtual role in Fig. 4 402 swords 404 (virtual role also holds weapon knife, but knife is not shown) held with virtual role, and adjusted receiving When whole instruction, response adjustment instruction hides the sword 404 in Fig. 4, while not shown weapon knife being shown.Such as Fig. 5 institute Show, virtual role 502 holds weapon knife 504.Above-mentioned one frame of switching can be completed, the external display of virtual role in Fig. 4 and Fig. 5 On do not change.
Optionally, it is above-mentioned be adjusted to the first component or to second component during, by component by hidden state Being adjusted to display state can be, but not limited to be adjusted to component by display state to hide shape to amplify the size of component State can be, but not limited to reduce the size of component.
If then under initial situation, component is in hidden state for example, component is adjusted to display state by hidden state When, size can be less than first threshold, be that naked eyes are sightless less than the component of first threshold.And component is adjusted to display shape State can be amplified to preset second threshold, to keep component visible to amplify the size of component.And if by component Hidden state is adjusted to by display state, then the original dimension of component can be second threshold, the component having a size of second threshold It is visually visible.It is less than first threshold by the size adjusting of component, then component such as naked eyes are invisible, realize component by display shape State is adjusted to hidden state.
It should be noted that above-mentioned second threshold can be different according to the difference of component.For example, the various weapons such as daggers and swords Size it is different, during adjustment, second threshold is not also identical.The second threshold of huge sword can be larger, and the of dagger Two threshold values can be smaller, and above-mentioned numerical value can be determined flexibly as the case may be.
Optionally, it is above-mentioned be adjusted to the first component or to second component during, by component by hidden state The figure layer of component can also be modified by being adjusted to display state.For example, virtual portrait is in the first figure layer, in the first figure It further include the second figure layer except layer.It needs hiding component to be located in the second figure layer, component to be shown is needed to be located at the first figure layer On.When needing the workable component by virtual role for example clothes being adjusted, the clothes of the first figure layer is adjusted to In two figure layers, the clothes of the second figure layer is adjusted in the first figure layer, to realize the portions such as the clothes of frame replacement virtual role Part.
Optionally, optionally, it is above-mentioned be adjusted to the first component or to second component during, by component by hidden Hiding state, which is adjusted to display state, to modify to the transparency of component.For example, it is desired to the transparency of hiding component It is set as absolutely, then naked eyes are invisible, and component transparency to be shown is needed to can be set to be less than absolutely, then meat Eye is visible.It, can be by the transparency of hair decorations by percent when the component of virtual role such as hair decorations are adjusted to display by hiding Hundred are reduced to absolutely hereinafter, to realize that a frame is adjusted hair decorations.
Optionally, run according to before game, need to configure for virtual role it is one or more workable for component with And the state of each workable component.State includes first state and the second state.It is if virtual role is a swordsman, then empty What quasi- role may use three requires sword to be pre-configured with, and sword all configure hidden state to be every and show state.
Optionally, before running one innings of game, need to obtain all workable portions of virtual role and virtual role Part.And multiple skeleton points are provided on virtual role, skeleton point with each workable component for being bound.For example, such as Shown in Fig. 6, Fig. 6 is the pattern diagram of an optional virtual role, and choosing on the body of virtual role has multiple skeleton points, such as bone Point 602 and skeleton point 604 etc..Skeleton point can be chosen at any position of virtual role, and Fig. 6 is merely illustrative.And virtual role All workable components need to bind with skeleton point.If the binding of skeleton point 602 has a sword, the binding of skeleton point 604 has One knife.When component is tied on the skeleton point of virtual role, it is also necessary to the display state of all parts be set, show shape State is to hide or show.Such as, the knife by 604 bindings that skeleton point in Fig. 6 is bound is hidden, then can only see void in interface display Quasi- role holds one sword, and can't see hand-held knife.
Optionally, component also needs setting binding point.As shown in Figure 7.One in Fig. 7 is provided with binding point 702 knife, It, will be on the skeleton point of the binding knife virtual role of binding point 702 of knife when binding knife and virtual role.Binding point in Fig. 7 is only For example, multiple binding points can be set on component, for binding different skeleton points.
Optionally, a component can be bound with multiple skeleton points.Such as one the skeleton point of knife and virtual role back is tied up It is fixed, while being bound with the skeleton point of virtual role on hand.At this point, passing through the knife of control back and hiding and display for knife on hand The position of frame switching knife can be realized (from back switching to hand or from being switched to back on hand).
Optionally, position of the skeleton point of virtual role with virtual role can be overlapped, but the skeleton point being overlapped Need different marks, such as number.When being adjusted with the component to virtual role, can according to skeleton point to component into Row adjustment.
Optionally, the mark that the skeleton point to be adjusted can be carried in component adjustment instruction is receiving component After adjustment instruction, according to the skeleton point of the identifier lookup virtual role of the skeleton point carried in component adjustment instruction, matching is found Skeleton point after, change with skeleton point binding component state, be such as adjusted to display state from hidden state.
Optionally, after receiving component adjustment instruction, if failing to detect void when the skeleton point of detection virtual role The skeleton point of quasi- role, illustrating virtual role not includes adjustable component, the component only shown.At this point, still keeping Unit status shown by virtual role is constant.If virtual role holds a knife, then illustrate that virtual role cannot hold other Weapon.At this point, the hand-held knife of virtual role is still shown, without making other changes after receiving component adjustment instruction.Alternatively, this When can issue corresponding prompt information, the reason of to prompt virtual role still to hold knife.
The control method of above-mentioned virtual role is illustrated below in conjunction with step S802 to the S814 of Fig. 8.To virtual The skeleton point of role needs to obtain before being controlled and the skeleton point of cached virtual role and the component that is bundled on skeleton point State.And obtain virtual role skeleton point before, need to preset for virtual role before the game starts skeleton point with It is bundled in the state of the component on skeleton point.As an example, FBX file is usually for realizing between different software The model of game, material, movement and photography machine information mutual conductance file.Above-mentioned mutual conductance is to export from a software, is imported Into another software.For example, designing the action message of virtual role on a software, the dynamic of virtual role is then exported Make the file that information is a FBX format, calls the file of the FBX format that virtual role execution may be implemented in other software Movement indicated by above-mentioned action message.It in the concrete realization, will be where the FBX file and all parts where virtual role FBX file mergences is a FBX file, preserves the information of virtual role ontology in a FBX file and virtual role can The information of all parts used.And it is read when the FBX file export after merging being become game running by script Prefab file, and the information such as state machine animator are hung on prefab file.Eventually by the logical frame foot in game The corresponding bone of this control ties up scalability information a little.When obtaining the state of skeleton point and the component being bundled on skeleton point, need Using the status information in the prefab file of the tool export FBX file generated of pre-production, and it is saved in animation In clips file.After obtaining the simultaneously state of the skeleton point of cached virtual role and the component being bundled on skeleton point, running During one innings of game, frame script is run.Detection part adjustment instruction.After detecting component adjustment instruction, detect whether There is skeleton point corresponding with component adjustment instruction.If detecting skeleton point corresponding with component adjustment instruction, then on skeleton point The state of the component of binding.In the concrete realization, because the softwares such as maya output FBX motion file in, can save about The status information of skeleton point is having changed corresponding bone if still saving this information during a game running process and will lead to script In next frame (1/30 second) after the status information of bone point, the status information of preservation can be covered again, lead to not control for a long time The desired model variation effect of system.The status information for being equivalent to skeleton point is locked, can not change.At this time, it may be necessary to make one Movement optimization plug-in unit, movement optimization plug-in unit are used to detect the status information of the skeleton point of locking.Such as the step S808 in Fig. 8, Detect skeleton point? if detecting the skeleton point of locking, then using movement optimization plug-in unit to the state of the skeleton point of locking Information is unlocked, and is proposed from the status information of the skeleton point exported in animation clips file in FBX file simultaneously The state with the component of skeleton point binding is adjusted according to component adjustment instruction.
Through this embodiment, by showing one innings of game on the client during client runs one innings of game Virtual scene in virtual role;Component adjustment instruction relevant to virtual role is received on the client;In response to portion The method that the first component of virtual role is adjusted to the second state by first state by part adjustment instruction, thus to virtual role Component when switching over, corresponding component is adjusted according only to relevant instruction, without to the whole of virtual role and component Body switches over, and improves the efficiency switched over to the component of virtual role.
As a kind of optional embodiment, as shown in Figure 10, above-mentioned apparatus further include:
(1) second adjustment unit 1002, in response to component adjustment instruction by the first component of virtual role by When one state is adjusted to the second state, the second component of virtual role is adjusted to by the second state in response to component adjustment instruction First state, wherein multiple components include second component.
Optionally, above-mentioned second component can be identical component from the above-mentioned first component or be different component.If It is that second component is identical as the first component, for example one knife, then second component and the first component are located at the position of virtual role not Together.As the first component by virtual role it is hand held in, second component by virtual role carry on the back in back.And the first component and second It is display that state one of part, which is hiding one,.At this time after the state to the first component and second component is modified, such as The first component by hide be adjusted to show, second component is adjusted to hiding by showing, then on appearance is shown, virtual role is by carrying on the back On carry knife and become hold knife on hand.
Through this embodiment, by when being adjusted to the first component, response component adjustment instruction to second component into Row adjustment, to improve the regulated efficiency being adjusted to the component of virtual role.
As a kind of optional embodiment, as shown in figure 11, above-mentioned the first adjustment unit 906 includes:
(1) the first adjustment module 1102, for being display state in first state, the case where the second state is hidden state Under, by the size reduction of the first component to first threshold, wherein the first component for narrowing down to first threshold is invisible;
(2) second adjustment module 1104, for being hidden state in first state, the case where the second state is display state Under, the size of the first component is increased into second threshold, wherein the first component for increasing to second threshold is visible.
For example, then being reduced by the first component by taking the numerical value such as size of 1 pixel that first threshold is a very little as an example After the size of the pixel arrived, naked eyes are not as it can be seen that hide the first component it is possible thereby to realize in the display interface.And Second threshold then can be kept the first component in length and breadth by a pixel size for normal display size, such as 500 pixel sizes Than increasing to 500 pixel sizes, realizes and be adjusted to show by hiding by the first component.
Through this embodiment, by the first component being adjusted to invisible or by invisible when adjusting the first component It is adjusted to as it can be seen that improving in game process to realize to hiding for the first component and being adjusted flexibly for display to first The regulated efficiency of component.
As a kind of optional embodiment, as shown in figure 12, above-mentioned apparatus further include:
(1) first acquisition unit 1202 obtain the more of virtual role and virtual role for before one innings of game running A component, wherein virtual role includes multiple skeleton points, and multiple skeleton points are the point chosen on virtual role;
(2) binding unit 1204, for the first component in multiple components to be bundled in the first skeleton point of virtual role On, the first skeleton point is a skeleton point in multiple skeleton points, and the first component is a component in multiple components.
For example, as shown in fig. 6, Fig. 6 is the pattern diagram of an optional virtual role there is more selection on the body of virtual role A skeleton point, such as skeleton point 602 and skeleton point 604.Skeleton point can be chosen at any position of virtual role.
It should be noted that a virtual role may include multiple skeleton points, each skeleton point and a virtual angle The component of color is bound, and a component of a virtual role can bind multiple and different skeleton points.The position of multiple skeleton points It can be overlapped, but the skeleton point being overlapped has different marks to distinguish.
Through this embodiment, by choosing multiple skeleton points on virtual role and binding the component of virtual role, thus It realizes through adjustment of the skeleton point to the state of the component of virtual role, improves the effect being adjusted to the component of virtual role Rate.
As a kind of optional embodiment, as shown in figure 13, above-mentioned apparatus further include:
(1) second acquisition unit 1302, for receiving component adjustment instruction in the operational process of the game at one innings In the case of, the first entrained skeleton point in obtaining widget adjustment instruction;
(2) third adjustment unit 1304, for adjusting the state of component bound in the first skeleton point by first state For the second state.
Optionally, available to arrive component adjustment instruction in perform script due to during game running, and The information for the skeleton point to be adjusted is carried in component adjustment instruction.For example, the number of the skeleton point of adjustment in need is carried, Such as 001,002.According to above-mentioned number, the skeleton point of virtual role can be found, and obtains component bound in skeleton point And the state of component.If component is hidden state, then it is revised as display state, if component is display state, then modified For hidden state.
Through this embodiment, workable for by adjusting virtual role according to the skeleton point carried in component adjustment instruction The state of component improves the efficiency of the component of adjustment virtual role to realize being adjusted flexibly to the component of virtual role.
As a kind of optional embodiment, as shown in figure 14, above-mentioned apparatus further include:
(1) configuration unit 1402, the virtual role in virtual scene for showing one innings of game in the display interface it Before, the state of multiple components and multiple components is configured for virtual role, wherein the state of each of multiple components component Including first state and the second state.
Optionally, before carrying out one innings of game, need to be pre-configured with the multiple components and multiple components of virtual role State.For example, the component that virtual role can be used is knife, sword, carry-on accessories include cap, clothes, then need The skeleton point on the body of knife, sword, cap, clothes and virtual role is bound in advance, and sets knife, sword, cap, clothing The state of clothes.If knife is hidden state, sword is display state, and cap, clothes are all display state.It can be with during game It modifies to the state of knife, sword, cap, clothes, to realize the switching of component.
It through this embodiment, can be to void to realize by being pre-configured with the state of multiple components Yu multiple components The component of quasi- role carries out flexibly adjustment, improves the regulated efficiency of the component of virtual role.
As a kind of optional embodiment, as shown in figure 15, above-mentioned the first adjustment unit 906 includes:
(1) maintenance module 1502, in the case where the skeleton point of role's ontology of virtual role is not detected, in visitor Show that the first component of virtual role maintains first state constant on the end of family.
Optionally, since virtual role may only include a workable component, such as knife, knife is located at virtual role On hand, then at this point, virtual role can not replace component.If at this point, receiving component adjustment instruction, then not to virtual role Component: the state of knife is changed.
Through this embodiment, by the case where the skeleton point of virtual role is not detected, keeping the of virtual role The first state of one component is constant, mistake occurs so as to avoid when adjusting virtual role component, improves to virtual role The accuracy that is adjusted of component.
Another aspect according to an embodiment of the present invention additionally provides a kind of for implementing above-mentioned virtual role control method Electronic device, as shown in figure 16, which includes memory 1602 and processor 1604, is stored in the memory 1602 There is computer program, which is arranged to execute the step in any of the above-described embodiment of the method by computer program Suddenly.
Optionally, in the present embodiment, above-mentioned electronic device can be located in multiple network equipments of computer network At least one network equipment.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1 in the operational process of the game at one innings, is shown virtual in the virtual scene of one innings of game in the display interface Role;
S2 receives component adjustment instruction relevant to virtual role;
The first component of virtual role is adjusted to the second state by first state in response to component adjustment instruction by S3, In, first state is one of hidden state or display state, and the second state is another in hidden state or display state Kind, the component that virtual role is allowed to use in one innings of game is multiple components including the first component, in adjustment the When the state of one component, maintain the state of virtual role constant.
Optionally, it will appreciated by the skilled person that structure shown in Figure 16 is only to illustrate, electronic device can also To be smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC and mobile internet device The terminal devices such as (Mobile Internet Devices, MID), PAD.Figure 16 it does not make to the structure of above-mentioned electronic device At restriction.For example, electronic device may also include than shown in Figure 16 more perhaps less component (such as network interface) or With the configuration different from shown in Figure 16.
Wherein, memory 1602 can be used for storing software program and module, such as the virtual role in the embodiment of the present invention Control method and the corresponding program instruction/module of device, the software that processor 1604 is stored in memory 1602 by operation Program and module realize above-mentioned virtual role control method thereby executing various function application and data processing.It deposits Reservoir 1602 may include high speed random access memory, can also include nonvolatile memory, such as one or more magnetic storage Device, flash memory or other non-volatile solid state memories.In some instances, memory 1602 can further comprise opposite In the remotely located memory of processor 1604, these remote memories can pass through network connection to terminal.Above-mentioned network Example includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.Wherein, memory 1602 has Body can be, but not limited to the information such as the state of all parts for storing virtual role.As an example, as shown in figure 16, It can be, but not limited to include display unit 902, the receiving unit in above-mentioned virtual role control device in above-mentioned memory 1602 904 with the first adjustment unit 906.In addition, it can include but other modules for being not limited in above-mentioned virtual role control device Unit repeats no more in this example.
Optionally, above-mentioned transmitting device 1606 is used to that data to be received or sent via a network.Above-mentioned network Specific example may include cable network and wireless network.In an example, transmitting device 1606 includes a network adapter (Network Interface Controller, NIC), can be connected by cable with other network equipments with router to It can be communicated with internet or local area network.In an example, transmitting device 1606 be radio frequency (Radio Frequency, RF) module is used to wirelessly be communicated with internet.
In addition, above-mentioned electronic device further include: display 1608, for showing above-mentioned first virtual role and first virtually Each workable component of role;With connection bus 1610, for connecting the modules component in above-mentioned electronic device.
The another aspect of embodiment according to the present invention, additionally provides a kind of storage medium, is stored in the storage medium Computer program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps Calculation machine program:
S1 in the operational process of the game at one innings, is shown virtual in the virtual scene of one innings of game in the display interface Role;
S2 receives component adjustment instruction relevant to virtual role;
The first component of virtual role is adjusted to the second state by first state in response to component adjustment instruction by S3, In, first state is one of hidden state or display state, and the second state is another in hidden state or display state Kind, the component that virtual role is allowed to use in one innings of game is multiple components including the first component, in adjustment the When the state of one component, maintain the state of virtual role constant.
Optionally, in the present embodiment, those of ordinary skill in the art will appreciate that in the various methods of above-described embodiment All or part of the steps be that the relevant hardware of terminal device can be instructed to complete by program, the program can store in In one computer readable storage medium, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (15)

1. a kind of virtual role control method characterized by comprising
In the operational process of the game at one innings, the virtual angle in the virtual scene of one innings of game is shown in the display interface Color;
Receive component adjustment instruction relevant to the virtual role;
The first component of the virtual role is adjusted to the second state by first state in response to the component adjustment instruction, In, the first state is one of hidden state or display state, and second state is the hidden state or described Another kind in display state, the component that the virtual role is allowed to use in one innings of game be include described first Multiple components including component maintain the state of the virtual role constant when adjusting the state of the first component.
2. the method according to claim 1, wherein in response to the component adjustment instruction by the virtual angle When the first component of color is adjusted to the second state by first state, the method also includes:
The second component of the virtual role is adjusted to described by second state in response to the component adjustment instruction One state, wherein the multiple component includes the second component.
3. the method according to claim 1, wherein
In the case where the first state is the display state, second state is the hidden state, by described It includes: by the size reduction of the first component to the first threshold that one component, which is adjusted to second state by the first state, Value, wherein the first component for narrowing down to the first threshold is invisible;
In the case where the first state is the hidden state, second state is the display state, by described It includes: that the size of the first component is increased to the second threshold that one component, which is adjusted to second state by the first state, Value, wherein the first component for increasing to the second threshold is visible.
4. the method according to claim 1, wherein before one innings of game running, further includes:
Obtaining multiple components of the virtual role Yu the virtual role, wherein the virtual role includes multiple skeleton points, The multiple skeleton point is the point chosen on the virtual role;
The first component in the multiple component is bundled on the first skeleton point of the virtual role, first skeleton point For a skeleton point in the multiple skeleton point, the first component is a component in the multiple component.
5. according to the method described in claim 4, it is characterized in that, in the operational process of one innings of game, further includes:
In the case where receiving the component adjustment instruction, first bone entrained in the component adjustment instruction is obtained Bone point;
The state of component bound in first skeleton point is adjusted to second state by the first state.
6. the method according to claim 1, wherein showing the void of one innings of game on the display interface Before virtual role in quasi- scene, further includes:
The state of the multiple component and the multiple component is configured for the virtual role, wherein in the multiple component The state of each component include the first state and second state.
7. the method according to claim 1, wherein described will be described virtual in response to the component adjustment instruction The first component of role is adjusted to the second state by first state
In the case where the skeleton point of role's ontology of the virtual role is not detected, on the display interface described in display The first component of virtual role maintains the first state constant.
8. a kind of virtual role control device characterized by comprising
Display unit, in the operational process of the game at one innings, showing the virtual field of one innings of game in the display interface Virtual role in scape;
Receiving unit, for receiving component adjustment instruction relevant to the virtual role;
The first adjustment unit, in response to the component adjustment instruction by the first component of the virtual role by first state It is adjusted to the second state, wherein the first state is one of hidden state or display state, and second state is institute State the another kind in hidden state or the display state, the portion that the virtual role is allowed to use in one innings of game Part is multiple components including the first component, when adjusting the state of the first component, maintains the virtual angle The state of color is constant.
9. device according to claim 8, which is characterized in that described device further include:
Second adjustment unit, in response to the component adjustment instruction by the first component of the virtual role by the first shape When state is adjusted to the second state, in response to the component adjustment instruction by the second component of the virtual role by second shape State is adjusted to the first state, wherein the multiple component includes the second component.
10. device according to claim 8, which is characterized in that the first adjustment unit includes:
The first adjustment module, for be the display state in the first state, second state is the hidden state In the case where, by the size reduction of the first component to first threshold, wherein narrow down to described the first of the first threshold Component is invisible;
Second adjustment module, for be the hidden state in the first state, second state is the display state In the case where, the size of the first component is increased into second threshold, wherein increase to described the first of the second threshold Component is visible.
11. device according to claim 8, which is characterized in that described device further include:
First acquisition unit, for before one innings of game running, obtaining the virtual role and the virtual role Multiple components, wherein the virtual role includes multiple skeleton points, and the multiple skeleton point is to choose on the virtual role Point;
Binding unit, for the first component in the multiple component to be bundled in the first skeleton point of the virtual role, First skeleton point is a skeleton point in the multiple skeleton point, and the first component is one in the multiple component A component.
12. device according to claim 11, which is characterized in that described device further include:
Second acquisition unit, in the operational process of one innings of game, in the feelings for receiving the component adjustment instruction Under condition, first skeleton point entrained in the component adjustment instruction is obtained;
Third adjustment unit, for the state of component bound in first skeleton point to be adjusted to institute by the first state State the second state.
13. device according to claim 8, which is characterized in that the first adjustment unit includes:
Maintenance module, in the case where the skeleton point of role's ontology of the virtual role is not detected, in the display Show that the first component of the virtual role maintains the first state constant on interface.
14. a kind of storage medium, the storage medium is stored with computer program, which is characterized in that the computer program fortune Method described in any one of claim 1 to 7 is executed when row.
15. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to execute side described in any one of claim 1 to 7 by the computer program Method.
CN201910372725.6A 2019-05-06 2019-05-06 Virtual role control method and device, storage medium and electronic device Pending CN110124309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910372725.6A CN110124309A (en) 2019-05-06 2019-05-06 Virtual role control method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910372725.6A CN110124309A (en) 2019-05-06 2019-05-06 Virtual role control method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN110124309A true CN110124309A (en) 2019-08-16

Family

ID=67576278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910372725.6A Pending CN110124309A (en) 2019-05-06 2019-05-06 Virtual role control method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN110124309A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111145318A (en) * 2019-12-27 2020-05-12 珠海金山网络游戏科技有限公司 Rendering method and device based on NGUI
CN111672121A (en) * 2020-06-11 2020-09-18 腾讯科技(深圳)有限公司 Virtual object display method and device, computer equipment and storage medium
CN112258390A (en) * 2020-09-10 2021-01-22 华中师范大学 High-precision microscopic virtual learning resource generation method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170259174A1 (en) * 2013-01-29 2017-09-14 Sony Interactive Entertainment America Llc Methods and apparatus for hiding latency in network multiplayer games
CN108563392A (en) * 2018-04-20 2018-09-21 维沃移动通信有限公司 A kind of icon display control method and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170259174A1 (en) * 2013-01-29 2017-09-14 Sony Interactive Entertainment America Llc Methods and apparatus for hiding latency in network multiplayer games
CN108563392A (en) * 2018-04-20 2018-09-21 维沃移动通信有限公司 A kind of icon display control method and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BLADE2001: "3D游戏换装", 《HTTPS://BLOG.CSDN.NET/BLADE2001/ARTICLE/DETAILS/4555570?UTM_SOURCE=APP》 *
王潇: "基于Unity技术3D试衣间的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111145318A (en) * 2019-12-27 2020-05-12 珠海金山网络游戏科技有限公司 Rendering method and device based on NGUI
CN111145318B (en) * 2019-12-27 2023-04-11 珠海金山数字网络科技有限公司 Rendering method and device based on NGUI
CN111672121A (en) * 2020-06-11 2020-09-18 腾讯科技(深圳)有限公司 Virtual object display method and device, computer equipment and storage medium
CN112258390A (en) * 2020-09-10 2021-01-22 华中师范大学 High-precision microscopic virtual learning resource generation method
US11164289B1 (en) 2020-09-10 2021-11-02 Central China Normal University Method for generating high-precision and microscopic virtual learning resource

Similar Documents

Publication Publication Date Title
CN110124309A (en) Virtual role control method and device, storage medium and electronic device
CN109101300B (en) Page rendering method and device and terminal
JP6755325B2 (en) State control method and equipment
CN105915766B (en) Control method based on virtual reality and device
CN107122175B (en) Interface creating method and device
CN109697123A (en) The rendering method and device of game animation, storage medium, electronic device
CN102736849A (en) Menu layout processing method and device
CN108920229A (en) Information processing method, device and storage medium and terminal
JP7238136B2 (en) OBJECT CONTROL METHOD AND OBJECT CONTROL DEVICE, COMPUTER PROGRAM, AND ELECTRONIC DEVICE
US20180011466A1 (en) Programmable logic controller, method for controlling programmable logic controller, and control program
CN107219969B (en) 3D display method and apparatus
EP3258328B1 (en) Plc control data generation device, plc control data generation method, and plc control data generation program
CN108771866A (en) Virtual object control method in virtual reality and device
CN109189400A (en) Program dissemination method and device, storage medium, processor
CN110096322A (en) The method and device of adaptive terminal screen, storage medium, electronic device
CN105528804A (en) Processing method and device of skeleton chain in computer animation
CN105631921B (en) The processing method and processing device of image data
CN109683913A (en) Generate method and device, the computer equipment, storage medium of compressed package
CN108543308B (en) Method and device for selecting virtual object in virtual scene
EP2830017A1 (en) Method for providing an online game enabling the user to change the shape of an item and a system thereof
CN111766989B (en) Interface switching method and device
CN112202650A (en) Method and system for controlling intelligent equipment by WeChat small program
US20130234928A1 (en) Apparatus and method for controlling screen
CN104965786B (en) A kind of adjustment method of application program, debugging host and operation host
CN109395373B (en) Object 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190816