GameMaker Manual - GameMaker.info (2024)

More main actions

Some additional main actions are available in advanced mode. The following actions are added:

GameMaker Manual - GameMaker.info (1) Set Time Line
With this action you set the particulartime line for an instance of an object. You indicate the time line and thestarting position within the time line (0 is the beginning). Also you indicatewhether the time line should start immediately and whether it should loop at the end.

GameMaker Manual - GameMaker.info (2) Time Line Position
With this action you can change the positionin the current time line (either absolute or relative). This can be used to skipcertain parts of the time line or to repeat certain parts.

GameMaker Manual - GameMaker.info (3) Time Line Speed
With this action you can change the speed of the time line (either absolute or relative).A speed of 1 is the normal speed. When you e.g. set it to 2 the actions will happen twiceas fast and when you set it to 0.5 twice as slow. You can also set a negative speed, in whichcase the time line is played backwards.

GameMaker Manual - GameMaker.info (4) Start Time Line
This action starts the time line from its current position (if it is paused or stopped).

GameMaker Manual - GameMaker.info (5) Pause Time Line
This action pauses the time line. Use the start action to let it continue.

GameMaker Manual - GameMaker.info (6) Stop Time Line
This action stops the time line and sets the position back to 0.

GameMaker Manual - GameMaker.info (7) Splash Text
With this action you can show a text file. This can either be a .txtfile or a .rtf (Rich Text Format) file (no images or embedded objectsare shown though). You specify the file name. Make surethe file exists. You should either distribute it with the game orinclude it in the game through Include Files in the Resources menu.(Note that no scrollbar will be shown nor isthere another way to scroll the text. So the text must fit the window.)This action is only available in the Standard Edition.

GameMaker Manual - GameMaker.info (8) Splash Image
With this action you can show an image file. Most common imagefile types are supported. You specify the file name. Make surethe file exists. You should either distribute it with the game orinclude it in the game through Include Files in the Resources menu.You can e.g. use this to create a series of images as help for yourgame. Not including the images in the game itself will reduce gamesize and improve game loading time.This action is only available in the Standard Edition.

GameMaker Manual - GameMaker.info (9) Splash Webpage
With this action you can show a webpage. You provide the url andwhether it should be shown in the game window or in the default web browser.The url can be the address of a website, for examplehttp://www.yoyogames.com) or can be the file name for a local html file.Note however that you must provide the full path for this to work (which is not thecase for the other splash actions). So you best use as urlsomething like "" + working_directory + "\index.html".(The first two quotes are required to indicate this is an expressionrather than a string.) You should either distribute the file with the game orinclude it in the game through Include Files in the Resources menu.You can e.g. use this to create fancy help pages for your game.This action is only available in the Standard Edition.

GameMaker Manual - GameMaker.info (10) Splash Video
With this action you can show a video/movie file. You specify the filename and whether is must be looped. Make surethe video file exists. You should either distribute it with the game orinclude it in the game through Include Files in the Resources menu.This action is only available in the Standard Edition.

GameMaker Manual - GameMaker.info (11) Splash Settings
With this action you can change certain settings for the splash screens thatyou display with the previous actions. You can provide the caption for thehelp window (only when it is shown in a separate normal window), you can indicatewhere the splash screens must be shown (inside the game window, in a normalwindow, or full screen), you can indicate whether a close button must be shownin the top right corner of the splash screen and whether pressing the escapekey or clicking with a mouse in the splash screen will close the splash screen.(For web pages clicking with the mouse will not work nor will the escape keywork unless the close button is shown.)This action is only available in the Standard Edition.

GameMaker Manual - GameMaker.info (12) Replace Sprite
This action can be used to replace a sprite from the contents of a file.You indicate the sprite you want to replace, the filenameand the number of subimages in the sprite.Many different images file formats are supported, e.g. .bmp, .jpg, .tif, and .gif.For a gif file the number of subimages is automatically decided based on thenumber of subimages in the gif file. Other settings for the sprite, e.g.whether it is transparent or not, are not changed. You can use this actionto avoid storing all sprites in the program itself. For example, at the beginning of alevel you can replace sprites by the actual character sprites you wantto use. DON'T change a sprite that is at that moment being used in an instance inthe room. This might give unwanted effects with collisions.This action is only available in the Standard Edition.

GameMaker Manual - GameMaker.info (13) Replace Sound
With this action you can replace a sound by the contents of a file (.wav, .mid, or .mp3).You specify the sound and the filename. This avoids having to store all the sounds in thegame itself. For example, you can use different pieces of background music and pick theone you want to play. DON'T change a sound while it is playing.This action is only available in the Standard Edition.

GameMaker Manual - GameMaker.info (14) Replace Background
With this action you can replace a background by the contents of a file.Many different images file formats are supported, e.g. .bmp, .jpg, .tif, and .gif.You specify the background and the filename. This avoids having to store all the backgroundsin the game itself. DON'T change a background that is visible.This action is only available in the Standard Edition.

« More move actions | More control actions »

GameMaker Manual - GameMaker.info (2024)
Top Articles
Latest Posts
Article information

Author: Sen. Ignacio Ratke

Last Updated:

Views: 6014

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Sen. Ignacio Ratke

Birthday: 1999-05-27

Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

Phone: +2585395768220

Job: Lead Liaison

Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.