Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

How can I create a objective system in gamemaker studio?

A topic by Glory Meat created Oct 17, 2020 Views: 320 Replies: 2
Viewing posts 1 to 2

I'm wanting to create a simple objective system for my entry, and I don't really know how to go about making one? Does anyone know how to make one?

Submitted (3 edits)

I'm gonna assume you're working with Gamemaker.

Draw a string on the screen that describes the objective, for example: "Survive 60 seconds" or "Colect coins"

If it's time based:

Program a timer, GM has built in alarms that are easy to use , but you still have to display the time and remember to set it. If you need help with alarms watch THIS

If it's collectible based:

Have a collectible that disappears when the player touches it. Then have a code somewhere that checks if collectible exists or not. 

if !instance_exists(collectible_instance) 

{

            //end game/ win/ add points 

}


If you want to have a list of objectives use an array or stacks to keep them grouped and then execute objectives one after another. 

With ds lists you could shuffle all the objectives around and have them sort of randomized which could be cool in some contexts.

Thanks! And yes I'm using gamemaker