Quantcast
Channel: Active questions tagged game-maker - Stack Overflow
Viewing all articles
Browse latest Browse all 189

Delay time in GMS2

$
0
0

I am trying to make it so that when you click it will show a different cursor_sprite for 0.25 seconds. I currently need some way to add a delay to this. Here is my code so far:

In create event:

/// @description Set cursorcursor_sprite = spr_cursor;

In step event:

/// @description If click change cursorif mouse_check_button_pressed(mb_left){    cursor_sprite = spr_cursor2;    // I want to add the delay here.}

Viewing all articles
Browse latest Browse all 189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>