Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the application provides an interface interaction method, an interface interaction device, electronic equipment and a computer storage medium. The interface interaction device can be integrated in electronic equipment, and the electronic equipment can be a server or a terminal and other equipment.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), basic cloud computing services such as big data and an artificial intelligent platform.
The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc. The terminal and the server may be directly or indirectly connected through wired or wireless communication, which is not limited herein.
For example, as shown in fig. 1, the terminal transmits a trigger instruction to the server in response to a trigger operation to the target client. And the server returns the virtual scene to the terminal according to the trigger instruction, wherein the virtual scene comprises at least one virtual role, a starting scene position and at least two scene positions to be stayed. The terminal is used for displaying a scene interface of at least part of a scene picture of the virtual scene, responding to a first operation executed for the scene interface, leading a starting scene position and/or at least one of at least two scene positions to be stayed to be positioned outside the scene interface, and determining a target to-be-stayed scene position from the at least two to-be-stayed scene positions according to the starting scene position and/or the to-be-stayed scene position which are positioned outside the scene interface, and controlling at least one virtual character to move to the target to-be-stayed scene position in response to a second operation for the scene interface.
In addition, "plurality" in the embodiments of the present application means two or more. "first" and "second" and the like in the embodiments of the present application are used for distinguishing descriptions and are not to be construed as implying relative importance.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
In this embodiment, the interface interaction method of the present application will be described from the viewpoint of the interface interaction device, and for convenience, the interface interaction device will be described in detail below as integrated in a terminal, that is, the terminal will be used as an execution subject.
Referring to fig. 2, fig. 2 is a flow chart illustrating an interface interaction method according to an embodiment of the present application. The interface interaction method can comprise the following steps:
s201, displaying a scene interface for displaying at least part of scene pictures of a virtual scene, wherein the virtual scene comprises at least one virtual role, a starting scene position and at least two scene positions to be stayed.
The virtual scene refers to a scene that can provide a user with a certain behavior or event in a virtual space, and the type of the virtual scene can be set according to actual situations, for example, the virtual scene can be at least one of a teaching virtual scene, a game scene or a live broadcast scene, the game scene can be a skateboard scene or a skiing scene, and the live broadcast scene can be a live broadcast robbery scene.
When the virtual scene is a teaching virtual scene, the teaching virtual scene may refer to a scene in which a teacher teaches a student to slide. When the virtual scene is a game scene, the game scene may be used for a user to participate in a game. When the virtual scene is a live-broadcast red-packet scene, the virtual scene may refer to a scene in which the red packet is robbed by controlling the virtual character to move on the virtual scene.
The virtual character refers to a virtual character that can be controlled by an object, the object may refer to a user, and the virtual character refers to a digital representation of a human figure, and the digital representation may be a two-dimensional virtual character or a three-dimensional virtual character, and the embodiment is not limited herein.
The at least one virtual character may or may not be located at the starting scene location. The number of at least one virtual character may be set according to practical situations, for example, the number of at least one virtual character may be four or one, which is not limited herein.
Alternatively, when at least one virtual character includes a plurality of virtual characters, different virtual characters in the at least one virtual character may represent different objects.
For example, if at least one virtual character includes two virtual characters, one virtual character may represent a target object, and the other virtual character may represent a teammate object. The target object refers to an object of the control terminal, and the teammate object refers to an object of the control other terminal.
When the virtual scene is a game scene and the game scene is a ski scene, the target object may represent a target player and the teammate object may represent a teammate player. When the virtual scene is a teaching virtual scene, the target object may represent a teacher and the teammate object may represent a student. When the virtual scene is a live robbery scene, the target object may represent a target audience, and the teammate object may represent a teammate audience.
Alternatively, different virtual roles in at least one virtual role may be controlled by an object, an object may be a target object or a teammate object, or different virtual roles in at least one virtual role may be controlled by different objects, for example, a master virtual role in at least one virtual role is controlled by a target object, and a teammate virtual role in at least one virtual role is controlled by a teammate object.
When different virtual roles in at least one virtual role are controlled by target objects, for example, the at least one virtual role comprises a virtual role p1, a virtual role p2 and a virtual role p3, the teammate object comprises a teammate object g1 and a teammate object g2, the master virtual role is the virtual role p1, the teammate virtual role is the virtual role p2 and the virtual role p3, and the target objects can control the virtual role p1, the virtual role p2 and the virtual role p3 to move on a virtual scene.
When the master virtual character of the at least one virtual character is controlled by the target object, for example, the at least one virtual character comprises a virtual character p1, a virtual character p2 and a virtual character p3, the teammate object comprises a teammate object g1 and a teammate object g2, the master virtual character is the virtual character p1, the teammate virtual character is the virtual character p2 and the virtual character p3, the target object can control the virtual character p1 to move on the virtual scene, the teammate object g1 can control the virtual character p2 to move on the virtual scene, and the teammate object g2 can control the virtual character p3 to move on the virtual scene.
Optionally, the terminal may display a scene interface for displaying at least a part of the scene of the virtual scene in response to a triggering operation on an icon of the target client, or the terminal may display a scene interface for displaying at least a part of the scene of the virtual scene in response to a triggering operation on an activity control of a page on the target client.
The type of the target client may be selected according to practical situations, for example, the target client may be a game client or a social client, which is not limited herein.
The form of the target client may be set according to the actual situation, for example, the target client may be in the form of an applet, an application program or a web page, which is not limited herein.
Alternatively, at least one virtual character may be directly included in the scene interface, or may be displayed on the scene interface in response to a sliding operation on the scene interface.
When at least one virtual character is displayed on the scene interface in response to a sliding operation on the scene interface, for example, if the virtual scene is a ski scene, the scene interface before the at least one virtual character is displayed on the scene interface in response to the sliding operation on the scene interface may be as shown in fig. 3, and when the at least one virtual character is displayed on the scene interface in response to the sliding operation on the scene interface, the scene interface may be as shown in fig. 4.
In some embodiments, the at least one virtual character comprises a master virtual character and a teammate virtual character, the scene interface comprising a teammate invitation control, after displaying the scene interface for presenting at least a portion of the scene view of the virtual scene, further comprising:
responding to the triggering operation of the teammate invitation control, and displaying a friend list page;
Responding to triggering operation of a target friend account in the friend list page, and linking the sharing invitation to the target friend account;
receiving agreement operation of a target friend account aiming at the invitation link;
and updating the teammate virtual roles on the scene interface according to the consent operation and the target friend account.
The object corresponding to the target friend account may be referred to as a teammate object. Updating the teammate virtual character on the scene interface according to the consent operation and the target friend account number can be understood as displaying at least one of the target friend account number, the friend nickname and the friend head portrait on the teammate virtual character according to the consent operation.
In the embodiment of the application, the scene interface further comprises a teammate invitation control, and the teammate invitation control is triggered to display a friend list page; responding to triggering operation of a target friend account in the friend list page, and linking the sharing invitation to the target friend account; receiving agreement operation of a target friend account aiming at the invitation link; and updating the teammate virtual roles on the scene interface according to the consent operation and the target friend account, so that information related to the target friend account is displayed on the scene interface through the teammate virtual roles.
For example, when the virtual scene is a skiing scene, the displayed scene interface may be as shown in fig. 4, and at this time, the master virtual character is virtual character a, and when the terminal responds to the triggering operation of the teammate invitation control, and updates the teammate virtual character on the scene interface according to the consent operation and the target friend account, the scene interface may be as shown in fig. 5, and at this time, the teammate virtual character is virtual character B, virtual character C, and virtual character D.
Optionally, the terminal may directly receive the consent operation of the target friend account for the invitation link, or the terminal may also receive the consent operation of the target friend account for the invitation link through the server.
When receiving the consent operation of the target friend account for the invitation link through the server, the server can store a task list, after receiving the consent operation of the target friend account for the invitation link, the server stores the target friend account in the task list, when the terminal returns to the scene interface, the terminal sends a request to the server, and the server returns the head portrait corresponding to the target friend account in the task list to the terminal according to the request, so that the teammate virtual role corresponding to the target friend account is displayed on the scene interface by the terminal, for example, as shown in fig. 6.
In some embodiments, after receiving the consent operation of the target friend account for the invitation link, further comprising:
acquiring the number of target friend accounts;
determining the position number of at least two scene positions to be stayed according to the number;
and adjusting the positions of at least two scenes to be stayed in the virtual scene according to the number of the positions.
The number of the positions of the at least two scene positions to be stayed can be determined according to the number through a preset number mapping strategy, and the number of the positions is smaller as the number of the positions is larger, the number of the positions is smaller, and the number of the positions is smaller.
The preset number mapping policy may be set according to an actual situation, for example, the preset number mapping policy may be a preset number mapping function or a preset number mapping table, which is not limited herein.
In the embodiment of the application, the number of the target friend accounts is obtained; determining the position number of at least two scene positions to be stayed according to the number; and adjusting the positions of at least two scenes to be stayed in the virtual scene according to the number of the positions, so that the number of the positions of the at least two scenes to be stayed in the virtual scene is the number of the positions, and the number of the positions of the at least two scenes to be stayed in the virtual scene is changed along with the change of the number of the target friend accounts.
In some embodiments, displaying a scene interface for presenting at least a portion of a scene view of a virtual scene includes:
acquiring an activity task instruction, and acquiring the activity skill level of a target object according to the activity task instruction;
generating a virtual scene according to the activity skill level of the target object;
a scene interface for displaying at least a portion of a scene picture of a virtual scene is displayed.
Wherein, the activity skill level represents the skill level of the target object in the virtual scene. When the virtual scene is a skiing scene, the activity skill level may be referred to as a skiing skill level.
In the embodiment of the application, an activity task instruction is acquired, and the activity skill level of a target object is acquired according to the activity task instruction; generating a virtual scene according to the activity skill level of the target object; the method comprises the steps of displaying a scene interface for displaying at least part of scene pictures of a virtual scene, so that when the activity skill levels of objects are different, the generated virtual scenes are different, the difficulty of the different virtual scenes is different, the higher the activity skill level is, the higher the difficulty of the virtual scene is, the lower the activity skill level is, the difficulty of the virtual scene is lower, and different participation experiences can be brought to different objects, so that the liveness of the objects is further improved.
In some embodiments, generating a virtual scene from the activity skill level of the target object includes:
acquiring at least one candidate virtual scene;
and screening candidate virtual scenes matched with the activity skill level of the target object from at least one candidate virtual scene to obtain the virtual scene.
In the embodiment of the application, at least one candidate virtual scene is preset, the candidate grade corresponding to each candidate virtual scene is set, and after the terminal obtains the activity skill grade of the target object, the candidate virtual scene corresponding to the candidate grade matched with the activity skill grade is used as the virtual scene.
Alternatively, when at least one candidate virtual scene is included, a scene selection page may also be displayed before the scene interface is displayed, and then, in response to a selection operation on the scene selection page, the candidate virtual scene corresponding to the selection operation is taken as the virtual scene.
In some embodiments, when the at least one virtual character includes a plurality of virtual characters, obtaining the activity skill level of the target object according to the activity task instruction includes:
acquiring the activity skill level of a target object and the activity skill level of a teammate object according to the activity task instruction;
Generating a virtual scene according to the activity skill level of the target object, including:
determining a target activity skill level according to the activity skill level of the target object and the activity skill level of the teammate object;
and generating a virtual scene according to the target activity skill level.
In the embodiment of the application, the target activity skill level can be determined according to the activity skill level of the target object and the activity skill level of the teammate object, and then the virtual scene is generated according to the target activity skill level, so that the difficulty of the virtual scene accords with the activity skill level of the target object and the activity skill level of the teammate object.
Wherein the terminal may determine an average level between the activity skill level of the target object and the activity skill level of the teammate object, and then determine the average level as the target activity skill level. Alternatively, the terminal may determine an intermediate level between the activity skill level of the target object and the activity skill level of the teammate object as the target activity skill level. Alternatively, the terminal may determine the maximum activity skill level or the minimum activity skill level among the activity skill level of the target object and the activity skill level of the teammate object as the target activity skill level, and the embodiment is not limited thereto.
Alternatively, the process of generating the virtual scene according to the target activity skill level may be:
acquiring at least one candidate virtual scene;
and screening candidate virtual scenes matched with the target activity skill level from at least one candidate virtual scene to obtain a virtual scene.
In some embodiments, the scene interface further includes a chat information display area, and after displaying the scene interface for presenting at least a portion of the scene frame of the virtual scene, further includes:
acquiring chat information sent by equipment corresponding to a teammate virtual role in at least one virtual role;
chat information is displayed on the chat information display area.
The chat information display area may be set according to actual situations, for example, the chat information display area is within a preset distance range of the virtual character, as shown in fig. 7, where one virtual character may have a corresponding chat information display area, or a plurality of virtual characters may have one chat display area, which is not limited herein.
In the embodiment of the application, the scene interface further comprises a chat information display area, so that the target object and the teammate object can communicate in the virtual scene, and the interaction rate of the target object and the teammate object in the virtual scene is improved.
S202, responding to a first operation executed for a scene interface, and enabling a starting scene position and/or at least one of at least two scene positions to be located outside the scene interface.
The type of the first operation may be set according to actual situations, for example, the first operation may be a drag operation, a click operation, a long press operation, or a sliding operation, which is not limited herein. The operation direction of the first operation may be set according to the actual situation, for example, the first operation may be an upward first operation or a downward first operation, which is not limited herein.
The scene position may be represented by a preset identifier, where the preset identifier may be selected according to an actual situation, for example, the preset identifier may be at least one of a point, a line, a virtual element, or a virtual building, which is not limited herein.
The preset identifiers on the initial scene position and the preset identifiers on the scene position to be stopped may be the same or different, and at least two preset identifiers on the scene position to be stopped may be the same or different.
The number of the at least two scene positions to be stopped may be set according to practical situations, for example, the at least two scene positions to be stopped may include three or four, which is not limited herein.
The terminal may cause the starting scene position and/or at least one of the at least two to-be-stayed scene positions to be located outside the scene interface in response to a first operation on any one of the positions on the scene interface. Alternatively, the terminal may also cause the starting scene position and/or at least one of the at least two to-be-stayed scene positions to be located outside the scene interface in response to the first operation on the at least one virtual character.
Having the starting scene location outside the scene interface may be understood as having the starting scene location originally inside the scene interface, after responding to the first operation performed with respect to the scene interface, having the starting scene location outside the scene interface.
Locating at least one of the at least two to-be-stayed scene locations outside of the scene interface may be understood as the at least one to-be-stayed scene location originally located within the scene interface, and locating the at least one to-be-stayed scene location outside of the scene interface after responding to the first operation performed with respect to the scene interface.
Alternatively, locating at least one of the at least two to-be-stayed scene locations outside of the scene interface may be understood as a first region of the at least one to-be-stayed scene location that is originally located outside of the scene interface, locating the at least one to-be-stayed scene location within the scene interface after responding to a first operation performed with respect to the scene interface, and then locating the at least one to-be-stayed scene location in a second region of the at least one to-be-stayed scene location outside of the scene interface after responding to the first operation performed with respect to the scene interface.
For example, using a line to represent the scene location, the at least one to-be-stayed scene location may be a stay line 1, the scene interface may be as shown in fig. 8 when the at least one to-be-stayed scene location is originally located in a first area outside the scene interface, the scene interface may be as shown in fig. 9 when the at least one to-be-stayed scene location is located inside the scene interface after responding to a first operation performed on the scene interface, and then the scene interface may be as shown in fig. 10 when the at least one to-be-stayed scene location is located in a second area outside the scene interface after responding to the first operation performed on the scene interface.
S203, determining a target scene position to be stayed from at least two scene positions to be stayed according to the initial scene position and/or the scene position to be stayed which are positioned outside the scene interface.
The target scene position to be stayed is the stay position of at least one virtual character.
And S204, responding to a second operation for the scene interface, and controlling at least one virtual character to move to the target to-be-stayed scene position.
The type of the second operation may be set according to the actual situation, for example, when the first operation is a sliding operation, the second operation may be a releasing operation, and when the first operation is a clicking operation, the second operation may be a sliding operation.
It should be appreciated that the master virtual character in the at least one virtual character may be controlled to move to the target stay scene position, or all virtual characters in the at least one virtual character may be controlled to move to the target stay scene position.
When all the virtual characters in the at least one virtual character are controlled to move to the target to-be-stayed scene position, the distance between different virtual characters in the at least one virtual character can be fixed in the moving process, the target to-be-stayed scene position can be the to-be-stayed scene position of the first virtual character in the at least one virtual character, and after the target to-be-stayed scene position is obtained, the target to-be-stayed scene positions of other virtual characters in the at least one virtual character can be determined according to the target to-be-stayed scene position and the distances between the different virtual characters.
When all the virtual characters in the at least one virtual character are controlled to move to the target scenery to stay position, the terminal may send a switching control instruction to the terminal where the teammate object is located in response to the switching control operation, and then the terminal where the teammate object is located may perform steps S201 to S204.
For example, the terminal where the target object is located is a terminal d1, the terminal where the teammate object is located is a terminal d2, the terminal d1 and the terminal d2 both display scene interfaces, at least one virtual character includes a virtual character p1 and a virtual character p2, the terminal d1 determines target to-be-stayed scene positions of the virtual character p1 and the virtual character p2 in response to a first operation performed on the scene interfaces by the target object, the virtual character p1 and the virtual character p2 in the terminal d1 are controlled to move to the target to-be-stayed scene positions, the target to-be-stayed scene positions are sent to the terminal d2, and the terminal d2 controls the virtual character p1 and the virtual character p2 in the terminal d2 to move to the target to-be-stayed scene positions.
The terminal d1 responds to the switching control operation, sends a switching control instruction to the terminal d2, the terminal d2 receives the switching control instruction, and indicates that the terminal d2 can respond to the first operation and the second operation and control movement of the virtual character, therefore, the terminal d2 can respond to the first operation of the teammate object on the scene interface, determine target to-be-stayed scene positions of the virtual character p1 and the virtual character p2, control movement of the virtual character p1 and the virtual character p2 in the terminal d2 to the target to-be-stayed scene positions, send the target to-be-stayed scene positions to the terminal d1, and the terminal d1 controls movement of the virtual character p1 and the virtual character p2 in the terminal d1 to the target to-be-stayed scene positions.
When the master control virtual character in the at least one virtual character is controlled to move to the target to-be-stayed scene position, a first target to-be-stayed scene position of the teammate virtual character in the at least one virtual character sent by other terminals can be obtained, and then the teammate virtual character is controlled to move to the first target to-be-stayed scene position.
The terminal may receive a first target to-be-stayed scene position of a teammate virtual character in at least one virtual character sent by other terminals, the other terminals may determine the first target to-be-stayed scene position of the teammate virtual character by responding to a first operation on a farm Jing Jiemian in the other terminals, and a process of determining the first target to-be-stayed scene position may refer to a process of determining the target to-be-stayed scene position, which is not described herein in detail.
For example, the at least one virtual character includes a virtual character p1, a virtual character p2, and a virtual character p3, the target object controls the virtual character p1 through the terminal d1, the teammate object g1 controls the virtual character p2 through the terminal d2, the teammate object g2 controls the virtual character p3 through the terminal d3, the terminal d1 determines a target stay scene position in response to a first operation performed on the scene interface, controls the virtual character p1 in the terminal d1 to move to the target stay scene position in response to a second operation on the scene interface, and transmits the target stay scene position to the terminal d2 and the terminal d3. After the terminal d2 and the terminal d3 receive the target to-be-stayed scene position, the terminal d2 controls the virtual character p1 in the terminal d2 to move to the target to-be-stayed scene position, and the terminal d3 controls the virtual character p1 in the terminal d3 to move to the target to-be-stayed scene position.
If the teammate object g1 does not control the movement of the virtual character p2 and the teammate object g2 does not control the movement of the virtual character p3 at this time, no movement occurs in the virtual character p2 and the virtual character p3 in the terminal d1, the terminal d2, and the terminal d 3.
If the teammate object g1 controls the virtual character p2 to move or the teammate object g2 controls the virtual character p3 to move at this time, the terminal d1 receives the first target to-be-stayed scene position transmitted by the terminal d2 or the terminal d3, and then controls the virtual character p2 in the terminal d1 to move to the first target to-be-stayed scene position or controls the virtual character p3 in the terminal d1 to move to the first target to-be-stayed scene position.
In the embodiment of the application, the initial scene position and/or at least one of the at least two scene positions to be stayed are/is located outside the scene interface by responding to the first operation executed for the scene interface, the target scene position to be stayed is determined from the at least two scene positions to be stayed according to the initial scene position and/or the scene position to be stayed which are located outside the scene interface, and at least one virtual character is controlled to move to the target scene position to be stayed by responding to the second operation for the scene interface, so that a new virtual character control mode is provided, the virtual character control mode is enriched, the interactive experience of a user is improved, and the activity and the retention rate of the user on a platform are improved.
In some embodiments, in response to a first operation performed with respect to the scene interface, locating at least one of the start scene position and the at least two stay scene positions outside the scene interface, determining a target stay scene position from the at least two stay scene positions based on the start scene position and the stay scene position located outside the scene interface, includes:
in response to a first operation performed with respect to the scene interface, locating the starting scene location outside of the scene interface;
determining a target scene position to be stayed from at least two scene positions to be stayed according to the initial scene position outside the scene interface;
responding to a first operation executed for a scene interface, and enabling a target to-be-stayed scene position to be located outside the scene interface;
and screening target to-be-stayed scene positions from the first candidate to-be-stayed scene positions according to the target to-be-stayed scene positions outside the scene interface, wherein the first candidate to-be-stayed scene positions are to-be-stayed scene positions except for the target to-be-stayed scene positions outside the scene interface in the at least two to-be-stayed scene positions.
For example, the virtual scene is a skiing scene, the at least two to-be-parked scene positions include a parked line 1, a parked line 2, and a parked line 3, the scene interface may be as shown in fig. 8 before the starting scene position is located outside the scene interface in response to the first operation performed on the scene interface, the target to-be-parked scene position determined from the at least two to-be-parked scene positions is a parked line 1 after the starting scene position is located outside the scene interface in response to the first operation performed on the scene interface, that is, the at least one to-be-parked scene position is a parked line 1, the first candidate to-be-parked scene position is a parked line 2 and a parked line 3, and the at least one virtual character is controlled to move to the parked line 1 in response to the second operation performed on the scene interface, at which time the scene interface may be as shown in fig. 9.
Then, when the stay line 1 is located outside the scene interface in response to the first operation performed on the scene interface, the stay line 2 is selected from the stay lines 2 and 3 according to the stay line 1 located outside the scene interface, that is, at this time, the target to-be-stayed scene position is the stay line 2, and then at least one virtual character is controlled to move to the stay line 2 in response to the second operation performed on the scene interface, at this time, the scene interface may be as shown in fig. 10.
In the embodiment of the application, in response to a first operation performed on a scene interface, locating a starting scene position outside the scene interface; determining a target scene position to be stayed from at least two scene positions to be stayed according to the initial scene position outside the scene interface; responding to a first operation executed for a scene interface, and enabling a target to-be-stayed scene position to be located outside the scene interface; and screening target to-be-stayed scene positions from the first candidate to-be-stayed scene positions according to the target to-be-stayed scene positions outside the scene interface, wherein the first candidate to-be-stayed scene positions are to-be-stayed scene positions except the target to-be-stayed scene positions outside the scene interface in the at least two to-be-stayed scene positions, so that the target to-be-stayed scene positions are updated in real time according to the first operation.
The method for determining the target scene position to be stayed from at least two scene positions to be stayed according to the initial scene position outside the scene interface comprises the following steps:
determining a first distance between at least two scene positions to be stayed and a starting scene position outside a scene interface;
and determining the scene position to be stayed corresponding to the first distance meeting the preset first distance condition in the at least two scene positions to be stayed as the target scene position to be stayed.
Or determining the target scene position to be stayed from at least two scene positions to be stayed according to the initial scene position outside the scene interface, including:
determining the distance between at least two scene positions to be stayed and the boundary line of the scene interface;
and determining the scene position to be stayed corresponding to the distance meeting the first preset distance condition in the at least two scene positions to be stayed as the target scene position to be stayed.
The boundary line of the scene interface may be set according to actual situations, for example, the boundary line of the scene interface may be one of an upper boundary line, a lower boundary line, a left boundary line and a right boundary line of the scene interface, which is not limited herein.
The first preset distance condition may be set according to an actual situation, for example, the minimum distance may be determined as a distance that satisfies the first preset distance condition, or the second minimum distance may be determined as a distance that satisfies the first preset distance condition, which is not limited herein.
In the embodiment of the application, a first distance between at least two scene positions to be stayed and a starting scene position outside a scene interface is determined; and determining the scene position to be stayed corresponding to the first distance meeting the preset first distance condition in the at least two scene positions to be stayed as the target scene position to be stayed.
For example, the scene position is represented by a line, at least two scene positions to be stayed include a stay line 1 and a stay line 2, and the stay line 1 is determined as the target scene position to be stayed because the distance between the stay line 1 and the start scene position is smaller than the distance between the stay line 2 and the start scene position.
It should be noted that, in the process of screening the target to-be-stayed scene position from the first candidate to-be-stayed scene position according to the target to-be-stayed scene position located outside the scene interface, the process of determining the target to-be-stayed scene position from at least two to-be-stayed scene positions according to the starting scene position located outside the scene interface may be referred to, which is not described herein again in this embodiment.
In some embodiments, determining a target stay scene position from at least two stay scene positions based on a start scene position and a stay scene position located outside of the scene interface includes:
screening a target scene position to be stayed from scene positions to be stayed outside the scene interface according to the initial scene position outside the scene interface;
and screening the target to-be-stayed scene positions from the second candidate to-be-stayed scene positions according to the target to-be-stayed scene positions outside the scene interface, wherein the second candidate to-be-stayed scene positions are to-be-stayed scene positions except for the target to-be-stayed scene positions outside the scene interface in the at least two to-be-stayed scene positions.
For example, the virtual scene is a skiing scene, the scene interface may be shown in fig. 8, at least two scene positions to be stayed include a stay line 1, a stay line 2 and a stay line 3, the scene positions to be stayed outside the scene interface are stay line 1, the second candidate scene positions to be stayed are stay line 2 and stay line 3, at this time, the stay line 1 is taken as a target scene position to be stayed, after the target scene position to be stayed is selected from the second candidate scene positions to be stayed outside the scene interface according to the target scene position to be stayed outside the scene interface, the target scene position to be stayed is stay line 2, then at least one virtual character is controlled to move to stay line 1 in response to a second operation for the scene interface, at this time, the scene interface may be shown in fig. 9, and at least one virtual character is controlled to move to stay line 2, at this time, the scene interface may be shown in fig. 10.
In the embodiment of the application, according to the initial scene position outside the scene interface, the target scene position to be stayed is screened from the scene positions to be stayed outside the scene interface; and screening target to-be-stayed scene positions from second candidate to-be-stayed scene positions according to the target to-be-stayed scene positions outside the scene interface, wherein the second candidate to-be-stayed scene positions are to-be-stayed scene positions except the target to-be-stayed scene positions outside the scene interface in the at least two to-be-stayed scene positions, so that at least one virtual character is controlled to stay at each to-be-stayed scene position.
In some embodiments, determining a target stay scene position from at least two stay scene positions based on a start scene position and a stay scene position located outside of the scene interface includes:
determining a second distance between a third candidate to-be-stayed scene position and a boundary line of the scene interface according to a starting scene position and a to-be-stayed scene position outside the scene interface, wherein the third candidate to-be-stayed scene position is the to-be-stayed scene position outside the scene interface in the at least two to-be-stayed scene positions;
And determining the third candidate scene position to be stayed corresponding to the second distance meeting the second preset distance condition as the target scene position to be stayed.
For example, the virtual scene is a skiing scene, the scene positions are represented by lines, the scene interface may be shown in fig. 8, at least two scene positions to be stayed include a stay line 1, a stay line 2 and a stay line 3, the scene positions to be stayed outside the scene interface are stay line 1, the third candidate scene positions to be stayed are stay line 2 and stay line 3, at this time, stay line 2 is determined as the target scene position to be stayed, then at least one virtual character is controlled to move to stay line 2 in response to the second operation for the scene interface, and the scene interface may be shown in fig. 10.
In the embodiment of the application, according to the initial scene position and the to-be-stayed scene position outside the scene interface, determining a second distance between a third candidate to-be-stayed scene position and a boundary line of the scene interface, wherein the third candidate to-be-stayed scene position is a to-be-stayed scene position except for the to-be-stayed scene position outside the scene interface in at least two to-be-stayed scene positions, determining a third candidate to-be-stayed scene position corresponding to the second distance meeting a second preset distance condition as a target to-be-stayed scene position, and controlling at least one virtual character to be selectively stayed at each to-be-stayed scene position according to the first operation.
In some embodiments, in response to a first operation performed with respect to the scene interface, locating at least one of the start scene location and the at least two to-be-stayed scene locations outside of the scene interface comprises:
responding to a first operation executed for a scene interface, and moving the position of a virtual camera in the scene interface according to the first operation, wherein the scene interface displays pictures in a virtual scene shot by the virtual camera;
and updating the scene interface according to the moved position of the virtual camera so that the initial scene position and at least one of the at least two scene positions to be stayed are positioned outside the scene interface.
At this time, the terminal may further respond to a second operation for the scene interface, and according to the second operation, the position of the virtual camera in the scene interface after moving is moved to obtain a target position, and according to the target position, the scene interface is updated to control at least one virtual character to move to the target position of the scene to be stayed.
In some embodiments, controlling movement of the at least one virtual character to the target to-stay scene location in response to a second operation for the scene interface includes:
responding to a second operation for the scene interface, and acquiring an animation corresponding to the scene interface;
And playing the animation, and stopping playing when the animation frame including the target scene position to be stayed in the animation is played, so as to control at least one virtual character to move to the target scene position to be stayed.
In the embodiment of the application, an animation is preset, and then when at least one virtual character needs to be controlled to move to a target scene position to be stayed, the animation corresponding to the scene interface is obtained in response to a second operation aiming at the scene interface; and replacing the virtual character in the animation with at least one virtual character, playing the replaced animation, stopping playing when the animation frame including the target scene position to be stopped is played in the replaced animation, so as to control the at least one virtual character to move to the target scene position to be stopped, generating no animation frame for the at least one virtual character to move in the virtual scene in real time, and improving the response speed to the first operation and the second operation.
For example, when the virtual scene is a ski scene, as shown in fig. 11, the target stay scene position is a stay line 1, and before at least one of the start scene position and at least two stay scene positions is located outside the scene interface in response to the first operation performed with respect to the scene interface, the scene interface may be as shown in 1101 in fig. 11, and after the second operation performed with respect to the scene interface, the animation frame of the played animation may be as shown in 1102-1106 in fig. 11, since the animation frame shown in 1106 in fig. 11 includes the stay line 1, the play of the sliding animation is stopped at this time.
It should be noted that, the terminal may determine an animation frame where the current dwell position of at least one virtual character in the animation is located, and then start playing from the animation frame until playing to the animation frame including the target to-be-dwell scene position stops playing.
It should be understood that when the target to-be-stopped scene position is the last to-be-stopped scene position on the virtual scene, if there is still an animation frame behind the animation frame including the target to-be-stopped scene position, the animation may be played again in response to the first operation and the second operation performed on the scene interface until all the animation frames in the animation are completely played, at this time, since the target to-be-stopped scene position is the last to-be-stopped scene position on the virtual scene, in response to the first operation performed on the scene interface, it may be unnecessary to determine the target to-be-stopped scene position again, and the playing of all the animation frames in the animation may be stopped directly when the playing is completed.
For example, when the virtual scene is a ski page, the target to-be-hovered scene position is a hovering line 2, and the hovering line 2 may be as shown in fig. 10, and then, in response to the first operation of the scene interface again, the played animation may be as shown in fig. 12.
In some embodiments, after controlling the movement of the at least one virtual character to the target to-be-stayed scene location in response to the second operation for the scene interface, further comprising:
generating a target note for the target to-be-stayed scene position in response to the at least one virtual character moving to the target to-be-stayed scene position;
and issuing the target notes through the account numbers corresponding to the at least one virtual role.
The target note is issued through the account corresponding to the at least one virtual character, which can be understood as commonly issuing the target note through the account corresponding to each virtual character in the at least one virtual character.
In response to the at least one virtual character moving to the target to-be-stayed scene position, a manner of generating the target note for the target to-be-stayed scene position may be selected according to actual situations, and embodiments of the present application are not limited herein.
For example, each candidate note may be preset, then the feature of the account corresponding to at least one virtual character is obtained, and the note matching with the feature of the account is selected from the candidate notes, so as to obtain the target note.
For another example, a text sentence pattern and candidate words may be preset, then features of an account corresponding to at least one virtual character are obtained, words matching with the features of the account are screened out from the candidate words, target words are obtained, and target notes are generated according to the target words and the text sentence pattern.
For another example, in response to the at least one virtual character moving to the target to-be-stayed scene position, generating a target note for the target to-be-stayed scene position includes:
responding to the movement of at least one virtual character to the position of the target scene to be stayed, and capturing a scene interface to obtain a target image;
and generating target notes aiming at the target to-be-stayed scene positions according to the target images.
The target image may be directly used as the target note, or the target note may be generated according to the target image and the additional document, and the additional document may be a preset document.
In some embodiments, after controlling the movement of the at least one virtual character to the target to-be-stayed scene location in response to the second operation for the scene interface, further comprising:
responding to the movement of at least one virtual character to the target scene position to be stayed, and acquiring virtual resources corresponding to the target scene position to be stayed;
and issuing the virtual resource to an account corresponding to at least one virtual role.
The virtual resource may refer to an article, and the type of the virtual resource may be set according to actual situations, for example, the virtual resource may be at least one of virtual currency, a red packet, and equipment.
In the embodiment of the application, in response to at least one virtual character moving to a target scene position to be stayed, virtual resources corresponding to the target scene position to be stayed are obtained; and issuing the virtual resource to an account corresponding to the at least one virtual character, so that when the at least one virtual character stays at the target scene position to be stayed, the virtual resource at the target scene position to be stayed can be obtained.
In some embodiments, after controlling the movement of the at least one virtual character to the target to-be-stayed scene location in response to the second operation for the scene interface, further comprising:
judging the activity state corresponding to the virtual scene according to the position of the target scene to be stayed;
if the activity state is an activity completion state, obtaining a completion score for the scene picture;
and if the score meets the preset score condition, displaying the lottery drawing picture.
The activity state corresponding to the virtual scene refers to a state that the target object completes the activity corresponding to the virtual scene. For example, the active state may be an active completed state and an active uncompleted state, and embodiments of the present application are not limited herein.
If the target to-be-stayed scene position is the last to-be-stayed scene position in the virtual scene, the activity state corresponding to the virtual scene is an activity completion state, and if the target to-be-stayed scene position is not the last to-be-stayed scene position in the virtual scene, the activity state corresponding to the virtual scene is an activity incompletion state.
The completion score may also be referred to as an integral. The lottery drawing may be displayed within a scene interface (e.g., as shown in fig. 12) or may be displayed in a pop-up window, as embodiments of the present application are not limited in this respect.
In the embodiment of the application, according to the position of the target scene to be stayed, judging the activity state corresponding to the virtual scene; if the activity state is an activity completion state, obtaining a completion score for the scene picture; if the score meets the preset score condition, displaying a lottery drawing picture so that the user can participate in lottery drawing, and improving the probability of the user completing the activity corresponding to the virtual scene.
Optionally, if the active state is an active completion state, obtaining a completion score for the scene picture includes:
if the activity state is an activity completion state, aiming at task completion parameters corresponding to at least two scene positions to be stayed and/or acquiring time reaching a target scene position to be stayed;
a completion score for the scene is determined based on the time and/or task completion parameters.
In this embodiment of the present application, a task may be set at each scene position to be stayed, after at least one virtual character stays at the target scene position to be stayed, the task at the target scene position to be stayed may be completed, then when the active state is the active completion state, task completion parameters corresponding to at least two scene positions to be stayed and/or time for reaching the target scene position to be stayed may be obtained, and finally, a completion score for the scene picture may be determined according to the time and/or task completion parameters.
The shorter the time, the higher the task completion parameter, the higher the completion score of the scene picture, the longer the time, the smaller the task completion parameter, and the lower the completion score of the scene picture.
As can be seen from the above, in the embodiment of the present application, a scene interface for displaying at least part of a scene image of a virtual scene is displayed, where the virtual scene includes at least one virtual character, a starting scene position, and at least two scene positions to be stayed; in response to a first operation performed with respect to the scene interface, locating the starting scene position and/or at least one of the at least two to-be-stayed scene positions outside the scene interface; determining a target to-be-stayed scene position from at least two to-be-stayed scene positions according to a starting scene position and/or to-be-stayed scene position outside a scene interface; and in response to a second operation aiming at the scene interface, controlling at least one virtual character to move to the target scene position to be stayed, enriching the control mode of the virtual character in the game, and improving the game experience, thereby improving the activity and the retention rate of the user on the game platform.
The interface interaction method provided in the present application is further described below with reference to fig. 13. In the present embodiment, a skiing scene including a skiing track is described as an example of a virtual scene, a sliding operation is described as an example of a first operation, and a loosening operation is described as an example of a second operation.
S1301, displaying a scene interface for displaying at least part of scene pictures of a skiing scene by the terminal, wherein the skiing scene comprises a target virtual role, a teammate virtual role and a skiing track, the skiing track comprises a starting scene position and at least two scene positions to be stayed, and the scene interface comprises a teammate invitation control.
And S1302, the terminal responds to the triggering operation of the teammate invitation control to display a friend list page.
S1303, the terminal responds to triggering operation of the target friend account in the friend list page, shares the invitation link to the target friend account, and receives agreeing operation of the target friend account to the invitation link.
And 1304, updating the teammate virtual roles on the scene interface by the terminal according to the consent operation and the target friend account.
S1305, the terminal responds to the sliding operation executed on the scene interface to enable the initial scene position to be located outside the scene interface.
S1306, the terminal determines a first distance between at least two scene positions to be stayed and an upper boundary line of the scene interface according to the initial scene positions outside the scene interface.
S1307, the terminal determines a to-be-stayed scene position corresponding to a first distance meeting a first preset distance condition in at least two to-be-stayed scene positions as a target to-be-stayed scene position.
And S1308, the terminal responds to the loosening operation of the scene interface, plays the animation corresponding to the scene interface, and stops playing when playing the animation frame comprising the target to-be-stayed scene position in the animation so as to control at least one virtual character to move to the target to-be-stayed scene position.
S1309, the terminal responds to the movement of at least one virtual character to the target to-be-stayed scene position, generates a target note aiming at the target to-be-stayed scene position, and issues the target note through an account corresponding to the at least one virtual character.
S13010, the terminal responds to the sliding operation executed on the scene interface to enable the target to-be-stayed scene position to be located outside the scene interface.
S13011, the terminal screens out target stay scene positions from the first candidate stay scene positions according to the target stay scene positions outside the scene interface, wherein the first candidate stay scene positions are the stay scene positions except the target stay scene positions outside the scene interface in the at least two stay scene positions.
And S13012, the terminal responds to the loosening operation of the scene interface, plays the animation corresponding to the scene interface, and stops playing when playing to the animation frame comprising the target to-be-stayed scene position in the animation so as to control at least one virtual character to move to the target to-be-stayed scene position.
S13013, the terminal judges whether the target scene position to be stayed is the last scene position to be stayed in the skiing scene.
S13014, if the target to-be-stayed scene position is the last to-be-stayed scene position in the skiing scene, acquiring an activity state corresponding to the skiing scene.
S13015, if the active state is an active completion state, acquiring a completion score for the scene.
And S13016, if the completion score meets the preset score condition, displaying a lottery drawing picture.
S13017, if the target stay scene position is not the last stay scene position in the ski scene, return to execute step S13010.
For example, the at least two scene positions to be stayed include a scene position to be stayed 1, a scene position to be stayed 2 and a scene position to be stayed 3, wherein the scene position to be stayed 3 is the last scene position to be stayed in the skiing scene, and the scene position to be stayed corresponding to the first distance satisfying the first preset distance condition is the scene position to be stayed 1. And the terminal responds to the releasing operation of the scene interface, plays the animation corresponding to the scene interface, and stops playing when the animation frame including the scene position 1 to be stopped is played in the animation, so as to control at least one virtual character to move to the scene position 1 to be stopped.
And the terminal responds to the sliding operation executed on the scene interface, so that the scene position 1 to be stayed is positioned outside the scene interface, and the terminal screens out the scene position 2 to be stayed from the first candidate scene position to be stayed according to the scene position 1 to be stayed.
And the terminal responds to the releasing operation of the scene interface, plays the animation corresponding to the scene interface, and stops playing when playing the animation frame comprising the scene position 2 to be stayed in the animation so as to control at least one virtual character to move to the scene position 2 to be stayed.
Because the to-be-stayed scene position 2 is not the last to-be-stayed scene position in the skiing scene, the terminal responds to the sliding operation performed on the scene interface to enable the to-be-stayed scene position 2 to be positioned outside the scene interface, and the terminal screens out the to-be-stayed scene position 3 from the first candidate to-be-stayed scene positions according to the to-be-stayed scene position 2.
And the terminal responds to the releasing operation of the scene interface, plays the animation corresponding to the scene interface, and stops playing when playing the animation frame comprising the scene position 3 to be stayed in the animation so as to control at least one virtual character to move to the scene position 3 to be stayed.
Since the scene position to stay 3 is the last scene position to stay in the skiing scene, the activity state corresponding to the skiing scene is acquired.
According to the embodiment of the application, the object can participate in the skiing sport game in the electronic equipment, so that the object can also learn the fun of skiing activities even if the object does not participate in actual skiing activities, and the activity and the retention rate of the object on the platform are improved.
The specific implementation manner and other corresponding beneficial effects in the embodiments of the present application may refer to the above-mentioned interface interaction method embodiment, and this embodiment is not described herein again.
In order to facilitate better implementation of the interface interaction method provided by the embodiment of the application, the embodiment of the application also provides a device based on the interface interaction method. Wherein the meaning of nouns is the same as that in the interface interaction method, and specific implementation details can refer to the description in the method embodiment.
For example, as shown in fig. 14, the interface interaction device may include:
the interface display module 1401 is configured to display a scene interface for displaying at least a part of a scene frame of a virtual scene, where the virtual scene includes at least one virtual character, a start scene position, and at least two scene positions to be stayed.
The first response module 1402 is configured to, in response to a first operation performed on the scene interface, cause the starting scene position and/or at least one of the at least two to-be-stayed scene positions to be located outside the scene interface.
The position determining module 1403 is configured to determine a target to-be-stopped scene position from at least two to-be-stopped scene positions according to a starting scene position and/or to-be-stopped scene position that are located outside the scene interface.
A second response module 1404 is configured to control movement of the at least one virtual character to the target to-be-stayed scene location in response to a second operation on the scene interface.
Optionally, the first response module 1402 is specifically configured to perform:
in response to a first operation performed with respect to the scene interface, the starting scene location is located outside of the scene interface.
The location determination module 1403 is specifically configured to perform:
and determining the target scene position to be stayed from at least two scene positions to be stayed according to the initial scene position outside the scene interface.
The first response module 1402 is specifically configured to perform:
in response to a first operation performed with respect to the scene interface, the target to-be-stayed scene location is located outside of the scene interface.
The location determination module 1403 is specifically configured to perform:
and screening target to-be-stayed scene positions from the first candidate to-be-stayed scene positions according to the target to-be-stayed scene positions outside the scene interface, wherein the first candidate to-be-stayed scene positions are to-be-stayed scene positions except for the target to-be-stayed scene positions outside the scene interface in the at least two to-be-stayed scene positions.
Optionally, the first response module 1402 is specifically configured to perform:
determining a first distance between at least two scene positions to be stayed and a starting scene position outside a scene interface;
and determining the scene position to be stayed corresponding to the first distance meeting the first preset distance condition in the at least two scene positions to be stayed as the target scene position to be stayed.
Optionally, the location determination module 1403 is specifically configured to perform:
screening a target scene position to be stayed from scene positions to be stayed outside the scene interface according to the initial scene position outside the scene interface;
and screening the target to-be-stayed scene positions from the second candidate to-be-stayed scene positions according to the target to-be-stayed scene positions outside the scene interface, wherein the second candidate to-be-stayed scene positions are to-be-stayed scene positions except for the target to-be-stayed scene positions outside the scene interface in the at least two to-be-stayed scene positions.
Optionally, the location determination module 1403 is specifically configured to perform:
determining a second distance between a third candidate to-be-stayed scene position and a boundary line of the scene interface according to a starting scene position and a to-be-stayed scene position outside the scene interface, wherein the third candidate to-be-stayed scene position is the to-be-stayed scene position outside the scene interface in the at least two to-be-stayed scene positions;
And determining the third candidate scene position to be stayed corresponding to the second distance meeting the second preset distance condition as the target scene position to be stayed.
Optionally, the first response module 1402 is specifically configured to perform:
responding to a first operation executed for a scene interface, and moving the position of a virtual camera in the scene interface according to the first operation, wherein the scene interface displays pictures in a virtual scene shot by the virtual camera;
and updating the scene interface according to the moved position of the virtual camera so that the initial scene position and at least one of the at least two scene positions to be stayed are positioned outside the scene interface.
Optionally, the second response module 1404 is specifically configured to perform:
responding to a second operation for the scene interface, and acquiring an animation corresponding to the scene interface;
and playing the animation, and stopping playing when the animation frame including the target scene position to be stayed in the animation is played, so as to control at least one virtual character to move to the target scene position to be stayed.
Optionally, the interface interaction device further includes:
a release module for executing:
generating a target note for the target to-be-stayed scene position in response to the at least one virtual character moving to the target to-be-stayed scene position;
And issuing the target notes through the account numbers corresponding to the at least one virtual role.
Optionally, the publishing module is specifically configured to perform:
responding to the movement of at least one virtual character to the position of the target scene to be stayed, and capturing a scene interface to obtain a target image;
and generating target notes aiming at the target to-be-stayed scene positions according to the target images.
Optionally, the interface interaction device further includes:
a release module for executing:
responding to the movement of at least one virtual character to the target scene position to be stayed, and acquiring virtual resources corresponding to the target scene position to be stayed;
and issuing the virtual resource to an account corresponding to at least one virtual role.
Optionally, the second response module 1404 is further configured to perform:
judging the activity state corresponding to the virtual scene according to the position of the target scene to be stayed;
if the activity state is an activity completion state, obtaining a completion score for the scene picture;
and if the score meets the preset score condition, displaying the lottery drawing picture.
Optionally, the second response module 1404 is further specifically configured to perform:
if the activity state is an activity completion state, acquiring task completion parameters corresponding to at least two scene positions to be stayed and/or acquiring time for reaching the target scene position to be stayed;
A completion score for the scene is determined based on the time and/or task completion parameters.
Optionally, the at least one virtual character includes a master virtual character and a teammate virtual character, and the interface interaction device further includes:
an invitation module for performing:
responding to the triggering operation of the teammate invitation control, and displaying a friend list page;
responding to triggering operation of a target friend account in the friend list page, and linking the sharing invitation to the target friend account;
receiving agreement operation of a target friend account aiming at the invitation link;
and updating the teammate virtual roles on the scene interface according to the consent operation and the target friend account.
Optionally, the first response module 1401 is further configured to perform:
acquiring the number of target friend accounts;
determining the position number of at least two scene positions to be stayed according to the number;
and adjusting the positions of at least two scenes to be stayed in the virtual scene according to the number of the positions.
Optionally, the scene interface further includes a chat information display area, and the interface display module 1401 is further configured to perform:
acquiring chat information sent by equipment corresponding to a teammate virtual role in at least one virtual role;
chat information is displayed on the chat information display area.
Optionally, the interface display module 1401 is specifically configured to perform:
acquiring an activity task instruction, and acquiring the activity skill level of a target object according to the activity task instruction;
generating a virtual scene according to the activity skill level of the target object;
a scene interface for displaying at least a portion of a scene picture of a virtual scene is displayed.
Optionally, the interface display module 1401 is specifically configured to perform:
acquiring at least one candidate virtual scene;
and screening candidate virtual scenes matched with the activity skill level of the target object from at least one candidate virtual scene to obtain the virtual scene.
In the specific implementation, each module may be implemented as an independent entity, or may be combined arbitrarily, and implemented as the same entity or a plurality of entities, and the specific implementation and the corresponding beneficial effects of each module may be referred to the foregoing method embodiments, which are not described herein again.
The embodiment of the application also provides an electronic device, which may be a server or a terminal, as shown in fig. 15, and shows a schematic structural diagram of the electronic device according to the embodiment of the application, specifically:
the electronic device can include one or more processing cores 'processors 1501, one or more computer-readable storage media's memory 1502, power supply 1503, and input unit 1504, among other components. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 15 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
The processor 1501 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing computer programs and/or modules stored in the memory 1502, and calling data stored in the memory 1502. Optionally, the processor 1501 may include one or more processing cores; preferably, the processor 1501 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, application programs, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1501.
The memory 1502 may be used to store computer programs and modules, and the processor 1501 executes various functional applications and data processing by executing the computer programs and modules stored in the memory 1502. The memory 1502 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, computer programs required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, the memory 1502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 1502 may also include a memory controller to provide the processor 1501 with access to the memory 1502.
The electronic device further comprises a power supply 1503 for powering the various components, preferably the power supply 1503 is logically connected to the processor 1501 by a power management system whereby charging, discharging, and power consumption management functions are performed by the power management system. The power supply 1503 may also include one or more of any components, such as a dc or ac power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may also include an input unit 1504, which input unit 1504 may be used to receive entered numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 1501 in the electronic device loads executable files corresponding to the processes of one or more computer programs into the memory 1502 according to the following instructions, and the processor 1501 executes the computer programs stored in the memory 1502 to implement various functions, such as:
Displaying a scene interface for displaying at least part of scene pictures of a virtual scene, wherein the virtual scene comprises at least one virtual role, a starting scene position and at least two scene positions to be stayed;
in response to a first operation performed with respect to the scene interface, locating the starting scene position and/or at least one of the at least two to-be-stayed scene positions outside the scene interface;
determining a target to-be-stayed scene position from at least two to-be-stayed scene positions according to a starting scene position and/or to-be-stayed scene position outside a scene interface;
and controlling the at least one virtual character to move to the target to-be-stayed scene position in response to a second operation on the scene interface.
The specific embodiments and the corresponding beneficial effects of each operation can be referred to the above detailed description of the interface interaction method, and are not described herein.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer readable storage medium having stored therein a computer program that is capable of being loaded by a processor to perform steps in any of the interface interaction methods provided by embodiments of the present application. For example, the computer program may perform the steps of:
displaying a scene interface for displaying at least part of scene pictures of a virtual scene, wherein the virtual scene comprises at least one virtual role, a starting scene position and at least two scene positions to be stayed;
in response to a first operation performed with respect to the scene interface, locating the starting scene position and/or at least one of the at least two to-be-stayed scene positions outside the scene interface;
determining a target to-be-stayed scene position from at least two to-be-stayed scene positions according to a starting scene position and/or to-be-stayed scene position outside a scene interface;
and controlling the at least one virtual character to move to the target to-be-stayed scene position in response to a second operation on the scene interface.
The specific embodiments and the corresponding beneficial effects of each of the above operations can be found in the foregoing embodiments, and are not described herein again.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the computer program stored in the computer readable storage medium may execute the steps in any of the interface interaction methods provided in the embodiments of the present application, the beneficial effects that any of the interface interaction methods provided in the embodiments of the present application may be achieved are detailed in the previous embodiments, and are not described herein.
Among other things, according to one aspect of the present application, a computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the interface interaction method described above.
The foregoing describes in detail an interface interaction method, apparatus, electronic device and computer storage medium provided in the embodiments of the present application, and specific examples are applied to illustrate principles and implementations of the present application, where the foregoing description of the embodiments is only for helping to understand the method and core idea of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.