From 1d534b8880e034ffb3b628a9ce6b636976316de9 Mon Sep 17 00:00:00 2001 From: YYBartT Date: Tue, 18 Jun 2024 14:39:13 +0200 Subject: [PATCH] docs(general): cursor_sprite - manual page doesn't open YoYoGames/GameMaker-Bugs#6249 * Fixed the tag and keyword at the bottom of the page * Visual update of the page --- .../General_Game_Control/cursor_sprite.htm | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Manual/contents/GameMaker_Language/GML_Reference/General_Game_Control/cursor_sprite.htm b/Manual/contents/GameMaker_Language/GML_Reference/General_Game_Control/cursor_sprite.htm index 0fb918d72..018614838 100644 --- a/Manual/contents/GameMaker_Language/GML_Reference/General_Game_Control/cursor_sprite.htm +++ b/Manual/contents/GameMaker_Language/GML_Reference/General_Game_Control/cursor_sprite.htm @@ -4,46 +4,46 @@ cursor_sprite - + - + -

cursor_sprite

-

Setting this variable will instruct GameMaker to use the designated sprite as a cursor (basically setting it to the current mouse x/y position every step). The default value is -1 which is no sprite for the cursor, but you can assign any sprite index from the game assets or that has been imported from an external resource. Please note that there is no way to control the animation speed or image_index, so if the sprite has sub-images, these will be cycled at the same speed as the room speed. To remove the cursor sprite, you can set this variable to -1 again.

-

It is also worth noting that this variable does not replace the game window cursor, and that it will still be drawn as normal. To avoid this you can use the function window_set_cursor() and set it to the constant cr_none which will make the standard cursor invisible.

+

cursor_sprite

+

Setting this variable will instruct GameMaker to use the designated sprite as a cursor (basically setting it to the current mouse x/y position every step).

+

The default value is -1 which is no sprite for the cursor, but you can assign any sprite index from the game assets or that has been imported from an external resource. Please note that there is no way to control the animation speed or image index, so if the sprite has sub-images, these will be cycled at the same speed as the game speed. To remove the cursor sprite, you can set this variable to -1 again.

+

 This variable does not replace the game window cursor, and that it will still be drawn as normal. To avoid this you can use the function window_set_cursor and set it to the constant cr_none which will make the standard cursor invisible.

 

Syntax:

-

cursor_sprite;

+

cursor_sprite

 

Returns:

-

Sprite Asset

+

Sprite Asset

 

Example:

-

cursor_sprite = spr_CustomCursor;

-

The above code will set the sprite indexed in the variable "spr_CustomCursor" to be the cursor sprite for the game.

-

 

+

cursor_sprite = spr_custom_cursor;

+

The above code sets the sprite indexed in the variable spr_custom_cursor to be the cursor sprite for the game.

 

 

\ No newline at end of file