Method, apparatus, storage medium, and electronic device for displaying directional icons for prompting task
View Patent ↗A method including displaying a virtual game scene in which a target virtual character in a virtual game is located in a display interface and in which target locations in the virtual game are set, determining relative position relationships between a character position of the target virtual character and target locations, and displaying, in a task prompting area at prompting positions corresponding to the relative position relationships, directional navigation icons corresponding to the target locations.
1 . A method, performed by an electronic device, the method comprising:
displaying a virtual game scene in which a target virtual character in a virtual game is located in a display interface and in which target locations in the virtual game are set;
determining relative position relationships between a character position of the target virtual character and the target locations; and
obtaining distances between the character position and the target locations, and
displaying, in an outer boundary of an movement control interface and a task prompting area at prompting positions corresponding to the relative position relationships, directional navigation icons corresponding to the target locations using a display transparency that corresponds to the distances, respectively.
2 . The method according to claim 1 , wherein determining the relative position relationships comprises:
determining a character orientation of the target virtual character at the character position; and
determining the relative position relationships between the character position and the target locations based on the character orientation.
3 . The method according to claim 1 , wherein after displaying the directional navigation icons, the method further comprises:
a relative position between the character position and at least one of the target locations changes, updating the directional navigation icons based on movement of the character position.
4 . The method according to claim 1 , wherein the relative position relationships are determined based on a target trigger operation according to a movement control in the display interface, and
wherein the task prompting area includes the movement control.
5 . The method according to claim 4 , wherein displaying the directional navigation icons comprises:
displaying a task list in the display interface in areas of the display interface other than a display area in which the movement control is located, the task list comprising description information of the target locations and directional navigation icons corresponding to the target locations.
6 . The method according to claim 1 , wherein displaying the directional navigation icons comprises:
obtaining a connected state between the character position and the target locations; and
displaying a movement prompting marker corresponding to a target position based on the connected state indicating that the target virtual character is allowed to move from the character position to the corresponding target position.
7 . The method according to claim 4 , wherein after displaying the directional navigation icons, the method further comprises:
determining a target destination among the target locations, based on a swiping operation performed on the movement control; and
controlling the target virtual character to move from the character position to the target destination according to an automatic navigation state based on movement conditions between the character position and a target location that corresponds to the target destination being met.
8 . The method according to claim 7 , wherein determining the target destination comprises:
determining an endpoint position of a trajectory of the swiping operation; and
determining a directional navigation icon that is hit by the endpoint position, among the directional navigation icons,
wherein the target destination comprises the directional navigation icon that is determined.
9 . The method according to claim 4 , wherein the movement control comprises a joystick, and
wherein an operation of pushing the joystick toward a directional navigation icon controls the target virtual character to move toward a target location corresponding to the directional navigation icon in the virtual game scene.
10 . An apparatus comprising:
at least one memory configured to store computer program code;
at least one processor configured to read the program code and operate as instructed by the program code, the program code comprising:
display code configured to cause at least one of the at least one processor to display a virtual game scene in which a target virtual character in a virtual game is located in a display interface and in which target locations are set;
determination code configured to cause at least one of the at least one processor to determine relative position relationships between a character position of the target virtual character and the target locations; and
prompting code configured to cause at least one of the at least one processor to:
obtain distances between the character position and the target locations, and
display, in an outer boundary of an movement control interface and a task prompting area at prompting positions corresponding to the relative position relationships, directional navigation icons corresponding to the target locations using a display transparency that corresponds to the distances, respectively.
11 . The apparatus according to claim 10 , wherein the determination code is further configured to cause at least one the at least one processor to:
determine a character orientation of the target virtual character at the character position; and
determine the relative position relationships between the character position and the target locations based on the character orientation.
12 . The apparatus according to claim 10 , wherein the program code further comprises:
prompt position adjusting code configured to cause at least one of the at least one processor to, when a relative position between the character position and at least one of the target locations changes, update the directional navigation icons based on movement of the character position.
13 . The apparatus according to claim 10 , wherein the relative position relationships are determined based on a target trigger operation according to a movement control in the display interface, and
wherein the task prompting area includes the movement control.
14 . The apparatus according to claim 13 , wherein the prompting code is further configured to cause at least one of the at least one processor to:
display a task list in the display interface in areas of the display interface other than a display area in which the movement control is located, the task list comprising description information of the target locations and the directional navigation icons corresponding to the target locations.
15 . The apparatus according to claim 13 , wherein the prompting code is further configured to cause at least one of the at least one processor to:
determine a target destination among the target locations, based on a swiping operation performed on the movement control; and
control the target virtual character to move from the character position to the target destination according to an automatic navigation state based on movement conditions between the character position and a target location that corresponds to the target destination being met.
16 . A non-transitory computer-readable storage medium storing computer code which, when executed by at least one processor, causes the at least one processor to at least:
display a virtual game scene in which a target virtual character in a virtual game is located in a display interface and in which target locations in the virtual game are set;
determine relative position relationships between a character position of the target virtual character and the target locations;
obtain distances between the character position and the target locations; and
display, in an outer boundary of an movement control interface and a task prompting area at prompting positions corresponding to the relative position relationships, directional navigation icons corresponding to the target locations using a display transparency that corresponds to the distances, respectively.