Use Time Sources, introduced in GameMaker 2022.5, to run code after a period of time. Make it repeat a number of times or indefinitely.
Read the article: https://gamemaker.io/en/blog/release-2022-5
Download GameMaker: https://opr.as/DownloadGM-YT
Everything you need to take your idea from concept to finished game. With no barriers to entry and powerful functionality, GameMaker is the ultimate 2D development environment!
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.