Virtual scene editing method and device, equipment and storage medium
By using the graphical user interface to associate functional components and scene components in the game, and configuring trigger code blocks, the problem of single gameplay in building virtual scenes in the existing technology is solved, and a richer game experience and interactivity are achieved.
Patent Information
- Application Number
- CN202410653430.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-06
AI Technical Summary
In existing game technology, the method of building a virtual scene to be edited is simple and interactive events cannot be configured, resulting in insufficient player experience.
Through the graphical user interface to display the virtual scene to be edited, players can associate target functional components and scene components, configure event parameters, condition parameters, action parameters, and trigger code blocks to achieve dynamic control during the game running stage.
It enhances players' ability to create their own gameplay, improves game experience and fun, increases interactivity, and allows players to quickly create expected virtual scenes.
Smart Images

Figure CN118605784A
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a virtual scene editing method, device, equipment and storage medium. Background Art
[0002] With the rapid development of the Internet and the gaming industry, games have become an indispensable element in people's leisure and entertainment.
[0003] There are some building games in the prior art, which provide players with virtual building blocks of various shapes. Players can build or place scene components of different shapes in the game scene to generate a virtual scene to be edited with the player's desired shape in the game scene, or generate a virtual construction map with the player's desired shape and desired function in the game scene.
[0004] However, with this construction method, players can only build some simple virtual scenes to be edited in the game scene, and cannot configure some interactive events for the edited virtual scenes, which causes the problem of a single gameplay method for building virtual scenes to be edited. Summary of the invention
[0005] The purpose of this application is to provide a virtual scene editing method, device, equipment and storage medium to address the deficiencies in the above-mentioned prior art, so as to solve the problem of a single gameplay method for building a virtual scene to be edited in the prior art.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a virtual scene editing method, wherein a graphical user interface is displayed on a terminal device, wherein the graphical user interface displays a virtual scene to be edited provided by a running game program, wherein the virtual scene to be edited includes a scene component, and the scene component is configured to generate a corresponding virtual object during the game running stage, wherein the method includes:
[0008] In response to a trigger operation on a target functional component, controlling the association between the target functional component and the target scenario component, wherein the target functional component is configured as a component encapsulating a trigger code block;
[0009] Displaying a configuration interface corresponding to the target functional component through the graphical user interface, the configuration interface including attribute parameters of the target functional component, the attribute parameters including at least one of the following: event parameters, condition parameters and action parameters;
[0010] In response to an editing operation on the configuration interface, determining a current attribute parameter of the target functional component according to the editing operation;
[0011] During the game running phase, the target scene component is triggered to control the game behavior according to the current properties of the target function component.
[0012] In a second aspect, another embodiment of the present application provides a virtual scene editing device, the device comprising: a control module, a display module and a determination module, wherein:
[0013] The control module is used to respond to a trigger operation on a target functional component and control the association between the target functional component and the target scene component, wherein the target functional component is configured as a component encapsulating a trigger code block;
[0014] The display module is used to display a configuration interface corresponding to the target functional component through the graphical user interface, wherein the configuration interface includes attribute parameters of the target functional component, and the attribute parameters include at least one of the following: event parameters, condition parameters, and action parameters;
[0015] The determination module is used to respond to an editing operation on the configuration interface and determine the current attribute parameters of the target functional component according to the editing operation;
[0016] The control module is specifically used to control the game behavior according to the current attributes of the target function component through the target scene component during the game running stage.
[0017] In the third aspect, another embodiment of the present application provides a virtual scene editing device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, when the virtual scene editing device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of any method described in the first aspect above.
[0018] In a fourth aspect, another embodiment of the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any method described in the first aspect are executed.
[0019] The beneficial effect of the present application is as follows: by adopting the virtual scene editing method provided by the present application, the player associates the target scene component in the virtual scene to be edited and the triggered target function component based on the virtual scene to be edited provided by the running game program displayed in the graphical user, and the target function component is pre-encapsulated with a trigger code block, so that the player can determine the target scene component that needs to be configured with the target function component in the virtual scene to be edited based on his own wishes, and determine the current attribute parameters of the target function component based on the editing operation input by the player in the configuration interface corresponding to the target function component, so that the attributes of the target scene component can be changed by the target function component with the attribute parameters configured, so that during the game running stage, the player can trigger the current attributes of the target function component through the target scene component to quickly create a virtual scene to be edited that the player expects, so that the player can realize his own gameplay in the game, which improves the player's gaming experience and enhances the fun and interactivity of the player's game. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 A flowchart of a virtual scene editing method provided in one embodiment of the present application;
[0022] Figure 2 A schematic diagram of a graphical user interface provided in one embodiment of the present application;
[0023] Figure 3 A schematic diagram of a flow chart of a virtual scene editing method provided by another embodiment of the present application;
[0024] Figure 4 A schematic diagram of a graphical user interface provided by another embodiment of the present application;
[0025] Figure 5 A schematic diagram of a graphical user interface provided by another embodiment of the present application;
[0026] Figure 6 A schematic diagram of a graphical user interface provided by another embodiment of the present application;
[0027] Figure 7 A schematic diagram of a flow chart of a virtual scene editing method provided by another embodiment of the present application;
[0028] Figure 8A schematic diagram of a graphical user interface provided by another embodiment of the present application;
[0029] Fig. 9 A schematic diagram of the structure of a virtual scene editing device provided in one embodiment of the present application;
[0030] Fig.10 A schematic diagram of the structure of a virtual scene editing device provided by another embodiment of the present application;
[0031] Fig.11 A schematic diagram of the structure of a virtual scene editing device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0033] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0034] The virtual scene editing method in one embodiment of the present application can be run on a local terminal device or a server. When the virtual scene editing method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0035] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the virtual scene editing method are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the player side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0036] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0037] In addition, the flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of order, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of this application, and can also remove one or more operations from the flowchart.
[0038] To facilitate understanding of the embodiments of the present application, some of the terms involved in the present application are explained below:
[0039] Event-Condition-Action (ECA): is a design pattern or rule that is often used to describe the logic of executing corresponding actions according to certain conditions when a specific event occurs. This pattern is widely used in systems that need to respond to events and perform actions based on conditions. Among them, the event of ECA is the starting point for triggering an action to occur; the condition is a set of conditions that determine whether the action is executed. Only when these conditions are met will the action associated with the event be executed; the action is the operation to be performed when the event occurs and the conditions are met.
[0040] The following is an explanation of a virtual scene editing method provided in an embodiment of the present application in combination with a number of specific application examples. Figure 1 A flowchart of a virtual scene editing method provided by an embodiment of the present application is provided. The method is applied to a terminal device. A graphical user interface is displayed on the terminal device. The graphical user interface displays a virtual scene to be edited provided by a running game program. The virtual scene to be edited includes a scene component. The scene component is configured to generate a corresponding virtual object during the game running stage, such as Figure 1 As shown, the method includes:
[0041] Step 101: In response to a trigger operation on a target functional component, control the association of the target functional component with the target scene component.
[0042] The target functional component is configured as a component encapsulating an ECA trigger code block. In this embodiment, different functional components have different types of window-sealing parameters, and provide different parameters for setting operations, so that different editing effects can be achieved in this way. For example, a functional component can encapsulate preset event parameters and action parameters, and open conditional parameters for setting. After the conditional parameters of the functional component are set, the corresponding game logic is determined based on the set conditional parameters and the encapsulated event parameters and action parameters.
[0043] In an embodiment of the present application, for example, a plurality of functional components may be prompted to be provided in a virtual scene to be edited, and different functional components are used to implement different ECA rules. A user may select a functional component having a target ECA rule from among the plurality of functional components as a target functional component, and by associating the target functional component with a target scene component control, an association relationship may be established between the ECA rule preset on the target functional component and the target scene component, and when the target scene component satisfies the ECA rule, the action corresponding to the ECA rule may be executed.
[0044] Figure 2 A schematic diagram of a graphical user interface provided in an embodiment of the present application, such as Figure 2As shown, the graphical user interface may include, for example, a virtual scene to be edited and candidate scene components, wherein the candidate scene components may be displayed in the form of a candidate list on the right side of the graphical user interface, and the candidate list may include, for example, multiple building types, and the building types include, but are not limited to: building type, obstacle type, decoration type, function type, basic type, main type, etc. Each type may also include multiple subtypes, for example, the basic type may also include basic components and track components, and the other side of the candidate list displays multiple candidate scene components under the currently selected building type. The player may select a scene component from the multiple candidate scene components and place the selected scene component in the virtual scene to be edited to become a part of the virtual scene to be edited. The virtual scene to be edited is a virtual scene to be edited composed of multiple scene components.
[0045] Step 102: Displaying a configuration interface corresponding to the target functional component through a graphical user interface.
[0046] The configuration interface includes attribute parameters of the target functional component, and the attribute parameters include at least one of the following: event parameters, condition parameters, and action parameters; the specific content of the attribute parameters is determined according to the type of the target functional component, and different types may correspond to different attribute parameters, or, the attribute parameters of different types may partially require the player to actively set, and partially may be automatically generated according to the player's settings for other attribute parameters. The method for determining the specific attribute parameters and the specific parameter content included in the attribute parameters can be flexibly adjusted according to user needs, and are not limited to those given in the above embodiments.
[0047] In some possible embodiments, for example, a configuration window corresponding to the configuration interface can be displayed in the form of a pop-up window on the graphical user interface. The display position of the pop-up window can be, for example, a preset position around the target scene component. For example, the configuration window can be displayed above the target scene component. Of course, it can also be displayed below the target scene component or at other positions; or, it can also be displayed above the virtual scene to be edited with a preset transparency. The display method and display position of the specific configuration interface can be flexibly adjusted according to the graphical user interface, and are not limited to those given in the above embodiments.
[0048] Step 103: Respond to an editing operation on the configuration interface and determine current attribute parameters of the target functional component according to the editing operation.
[0049] In an embodiment of the present application, the configuration of the target scene components in the virtual scene to be edited can be performed, for example, during the configuration process of the virtual scene to be edited, that is, the player can build the virtual scene to be edited while configuring the target functional components of each scene component built in the virtual scene to be edited; or, after the construction of the virtual scene to be edited is completed, the target functional components of each scene component in the virtual scene to be edited can be configured. It should be understood that the above embodiments are only exemplary descriptions, and the specific configuration nodes and configuration methods can be flexibly adjusted according to user needs, and are not limited to those given in the above embodiments.
[0050] In one embodiment of the present application, for example, in response to a click operation on a determination configuration control in a display configuration interface, it can be determined whether all items to be configured in the target functional component have been configured. If so, it is determined that the target functional component has been successfully configured. If not, a prompt message is returned to prompt the player to configure the unconfigured items to be configured. The player needs to continue to configure the unconfigured items to be configured, and only after all the items to be configured are configured can the configuration be determined to be successful. In order to facilitate the intuitiveness of the player's viewing, for example, the unconfigured items can be displayed in red, or displayed in a display manner different from other configured items, so that the player can intuitively determine the unconfigured items among multiple items to be configured, thereby improving the convenience and intuitiveness of the player's configuration. It should be understood that the above embodiments are only exemplary descriptions, and the specific configuration method and the display method of each item to be configured can be flexibly adjusted according to user needs, and are not limited to those given in the above embodiments.
[0051] If the player needs to cancel the configuration of the target functional component, for example, he can click the cancel control (close control) on the configuration interface. After canceling the control, it will be determined that the player does not currently need to associate the target functional component with the target scene component, so the association relationship between the target functional component and the target scene component will be canceled, and the configuration interface will be triggered only after the player's next association operation.
[0052] Step 104: During the game running phase, the target scene component is used to trigger the control of the game behavior according to the current properties of the target function component.
[0053] In an embodiment of the present application, before controlling the game behavior, for example, in response to a determination operation of the current attribute parameters of the target function component, the attributes of the target scene component can be updated according to the current attribute parameters of the target function component; and the attribute logic corresponding to the target function component can be added to the target scene component; that is, in the present application, the target scene component is bound to the target function component to achieve the effect of updating the attributes of the target scene component through the target function component.
[0054] For example, if a player controls a controlled virtual object to move in a game scene, if it moves to a target scene component, the game behavior will be controlled based on the current attributes of the target function component corresponding to the target scene component. For example, based on the character type of the controlled virtual object, whether the target scene component is visible to the controlled virtual object is determined; or based on the current attribute type of the target function component, the controlled virtual object is transmitted to a preset position; or based on the front attribute type of the current target function component, the virtual reward obtained by the controlled virtual object after completing the corresponding task of the target scene component is determined. The specific game behavior performed is determined based on the type of the target function component and the current attributes of the target function component, and is not limited to those given in the above embodiments.
[0055] By adopting the virtual scene editing method provided by the present application, the player associates the target scene component in the virtual scene to be edited and the triggered target function component based on the virtual scene to be edited provided by the running game program displayed in the graphical user. The target function component is pre-packaged with an ECA trigger, so that the player can determine the target scene component that needs to be configured with the target function component in the virtual scene to be edited based on his own wishes, and determine the current attribute parameters of the target function component based on the editing operation entered by the player in the configuration interface corresponding to the target function component, so that the attributes of the target scene component can be changed by the target function component with the attribute parameters configured, so that during the game running stage, the player can trigger the current attributes of the target function component through the target scene component to quickly create a virtual scene to be edited that the player expects, so that the player can realize his own gameplay in the game, which improves the player's gaming experience and enhances the fun and interactivity of the player's game.
[0056] Optionally, based on the above embodiment, the embodiment of the present application may further provide a virtual scene editing method, and the implementation process of the above method is illustrated below in conjunction with the accompanying drawings. Figure 3 A flowchart of a virtual scene editing method provided by another embodiment of the present application is shown as follows: Figure 3 As shown, before step 101, the method may further include:
[0057] Step 111: In response to a selection operation among multiple types of functional components, a target functional component is determined.
[0058] In the embodiment of the present application, multiple types of functional components can be displayed at preset positions on the graphical user interface, for example, in the form of a list. Figure 2As shown, for example, a virtual scene to be edited is displayed in a graphical user interface, and an event module may be displayed on the left side of the graphical user interface. The event module includes multiple types of functional components, such as but not limited to: first type components (if else type components), second type components (choise type components) or third type components (transmission type components), etc. The display method may, for example, display the event type names of various functional components, or may also display the event identifiers of various functional components. For example, the event identifier corresponding to the first type component may be, for example, "@event"; the event identifier corresponding to the second type component may be, for example, "() event"; the event identifier corresponding to the third type component may be, for example, "[] type event".
[0059] Among them, the code templates of various types of functional components are pre-configured in the bottom layer of the game. During the configuration process, it is only necessary to obtain the attribute parameter information configured by the player, and then generate the complete code of the final target functional component based on the template of each type of functional code. This setting method allows players to configure various types of functional components without understanding the code, lowers the configuration threshold of functional components, provides players with an effective configuration channel, improves the configuration efficiency of functional components, and provides players with more gameplay for building different virtual scenes to be edited in the game scene, thereby further improving the player's gaming experience and the convenience of configuring the virtual scenes to be edited.
[0060] In an embodiment of the present application, in order to simplify the content displayed on the graphical user interface, the graphical user interface may display, for example, component identifiers of various functional components. For example, if the user long presses each component identifier, or the user's cursor stays on the component identifier for more than a preset time, then the complete component type name and component configuration method corresponding to the component identifier may be displayed on one side of the component identifier. It should be understood that the above embodiments are only exemplary descriptions, and the component types included in the specific multiple categories of functional components and the display methods of the multiple categories of functional components on the graphical user interface can be flexibly adjusted according to user needs and are not limited to those given in the above embodiments.
[0061] Step 112: In response to the determination operation on the target scene component, an association relationship between the target function component and the target scene component is established.
[0062] In some possible embodiments of the present application, a method for determining a target scene component may be, for example, first selecting a target functional component from multiple types of functional components, and then, in response to a drag operation continuous with the operation of determining the target functional component, determining that a scene component corresponding to an end position of the drag operation is the target scene component.
[0063] In some other possible embodiments, after determining the target functional component among multiple types of functional components, the target scene component determination interface is entered, in which, for example, each selectable scene component is displayed in a manner different from that of unselectable scene components, for example, the selectable scene components are displayed normally, and the unselectable scene components are displayed highlighted; in response to the user's selection operation of the target scene component among multiple scene components, the target scene component is determined; wherein, for example, in the target scene component determination interface, the target scene component selected by the user can be highlighted, and after the player checks and determines that the target scene component is the scene component that he needs to bind with the target functional component, the determination operation for the target scene component is triggered to bind the target scene component with the target functional component; it should be understood that the above embodiments are only exemplary descriptions, and the establishment of the association relationship between the specific target scene component and the target functional component can be flexibly adjusted according to user needs, and is not limited to the above embodiments.
[0064] In some possible embodiments, for example, as the drag operation continues with the determination of the target functional component, if the target functional component moves to the virtual scene to be edited, the scene component corresponding to the current position of the drag operation can be determined according to the current position of the drag operation, and the scene component corresponding to the current position of the drag operation can be highlighted, so that the player can clearly and intuitively determine the scene component corresponding to the current position of the drag operation. If the player believes that the scene component corresponding to the drag operation is the target scene component that needs to be configured, the drag operation can be ended at the scene component, and the scene component corresponding to the end of the drag operation can be determined as the target scene component.
[0065] The above-mentioned method of determining the target scene component allows the player to determine the target scene component of the target functional component to be configured in the virtual scene to be edited through continuous operations after determining the target functional component. In the process of determining the target scene component, the player can intuitively view the selection of the target scene component to reduce the possibility of misoperation.
[0066] In some possible embodiments, for example, the target function component may include: a first type component, a first type component, the first type component is configured with a first operating logic parameter and a second operating logic parameter; wherein the first operating logic parameter includes a first condition parameter and a first action parameter, and the second operating logic parameter includes a second condition parameter and a second action parameter, wherein the first condition parameter is configured to be determined in response to a condition editing instruction, and the second action parameter is configured to be determined in response to an action editing instruction, the first action parameter is determined based on the second action parameter, and the second condition parameter is determined based on the first condition parameter; that is, in an embodiment of the present application, after the player determines the first condition parameter, the second condition parameter will be determined directly based on the first condition parameter; and after the player configures the second action parameter, the first action parameter will be determined directly based on the second action parameter.
[0067] The first condition parameter or the second condition parameter is a condition parameter for triggering the target functional component; the condition parameter includes an object condition parameter or a behavior parameter. The specific configuration method may be, for example: in response to a conditional editing instruction in the configuration area for the first condition parameter, determining the first condition parameter; according to the first condition parameter, determining a plurality of candidate action parameters corresponding to the first condition parameter; in response to a determination operation for a second action parameter among the plurality of candidate action parameters, determining the second action parameter.
[0068] For example, if the target scene component is a virtual door, and the player configures the first condition parameter in the first operation logic parameter to be our camp, and configures the second action parameter in the second operation logic parameter to be invisible, then the second condition parameter will be determined to be the opposite of the first condition parameter: the enemy camp according to the first condition parameter; and the first action parameter will be determined to be the opposite of the second action parameter: visible according to the second action parameter. In other words, the first operation logic parameter indicates that the virtual door is visible to players in our camp, and the second operation logic parameter indicates that the virtual door is invisible to players in the enemy camp; the above configuration realizes that it can automatically determine whether the virtual door is visible to the virtual object entering the virtual door according to the character attributes (enemy camp or our camp) of the virtual object entering the virtual door, that is, it should be understood that the above embodiment is only an exemplary description, and the specific configuration method and configuration content of the first operation logic parameter and the second operation logic parameter can be flexibly adjusted according to user needs, and are not limited to the above embodiment.
[0069] In some possible embodiments of the present application, for example, only the configuration area of the first condition parameter and the configuration area of the second action parameter may be displayed in the configuration interface. After the player configures the first condition parameter in the configuration area of the first condition parameter, the second condition parameter is automatically determined and generated according to the first condition parameter. After the player configures the second action parameter in the configuration area of the second action parameter, the first action parameter is automatically determined and generated according to the second action parameter; or, in some other possible embodiments, the first operation logic parameter configuration area and the second operation logic parameter configuration area may be displayed simultaneously in the configuration interface, that is, the configuration area of the first condition parameter, the configuration area of the second condition parameter, the configuration area of the first action parameter, and the configuration area of the second action parameter are displayed simultaneously, and the player may set the first operation logic parameter and the second operation logic parameter respectively in the configuration interface; it should be understood that the above embodiments are only exemplary descriptions, and the contents included in the specific configuration interface and the setting methods of the first operation logic parameter and the second operation logic parameter can be flexibly adjusted according to user needs, and are not limited to those given in the above embodiments.
[0070] Take the example that the configuration interface only includes the configuration area of the first condition parameter and the configuration area of the second action parameter. For example, the player can configure the first condition parameter and the second action parameter in the configuration interface. The configuration method may be, for example, in response to a determination operation on the first condition parameter configuration area, displaying multiple candidate condition parameters under the first condition parameter; in response to a selection operation among multiple candidate conditions, determining the first condition parameter; in response to a determination operation on the second action parameter configuration area, displaying the second candidate action parameter; in response to a selection operation among multiple candidate action parameters, determining the second action parameter; configuring the first operation logic parameter according to the target condition, target action and target scene component, and automatically generating the second operation logic parameter according to the first operation logic parameter.
[0071] Figure 4 A schematic diagram of a graphical user interface provided by another embodiment of the present application is shown as follows: Figure 4 As shown, the target scene component can be highlighted in the graphical user interface, or the border of the target scene component can be bold, or the target scene component can be displayed in a display color that is different from other scene components. The display method of the specific target scene component can be flexibly adjusted and is not limited to the above-mentioned embodiments; in addition, a configuration interface is displayed at a preset position around the target scene component on the current graphical user interface, and the configuration interface displays a first condition parameter configuration area and a second action parameter configuration area.
[0072] Figure 4The dotted arrow between the @ component and the configuration interface is only for exemplary purposes, and is used to indicate that the current configuration interface is the configuration interface corresponding to the @ component. During specific application, the virtual arrow may not be displayed in the graphical user interface.
[0073] Among them, the first condition parameter is an if parameter, and the second action parameter is an else parameter. The player can select the first condition parameter corresponding to the if branch from the multiple candidate condition parameters corresponding to the branch of the if parameter. Among them, the multiple candidate condition parameters can, for example, include: the selection of player camp attributes (for example, the red camp or the blue camp), or it can also be to break a specified object (for example, defeat a non-player virtual object), or to obtain a specified object, or to trigger a specified event, etc. Multiple candidate conditions can, for example, be displayed in the form of a drop-down list on one side of the if parameter branch. Among them, in addition to the multiple candidate condition parameters enumerated above, for example, the drop-down list may also include a custom option. For example, the player can configure the first condition parameter corresponding to the if branch by himself after selecting the custom option. It should be understood that the above embodiment is only an exemplary description. The specific method for determining the first condition parameter can be flexibly adjusted according to user needs and is not limited to the above embodiment.
[0074] The player can also select the second event parameter corresponding to the else parameter branch from the multiple candidate event parameters corresponding to the else parameter branch, where the multiple candidate event parameters may include, for example, yes / no visible, yes / no open, yes / no locked, etc. The multiple candidate event parameters may be displayed on one side of the else parameter branch in the form of a drop-down list. It should be understood that the above embodiment is only an exemplary description, and the specific method of determining the multiple candidate events can be flexibly adjusted according to user needs and is not limited to the above embodiment.
[0075] In some other possible embodiments, for example, the target function component may include: a second type component, the second type component includes condition parameters and action parameters; wherein the condition parameters are configured to be determined in response to a conditional editing operation, and the action parameters are pre-configured instructions; the configuration of the current attribute parameters may, for example, be determined in response to a conditional editing instruction for a target condition configuration area among the multiple condition configuration areas, to configure the target condition parameters of the target condition configuration area.
[0076] In some possible embodiments, the conditional parameters may be virtual material conditional parameters, which are used to indicate the virtual materials obtained after the virtual object enters the target scene component; the virtual materials may be, for example, virtual experience, virtual props, virtual equipment or virtual resources, etc.; it should be understood that the above embodiments are only exemplary descriptions, and the configuration method of the specific conditional parameters and the content included in the virtual materials can be flexibly adjusted according to user needs, and are not limited to those given in the above embodiments.
[0077] In an embodiment of the present application, the configuration interface may, for example, include a plurality of preset numbers of condition configuration areas; or, the configuration interface may, for example, include a plurality of condition configuration areas, but the player may reduce the number of condition configuration areas, as long as the number of condition configuration areas is greater than or equal to a minimum number threshold and less than or equal to a maximum number threshold; the configuration method of event parameters may, for example, be: in response to a determination operation for a target event parameter among a plurality of event parameters, determine the target event parameter corresponding to the second type component.
[0078] Among them, the configuration interface includes multiple condition types under the first type component. Before determining the target condition parameters, it is also necessary to respond to the determination operation for the target condition type in the multiple condition types, and display the multiple condition parameters under the target condition type in the configuration interface; the multiple condition types can be, for example, virtual props, virtual bonuses, virtual skills, virtual experience or other virtual resources, etc. After the player determines the target condition type, multiple candidate condition parameters under the target condition type are displayed. For example, for the virtual prop type, it may include virtual recovery props, virtual firearms, virtual weapons, virtual throwing objects, etc.; for the virtual bonus type, it may include increasing the attack power by 5%, or increasing the attack power by 10%, or increasing the blood volume by 5%, or increasing the blood volume by 10%, or increasing the defense by 5%, or increasing the defense by 10%, etc.; it should be understood that the above embodiments are only exemplary descriptions, and the type content included in the specific condition type, as well as the specific condition parameter content of the candidate condition parameters included in each condition type, can be flexibly adjusted according to user needs, and are not limited to those given in the above embodiments.
[0079] Figure 5 A schematic diagram of a graphical user interface provided by another embodiment of the present application is shown as follows: Figure 5 As shown, a configuration interface is displayed at a preset position around the target scene component on the current graphical user interface, and a plurality of condition configuration areas are displayed in the configuration interface. In an embodiment of the present application, for example, three condition configuration areas may be included, namely: "choise1", "choise2" and "choise3", wherein each condition configuration area has its own corresponding plurality of candidate condition parameters. For example, after the player selects the first condition configuration area "choise1", options of a plurality of condition types corresponding to "choise1" are triggered, and the player can determine the first condition parameter corresponding to the first condition configuration area from the options of the plurality of condition types; similarly, the configuration methods of the condition parameters of the second condition configuration area "choise2" and the third condition configuration area "choise3" are the same as those provided in the above-mentioned embodiment; of course, the number of condition configuration areas may also be 2, 4 or any number, and the present application does not impose any restrictions thereon.
[0080] Figure 5 The dotted arrow between the () component and the configuration interface is only for exemplary purposes, and is used to indicate that the current configuration interface is the configuration interface corresponding to the () component. During specific application, the virtual arrow may not be displayed in the graphical user interface.
[0081] In some other possible embodiments, for example, the functional component may include: a third type component, the third type component is configured with conditional parameters and action parameters; wherein the conditional parameters are configured to be determined in response to a conditional editing operation; and the action parameters are pre-configured instructions. The conditional parameters are location conditional parameters, which are used to control the virtual object to enter the target scene component and switch the position of the virtual object from the current position to the corresponding position of the location conditional parameters; wherein the location conditional parameters may be, for example, the identifier of a scene component in the virtual scene area to be edited, for example, each scene component in the virtual scene to be edited has a unique corresponding preset identifier, so the unique corresponding scene component can be directly determined in the virtual scene to be edited according to the identifier of the scene component; or, the location conditional parameters may also be a fixed position coordinate in the virtual scene to be edited, etc. It should be understood that the above embodiments are only exemplary descriptions, and the parameter type of the specific location conditional parameters can be flexibly adjusted according to user needs, and is not limited to the above embodiments.
[0082] In an embodiment of the present application, the configuration interface includes a conditional configuration area, and the method of configuring the current attribute parameters may be, for example, responding to a conditional editing instruction for the conditional configuration area and determining a target conditional parameter configured in the conditional configuration area.
[0083] Figure 6 A schematic diagram of a graphical user interface provided by another embodiment of the present application, such as Figure 6 As shown, for example, a configuration interface is displayed at a preset position around the target scene component on the current graphical user interface, and a conditional configuration area is displayed in the configuration interface. In response to a configuration operation on the conditional configuration area, corresponding target condition parameters are configured for the target scene component, wherein the target condition parameters are used to indicate the corresponding target transmission destination after the player enters the target scene component. The target transmission destination can be, for example, any scene component in the virtual scene to be edited, such as a trap scene component, or a starting scene component corresponding to the virtual scene to be edited, or an end scene component corresponding to the virtual scene to be edited. Of course, it can also be any scene component in the virtual scene to be edited, and can be adjusted according to user needs.
[0084] Figure 6 The dotted arrow between the [] component and the configuration interface is for exemplary purposes only, and is used to indicate that the current configuration interface is the configuration interface corresponding to the [] component. During specific application, the virtual arrow may not be displayed in the graphical user interface.
[0085] Among them, the configuration of the target condition parameter (target transmission destination) can, for example, be to determine, through the player's selection operation, the target scene component selected in the virtual scene to be edited as the target transmission destination. For example, after the player enters the configuration interface for the third type of component, the display of the configuration window is cancelled, and only the virtual scene to be edited is displayed on the graphical user interface. In response to the player's finger / cursor movement operation in the virtual scene to be edited, the scene component corresponding to the current position of the finger / cursor is highlighted, and in response to the determination operation on the target scene component, the target scene component is determined to be the target transmission destination corresponding to the third type of component.
[0086] Alternatively, you can Figure 6 As shown, a configuration interface is displayed on a graphical user interface, and a plurality of optional candidate condition parameters (candidate transmission destinations) are displayed in a drop-down list in a condition configuration area in the configuration interface, and a target transmission destination is determined in response to a selection operation of the player among the plurality of candidate transmission destinations; it should be understood that the above embodiment is only an exemplary description, and the specific method of configuring the target transmission destination can be flexibly adjusted according to user needs, and is not limited to the above embodiment.
[0087] Among them, in order to ensure the normal triggering of the third type component after configuration, before configuring the target transmission destination, it is also necessary to determine whether there is a trigger prop corresponding to the third type component in the area corresponding to the target scene component. The trigger prop can be, for example, a transmission trigger prop; if it exists, the target function component and the target scene component are controlled to be associated. At this time, it means that the player has the transmission trigger prop, and the configuration of the target transmission destination can be performed normally; if not, it is determined that the target function component and the target scene component cannot be associated, that is, if the player does not have the transmission trigger prop, it is determined that the target scene component cannot be configured with the third type component.
[0088] Optionally, based on the above embodiment, the embodiment of the present application may further provide a virtual scene editing method, and the implementation process of the above method is illustrated below in conjunction with the accompanying drawings. Figure 7 A flowchart of a virtual scene editing method provided by another embodiment of the present application is shown as follows: Figure 7 As shown, the method may also include:
[0089] Step 121: In response to a control operation on a controlled virtual object, the controlled virtual object is controlled to move in a game scene corresponding to the virtual scene to be edited.
[0090] In an embodiment of the present application, for example, after clicking a trial play control on a graphical user interface, the controlled virtual object corresponding to the player can be placed in the virtual scene to be edited, so that the player can try out the virtual scene to be edited by controlling the movement of the controlled virtual object in the virtual scene to be edited. Through such a setting method, the player can determine whether the currently constructed virtual scene to be edited meets the player's expectations by trying out the virtual scene to be edited. If it does, the currently constructed virtual scene to be edited can be published. If it does not, the player can further adjust the virtual scene to be edited after exiting the trial play mode to ensure that the trial play results meet the player's expectations. It should be understood that the above embodiment is only an exemplary description, and the player can also directly publish the virtual scene to be edited without trying out the virtual scene to be edited. The specific details can be flexibly adjusted according to user needs and are not limited to the above embodiment.
[0091] Step 122: According to the current state information of the controlled virtual object, the target scene component is triggered to control the game behavior based on the current attribute according to the target function component.
[0092] The method of controlling the game behavior may be, for example, controlling the controlled virtual object or controlling the target scene component to execute the game behavior corresponding to the current attribute of the target function component.
[0093] For example, if the current target functional component is a first type component, for example, there are two opposing red and blue camps in the general game in the current game, and the target scene component of the current target functional component to be configured is a virtual door. For example, the player configures the first condition object corresponding to the if branch as "blue camp member", and configures the second action object corresponding to the else branch as "object is invisible". Then the game can determine the second condition object as "non-blue camp" and the first action condition as "object is visible" based on the player's configuration operation; the target functional component of the current virtual door configuration is: if there is a virtual object approaching the virtual door, first determine whether the virtual object belongs to a blue camp member or a red camp member. If the virtual object belongs to a blue camp member, the display state of the current virtual door is visible; if the virtual object does not belong to the blue camp, the display state of the current virtual door is invisible; that is, only the blue camp members can see the virtual door, and other camp members except the blue camp members cannot see the virtual door.
[0094] Or, for example, there may be a first non-player virtual object in the current game, and the target scene component of the target functional component to be configured is a virtual door. For example, the player configures the first condition parameter corresponding to the if branch as "defeating the first non-player virtual object", and configures the second action parameter corresponding to the else branch as "the door is locked". Then, based on the player's configuration operation, the game can determine the second condition object as "not defeating the first non-player virtual object" and the first action parameter as "door unlocked"; the target functional component of the current virtual door configuration is: if a controlled virtual object approaches the virtual door, first determine whether the controlled virtual object defeats the first non-player virtual object, If defeated, the state of the virtual door is unlocked, and the player can control the virtual object to open the virtual door to enter the next virtual scene component; if not defeated, the state of the virtual door is locked, and the controlled virtual object controlled by the player cannot open the virtual door, that is to say, only after defeating the first non-player virtual object can the virtual door be opened to enter the next virtual scene component, otherwise the virtual door is in a locked state and cannot be opened; it should be understood that the above embodiment is only an exemplary description, and the event details and specific configuration methods of the target function component corresponding to the specific target scene component can be flexibly adjusted according to user needs, and are not limited to the above embodiment.
[0095] If the current target functional component is a second type component, an example is given, for example, the current target scene component is the target virtual ground, and the player currently configures three condition configuration areas respectively: choise1: the first virtual firearm; choise2: increase magic defense by 15%; choise3: the first virtual throwing object; it means that after the controlled virtual object enters the scene component corresponding to the target virtual ground, the virtual materials corresponding to the above three condition parameters can be obtained, that is, the first virtual firearm is obtained, the magic defense of the controlled virtual object is increased by 15%, and the first virtual throwing object is obtained. It should be understood that the above embodiments are only exemplary descriptions, and the specific configuration can be flexibly adjusted according to user needs, and is not limited to the above embodiments.
[0096] If the current target functional component is a third type component, for example, the current target construction unit is a virtual door, and the location parameter is a ground spike area. If the controlled virtual object enters the virtual door, the controlled virtual object will be transmitted to the scene component corresponding to the ground spike area in the virtual scene to be edited, and the life value of the controlled virtual object will be reduced or killed; of course, the location parameter can also be set to, for example, the end area of the virtual scene to be edited (the scene component corresponding to the clearance destination). If the controlled virtual object enters the virtual door, it will be transmitted to the clearance destination, etc.; it should be understood that the above embodiments are only exemplary descriptions, and the specific transmission method of the controlled virtual object and the target transmission purpose can be flexibly adjusted according to user needs, and are not limited to those given in the above embodiments.
[0097] Figure 8 A schematic diagram of a graphical user interface provided by another embodiment of the present application, such as Figure 8 As shown, the corresponding target function component logo is displayed on each target scene component on the graphical user interface. If the player needs to modify / view the event details of the target function component, he can click the corresponding target function component logo to reopen the configuration window corresponding to the target function component to view / modify the configured configuration information. If the player needs to delete the target function component, he can click the delete button ("×") on the right side of the target function component logo to delete the target function component configured for the target scene component.
[0098] By adopting the virtual scene editing method provided by the present application, players can configure corresponding target function components for each target scene component by selecting and dragging the target function component from multiple types of function components in the graphical user interface. Since the multiple types of function components are preset, players do not need to understand the editor to directly configure the target function time for each scene component based on the preset multiple types of function components, thereby providing players with an effective editing channel and providing more players with a way to customize the configuration of the virtual scene to be edited, so that players can easily and quickly create a customized virtual scene to be edited, which greatly improves the playability of the game and increases the stickiness between players and the game.
[0099] The following is an explanation of the virtual scene editing device provided by the present application in conjunction with the accompanying drawings. The virtual scene editing device can execute the above Figure 1-Figure 8 The specific implementation and beneficial effects of any virtual scene editing method are as mentioned above and will not be described in detail below.
[0100] Fig. 9 A schematic diagram of the structure of a virtual scene editing device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the device includes: a control module 201, a display module 202 and a determination module 203, wherein:
[0101] The control module 201 is used to respond to the trigger operation on the target functional component and control the association between the target functional component and the target scene component, wherein the target functional component is configured as a component encapsulating a trigger code block;
[0102] A display module 202, used to display a configuration interface corresponding to the target functional component through a graphical user interface, the configuration interface including attribute parameters of the target functional component, the attribute parameters including at least one of the following: event parameters, condition parameters and action parameters;
[0103] The determination module 203 is used to respond to the editing operation on the configuration interface and determine the current attribute parameters of the target functional component according to the editing operation;
[0104] The control module 201 is specifically used to control the game behavior according to the current attributes of the target function component through the target scene component during the game running stage.
[0105] Optionally, based on the above embodiment, the embodiment of the present application may also provide a virtual scene editing device, as shown below in conjunction with the accompanying drawings. Fig. 9 The implementation process of the given device is described by way of example. Fig.10 A schematic diagram of the structure of a virtual scene editing device provided in another embodiment of the present application is shown in FIG. Fig.10 As shown, the device also includes: a generating module 204, wherein:
[0106] The determination module 203 is specifically configured to determine a target functional component in response to a selection operation among multiple types of functional components;
[0107] The generation module is specifically used to establish an association relationship between the target function component and the target scene component in response to a determination operation on the target scene component.
[0108] Optionally, the functional component includes: a first type component, the first type component is configured with a first operating logic parameter and a second operating logic parameter; wherein the first operating logic parameter includes a first condition parameter and a first action parameter, and the second operating logic parameter includes a second condition parameter and a second action parameter, wherein the first condition parameter is configured to be determined in response to a conditional editing instruction, the second action parameter is configured to be determined in response to an action editing instruction, the first action parameter is determined based on the second action parameter, and the second condition parameter is determined based on the first condition parameter.
[0109] Optionally, the first condition parameter or the second condition parameter is a condition parameter for triggering a target functional component; the condition parameter includes an object condition parameter or a behavior parameter.
[0110] Optionally, the configuration interface includes a first condition parameter configuration area and a second action parameter configuration area, and a determination module 203 is specifically used to determine the first condition parameter in response to a conditional editing instruction in the first condition parameter configuration area; determine a plurality of candidate action parameters corresponding to the first condition parameter based on the first condition parameter; and determine the second action parameter in response to a determination operation for a second action parameter among the plurality of candidate action parameters.
[0111] Optionally, the functional component includes: a second type component, the second type component includes a condition parameter and an action parameter; wherein the condition parameter is configured to be determined in response to a conditional editing operation, and the action parameter is a pre-configured instruction.
[0112] Optionally, the condition parameter is a virtual material condition parameter, which is used to indicate the virtual material obtained after the virtual object enters the target scene component.
[0113] Optionally, the configuration interface includes multiple condition configuration areas, and the determination module 203 is specifically configured to respond to a condition editing instruction for a target condition configuration area among the multiple condition configuration areas and determine a target condition parameter configured in the target condition configuration area.
[0114] Optionally, the functional components include: a third type component, wherein the third type component is configured with conditional parameters and action parameters; wherein the conditional parameters are configured to be determined in response to a conditional editing operation; and the action parameters are pre-configured instructions.
[0115] Optionally, the condition parameter is a location condition parameter, which is used to control the position of the virtual object to be switched from the current position to the corresponding position of the location condition parameter after the virtual object enters the target scene component.
[0116] Optionally, the configuration interface includes a condition configuration area, and the determination module 203 is specifically configured to determine a target condition parameter configured in the condition configuration area in response to a condition editing instruction for the condition configuration area.
[0117] Optionally, the determination module 203 is specifically used to determine whether there is a trigger prop corresponding to the third type of component in the area corresponding to the target scene component; if not, it is determined that the target function component and the target scene component cannot be associated; if so, the association between the target function component and the target scene component is controlled.
[0118] Optionally, the control module 201 is specifically used to control the controlled virtual object to move in the game scene corresponding to the virtual scene to be edited in response to the control operation on the controlled virtual object; if the controlled virtual object moves to a target scene component configured with a target functional component, then according to the current state information of the controlled virtual object, the target scene component is triggered to control the game behavior based on the current attributes according to the target functional component.
[0119] Optionally, the determination module 203 is specifically used to respond to the determination operation of the current attribute parameters of the target functional component, update the attributes of the target scene component according to the current attribute parameters of the target functional component, and add attribute logic corresponding to the target functional component to the target scene component.
[0120] By using the virtual scene editing device provided by the present application, the player associates the target scene component in the virtual scene to be edited and the triggered target function component based on the virtual scene to be edited provided by the running game program displayed in the graphical user. The target function component is pre-packaged with an ECA trigger, so that the player can determine the target scene component that needs to be configured with the target function component in the virtual scene to be edited based on his own wishes, and determine the current attribute parameters of the target function component based on the editing operation entered by the player in the configuration interface corresponding to the target function component, so that the attributes of the target scene component can be changed by the target function component with the attribute parameters configured. Therefore, during the game running stage, the player can trigger the current attributes of the target function component through the target scene component to quickly create a virtual scene to be edited that the player expects, so that the player can realize his own gameplay in the game, which improves the player's gaming experience and enhances the fun and interactivity of the player's game.
[0121] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0122] Fig.11 This is a schematic diagram of the structure of a virtual scene editing device provided in an embodiment of the present application. The virtual scene editing device can be integrated into a terminal device or a chip of the terminal device.
[0123] like Fig.11 As shown, the virtual scene editing device includes: a processor 501 , a bus 502 and a storage medium 503 .
[0124] The processor 501 is used to store programs. The processor 501 calls the program stored in the storage medium 503 to execute the above Figure 1-Figure 8 Corresponding method embodiments.
[0125] Specifically, the processor 501 performs the above-mentioned virtual scene editing method in the following steps:
[0126] In response to a trigger operation on a target functional component, controlling the association between the target functional component and the target scenario component, wherein the target functional component is configured as a component encapsulating a trigger code block;
[0127] Displaying a configuration interface corresponding to the target functional component through the graphical user interface, the configuration interface including attribute parameters of the target functional component, the attribute parameters including at least one of the following: event parameters, condition parameters and action parameters;
[0128] In response to an editing operation on the configuration interface, determining a current attribute parameter of the target functional component according to the editing operation;
[0129] During the game running phase, the target scene component is triggered to control the game behavior according to the current properties of the target function component.
[0130] In some embodiments, when the processor 501 executes the response to the trigger operation on the functional component and controls the association between the functional component and the target scene component, it is also used to execute:
[0131] In response to a selection operation among multiple types of functional components, determining the target functional component;
[0132] In response to a determination operation on a target scene component, an association relationship between the target function component and the target scene component is established.
[0133] In some embodiments, the functional component includes: a first type component, the first type component is configured with a first operating logic parameter and a second operating logic parameter; wherein the first operating logic parameter includes a first condition parameter and a first action parameter, and the second operating logic parameter includes a second condition parameter and a second action parameter, wherein the first condition parameter is configured to be determined in response to a conditional editing instruction, the second action parameter is configured to be determined in response to an action editing instruction, the first action parameter is determined based on the second action parameter, and the second condition parameter is determined based on the first condition parameter.
[0134] In some embodiments, the first condition parameter or the second condition parameter is a condition parameter for triggering a target functional component; the condition parameter includes an object condition parameter or a behavior parameter.
[0135] In some embodiments, the configuration interface includes a first condition parameter configuration area and a second action parameter configuration area, and the processor 501, when executing the response to the editing operation on the configuration interface and determining the current attribute parameters of the target functional component according to the editing operation, is further used to execute:
[0136] In response to a conditional editing instruction in the first conditional parameter configuration area, determining a first conditional parameter;
[0137] Determine, according to the first condition parameter, a plurality of candidate action parameters corresponding to the first condition parameter;
[0138] In response to a determination operation on a second action parameter among the plurality of candidate action parameters, the second action parameter is determined.
[0139] In some embodiments, the functional component includes: a second type component, the second type component includes a condition parameter and an action parameter; wherein the condition parameter is configured to be determined in response to a conditional editing operation, and the action parameter is a pre-configured instruction.
[0140] In some embodiments, the condition parameter is a virtual material condition parameter, which is used to indicate the virtual material obtained after the virtual object enters the target scene component.
[0141] In some embodiments, the configuration interface includes a plurality of conditional configuration areas, and when the processor 501 executes the response to the editing operation on the configuration interface and determines the current attribute parameters of the target functional component according to the editing operation, it is further configured to execute:
[0142] In response to a condition editing instruction for a target condition configuration area among the plurality of condition configuration areas, a target condition parameter configured in the target condition configuration area is determined.
[0143] In some embodiments, the functional components include: a third type component, the third type component is configured with conditional parameters and action parameters; wherein the conditional parameters are determined in response to a conditional editing operation; and the action parameters are pre-configured instructions.
[0144] In some embodiments, the condition parameter is a location condition parameter, which is used to control the position of the virtual object to switch from the current position to the corresponding position of the location condition parameter after the virtual object enters the target scene component.
[0145] In some embodiments, the configuration interface includes a conditional configuration area, and the processor 501, when executing the response to the editing operation on the configuration interface and determining the current attribute parameters of the target functional component according to the editing operation, is further configured to execute:
[0146] In response to a condition editing instruction for a condition configuration area, a target condition parameter configured in the condition configuration area is determined.
[0147] In some embodiments, when executing the control to associate the target functional component with the target scene component, the processor 501 is further configured to execute:
[0148] Determine whether there is a trigger prop corresponding to the third type component in the area corresponding to the target scene component;
[0149] If not, determining that the target functional component is not associable with the target scenario component;
[0150] If so, control the association between the target function component and the target scene component.
[0151] In some embodiments, the processor 501 is further configured to execute:
[0152] In response to a control operation on a controlled virtual object, controlling the controlled virtual object to move in a game scene corresponding to the virtual scene to be edited;
[0153] If the controlled virtual object moves to a target scene component configured with a target functional component, the processor 501, when executing the triggering of controlling the game behavior according to the current attribute of the target functional component through the target scene component, is further used to execute:
[0154] According to the current state information of the controlled virtual object, the target scene component is triggered to control the game behavior based on the current attribute according to the target function component.
[0155] In some embodiments, before executing the step of triggering the control of the game behavior according to the current attribute of the target function component through the target scene component, the processor 501 is further configured to execute:
[0156] In response to the determination operation of the current attribute parameters of the target functional component, the attributes of the target scene component are updated according to the current attribute parameters of the target functional component; so as to add the attribute logic corresponding to the target functional component to the target scene component.
[0157] By using the virtual scene editing device provided by the present application, the player associates the target scene component in the virtual scene to be edited and the triggered target function component based on the virtual scene to be edited provided by the running game program displayed in the graphical user. The target function component is pre-packaged with an ECA trigger, so that the player can determine the target scene component that needs to be configured with the target function component in the virtual scene to be edited based on his own wishes, and determine the current attribute parameters of the target function component based on the editing operation entered by the player in the configuration interface corresponding to the target function component, so that the attributes of the target scene component can be changed by the target function component with the attribute parameters configured. Therefore, during the game running stage, the player can trigger the current attributes of the target function component through the target scene component to quickly create a virtual scene to be edited that the player expects, so that the player can realize his own gameplay in the game, which improves the player's gaming experience and enhances the fun and interactivity of the player's game.
[0158] Optionally, the present application also provides a program product, such as a storage medium, on which a computer program is stored, including a program that, when executed by a processor, executes an embodiment corresponding to the above method.
[0159] The specific steps of the processor executing the above virtual scene editing method include:
[0160] In response to a trigger operation on a target functional component, controlling the association between the target functional component and the target scenario component, wherein the target functional component is configured as a component encapsulating a trigger code block;
[0161] Displaying a configuration interface corresponding to the target functional component through the graphical user interface, the configuration interface including attribute parameters of the target functional component, the attribute parameters including at least one of the following: event parameters, condition parameters and action parameters;
[0162] In response to an editing operation on the configuration interface, determining a current attribute parameter of the target functional component according to the editing operation;
[0163] During the game running phase, the target scene component is triggered to control the game behavior according to the current properties of the target function component.
[0164] In some embodiments, when the processor executes the control of associating the functional component with the target scene component in response to the trigger operation on the functional component, the processor is further configured to execute:
[0165] In response to a selection operation among multiple types of functional components, determining the target functional component;
[0166] In response to a determination operation on a target scene component, an association relationship between the target function component and the target scene component is established.
[0167] In some embodiments, the functional component includes: a first type component, the first type component is configured with a first operating logic parameter and a second operating logic parameter; wherein the first operating logic parameter includes a first condition parameter and a first action parameter, and the second operating logic parameter includes a second condition parameter and a second action parameter, wherein the first condition parameter is configured to be determined in response to a conditional editing instruction, the second action parameter is configured to be determined in response to an action editing instruction, the first action parameter is determined based on the second action parameter, and the second condition parameter is determined based on the first condition parameter.
[0168] In some embodiments, the first condition parameter or the second condition parameter is a condition parameter for triggering a target functional component; the condition parameter includes an object condition parameter or a behavior parameter.
[0169] In some embodiments, the configuration interface includes a first condition parameter configuration area and a second action parameter configuration area, and when the processor executes the response to the editing operation on the configuration interface and determines the current attribute parameter of the target functional component according to the editing operation, it is also used to execute:
[0170] In response to a conditional editing instruction in the first conditional parameter configuration area, determining a first conditional parameter;
[0171] Determine, according to the first condition parameter, a plurality of candidate action parameters corresponding to the first condition parameter;
[0172] In response to a determination operation on a second action parameter among the plurality of candidate action parameters, the second action parameter is determined.
[0173] In some embodiments, the functional component includes: a second type component, the second type component includes a condition parameter and an action parameter; wherein the condition parameter is configured to be determined in response to a conditional editing operation, and the action parameter is a pre-configured instruction.
[0174] In some embodiments, the condition parameter is a virtual material condition parameter, which is used to indicate the virtual material obtained after the virtual object enters the target scene component.
[0175] In some embodiments, the configuration interface includes a plurality of conditional configuration areas, and when the processor executes the response to the editing operation on the configuration interface and determines the current attribute parameters of the target functional component according to the editing operation, it is further configured to execute:
[0176] In response to a condition editing instruction for a target condition configuration area among the plurality of condition configuration areas, a target condition parameter configured in the target condition configuration area is determined.
[0177] In some embodiments, the functional components include: a third type component, the third type component is configured with conditional parameters and action parameters; wherein the conditional parameters are determined in response to a conditional editing operation; and the action parameters are pre-configured instructions.
[0178] In some embodiments, the condition parameter is a location condition parameter, which is used to control the position of the virtual object to switch from the current position to the corresponding position of the location condition parameter after the virtual object enters the target scene component.
[0179] In some embodiments, the configuration interface includes a conditional configuration area, and when the processor executes the response to the editing operation on the configuration interface and determines the current attribute parameter of the target functional component according to the editing operation, it is also used to execute:
[0180] In response to a condition editing instruction for a condition configuration area, a target condition parameter configured in the condition configuration area is determined.
[0181] In some embodiments, when executing the control to associate the target function component with the target scene component, the processor is further configured to execute:
[0182] Determine whether there is a trigger prop corresponding to the third type component in the area corresponding to the target scene component;
[0183] If not, determining that the target functional component is not associable with the target scenario component;
[0184] If so, control the association between the target function component and the target scene component.
[0185] In some embodiments, the processor is further configured to perform:
[0186] In response to a control operation on a controlled virtual object, controlling the controlled virtual object to move in a game scene corresponding to the virtual scene to be edited;
[0187] If the controlled virtual object moves to a target scene component configured with a target function component, the processor, when executing the triggering of controlling the game behavior according to the current attribute of the target function component through the target scene component, is further used to execute:
[0188] According to the current state information of the controlled virtual object, the target scene component is triggered to control the game behavior based on the current attribute according to the target function component.
[0189] In some embodiments, before executing the step of triggering the control of the game behavior according to the current attribute of the target function component through the target scene component, the processor is further configured to execute:
[0190] In response to the determination operation of the current attribute parameters of the target functional component, the attributes of the target scene component are updated according to the current attribute parameters of the target functional component; so as to add the attribute logic corresponding to the target functional component to the target scene component.
[0191] By using the storage medium provided by the present application, the player associates the target scene component in the virtual scene to be edited and the triggered target function component based on the virtual scene to be edited provided by the running game program displayed in the graphical user. The target function component is pre-packaged with an ECA trigger, so that the player can determine the target scene component that needs to be configured with the target function component in the virtual scene to be edited based on his own wishes, and determine the current attribute parameters of the target function component based on the editing operation entered by the player in the configuration interface corresponding to the target function component, so that the attributes of the target scene component can be changed by the target function component with the attribute parameters configured, so that during the game running stage, the player can trigger the current attributes of the target function component through the target scene component to quickly create a virtual scene to be edited that the player expects, so that the player can realize his own gameplay in the game, which improves the player's gaming experience and enhances the fun and interactivity of the player's game.
[0192] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0193] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0194] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0195] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
Claims
1. A virtual scene editing method, characterized in that: A graphical user interface is displayed on the terminal device, wherein the graphical user interface displays a virtual scene to be edited provided by the running game program, wherein the virtual scene to be edited includes a scene component, and the scene component is configured to generate a corresponding virtual object during the game running stage. The method includes: In response to a trigger operation on a target functional component, controlling the association of the target functional component with a target scenario component, wherein the target functional component is configured as a component encapsulating a trigger code block; Displaying a configuration interface corresponding to the target functional component through the graphical user interface, the configuration interface including attribute parameters of the target functional component, the attribute parameters including at least one of the following: event parameters, condition parameters and action parameters; In response to an editing operation on the configuration interface, determining a current attribute parameter of the target functional component according to the editing operation; During the game running phase, the target scene component is triggered to control the game behavior according to the current properties of the target function component.
2. The method according to claim 1, characterized in that The response to the triggering operation of the functional component controls the association between the functional component and the target scene component, and further includes: In response to a selection operation among multiple types of functional components, determining the target functional component; In response to a determination operation on a target scene component, an association relationship between the target function component and the target scene component is established.
3. The method according to claim 1, characterized in that The functional components include: A first type component, wherein the first type component is configured with a first operating logic parameter and a second operating logic parameter; wherein the first operating logic parameter includes a first condition parameter and a first action parameter, and the second operating logic parameter includes a second condition parameter and a second action parameter, wherein the first condition parameter is configured to be determined in response to a conditional editing instruction, and the second action parameter is configured to be determined in response to an action editing instruction, the first action parameter is determined based on the second action parameter, and the second condition parameter is determined based on the first condition parameter.
4. The method according to claim 3, characterized in that The first condition parameter or the second condition parameter is a condition parameter for triggering a target functional component; the condition parameter includes an object condition parameter or a behavior parameter.
5. The method according to claim 3, characterized in that The configuration interface includes a first condition parameter configuration area and a second action parameter configuration area, and the response to the editing operation on the configuration interface determines the current attribute parameters of the target functional component according to the editing operation, including: In response to a conditional editing instruction in the first conditional parameter configuration area, determining a first conditional parameter; Determine, according to the first condition parameter, a plurality of candidate action parameters corresponding to the first condition parameter; In response to a determination operation on a second action parameter among the plurality of candidate action parameters, the second action parameter is determined.
6. The method according to claim 1, characterized in that The functional components include: a second type component, the second type component includes a condition parameter and an action parameter; wherein the condition parameter is configured to be determined in response to a conditional editing operation, and the action parameter is a pre-configured instruction.
7. The method according to claim 6, characterized in that The condition parameter is a virtual material condition parameter, which is used to indicate the virtual material obtained after the virtual object enters the target scene component.
8. The method according to claim 6, characterized in that The configuration interface includes a plurality of condition configuration areas, and the response to an editing operation on the configuration interface, and determining the current attribute parameters of the target functional component according to the editing operation, includes: In response to a condition editing instruction for a target condition configuration area among the plurality of condition configuration areas, a target condition parameter configured in the target condition configuration area is determined.
9. The method according to claim 1, characterized in that The functional components include: a third type component, wherein the third type component is configured with conditional parameters and action parameters; wherein the conditional parameters are configured to be determined in response to a conditional editing operation; and the action parameters are pre-configured instructions.
10. The method according to claim 9, characterized in that The condition parameter is a location condition parameter, which is used to control the position of the virtual object to switch from the current position to the corresponding position of the location condition parameter after the virtual object enters the target scene component.
11. The method according to claim 9, characterized in that The configuration interface includes a conditional configuration area, and the response to an editing operation on the configuration interface, and determining the current attribute parameters of the target functional component according to the editing operation, includes: In response to a condition editing instruction for a condition configuration area, a target condition parameter configured in the condition configuration area is determined.
12. The method according to claim 9, characterized in that The controlling and associating the target function component with the target scene component includes: Determine whether there is a trigger prop corresponding to the third type component in the area corresponding to the target scene component; If not, determining that the target functional component is not associable with the target scenario component; If so, control the association between the target function component and the target scene component.
13. The method according to claim 1, characterized in that The method further comprises: In response to a control operation on a controlled virtual object, controlling the controlled virtual object to move in a game scene corresponding to the virtual scene to be edited; If the controlled virtual object moves to a target scene component configured with a target function component, the method of triggering the control of the game behavior according to the current attribute of the target function component through the target scene component includes: According to the current state information of the controlled virtual object, the target scene component is triggered to control the game behavior based on the current attribute according to the target function component.
14. The method according to claim 1, wherein: Before triggering the control of the game behavior according to the current attribute of the target function component through the target scene component, the method further includes: In response to the determination operation of the current attribute parameters of the target functional component, the attributes of the target scene component are updated according to the current attribute parameters of the target functional component; so as to add the attribute logic corresponding to the target functional component to the target scene component.
15. A virtual scene editing device, characterized in that: The device comprises: a control module, a display module and a determination module, wherein: The control module is used to respond to a trigger operation on a target functional component and control the association between the target functional component and a target scene component, wherein the target functional component is configured as a component encapsulating a trigger code block; The display module is used to display a configuration interface corresponding to the target functional component through a graphical user interface, wherein the configuration interface includes attribute parameters of the target functional component, and the attribute parameters include at least one of the following: event parameters, condition parameters, and action parameters; The determination module is used to respond to an editing operation on the configuration interface and determine the current attribute parameters of the target functional component according to the editing operation; The control module is specifically used to control the game behavior according to the current attributes of the target function component through the target scene component during the game running stage.
16. A virtual scene editing device, characterized in that: The device includes: a processor, a storage medium and a bus, the storage medium stores machine-readable instructions executable by the processor, when the virtual scene editing device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the method described in any one of claims 1 to 14 above.
17. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 14 is executed.
Citation Information
Cited By
Method and device for editing role component in game, program product and electronic equipment
CN119896859A
Role component editing method, device, program product and electronic equipment in game
CN119896859B
