Game Maker : Scrolling credits

Action: scrolling credits then the game ends.

I was searching for this coding for so long, so I really need to do a record.
Hope someone who need this will find it.
I will try my best to explain.


create a obj_credits, put into the room gonna show the credits.


Create event

Create event:
this coding is quite straight forward, so I just write the explanation in the coding.


Draw event

Draw event:

if (y < -string_height(credits)) y = room_height;

i still don’t understand this coding, but it seems like avoiding something about y axis.


if (alarm[0] = -1) alarm = 5850;    

I was so happy when I saw this coding.
I tried to figure out the alarm while making The Re:tired Hero, but couldn’t find out until today.

Need to be aware of  the alarm need to be active for using it, so you need to give an action to make it start working.

Usually, alarm is using like:

if (place_meeting (x,y+10,obj_message)
   with (obj_message)
      alarm[0] = 180;

I find out that most of alarm are using in collision, so again I was so excited to see this coding.

if (alarm[0] = -1)

This line is for checking that is the alarm working or not.
so in this line I wrote, if the alarm[0] is not working.
then the coding next to the bracket is the result of the alarm is not working.

so I set  alarm = 5850;
which means : if the alarm[0] is not working, then set the alarm = 5850 frames.

In the result,  the alarm is active and after 5850 frames,  game maker will trace the coding in the alarm event.


Alarm event

Once understand how to make the alarm be active, then alarm is not hard any more (I think XD)


The coding in alarm event is usually straight forward, just some basic codes.
( I mean… my game :P)


Game maker : message

Action: After pressing a key from keyboard, the message goes to the next one.
* There will be a message shows up before pressing.


Create a object for showing message and put it into a room.


Create event

Create event :
Some parts I didn’t explain because I’m not too sure about it.


Draw event

Draw event :
Draw event is the hardest part in this coding.

I don’t really understand the part I didn’t leave explanation with.
By the way, there are lots of way to introduce the position of x and y, so for me I just keep change the vlaue for finding the best place.


Game Design Prop list

Protagonist:  the Retired Hero
Antagonist:  the monsters
Dispatcher:   Hero’s friend
Donor:  Hero’s friend
Helper:   Hero’s friend
Person Sought For:
the Hero is seeking for his friend and his friend is gonna explore a story the Hero wants to forget.

False Protagonist:  There is no false protagonist.

Game Design Project Treatment

The Re:tired Hero

A hero have his retired life with his friend in the forest, but somehow the hero feel this life is strange.
In this story, I’m going to talk about facing death.  The hero pretend his friend, who is killed by monster, is still alive because his cannot afford the shock of his friend’s death. The hero is going to go through their journey again, and he will recall his memories through the journey. The message that I want to say is how do we face death.

The game is going to be set in a forest. Quite and clean.
Therefore, I use the forest under the sea of corruption in Hayao Miyazaki’s Naussicaa of the Valley of the Wind as my model. Trying to make a green forest, a clean and quite green. The lighting is not going to be very strong, but it’s sunny.

The player is going to control the Hero and use the Hero to explore the story. The objective in this game is finding out where is the Hero’s friend going, and through following the friend, the Hero’s memories are recalled.

There are some enemies in the game, the player is going to jump on the enemies to kill them, or just don’t kill them. The enemies are going to be the monsters which are also related to the story. Due to the ending of the game is based on the number of killing enemies, so I think the strategies will be related to this.
Since the Hero is retired, the player cannot make the Hero goes out of the forest.


The first level is going to be the introduction level, so I’ll try to put as most of mechanics in this room to make the player understand how to play this game. I haven’t decided the place of this level, but I think it will be around the Hero’s house.
The second level is going to be the level which affects the ending, so there will be some enemies as well. This level is going to be part of the journey.
Two levels are the minimum, if I have more times, I think it’s possible to make the journey longer.
In the games, I need a repeating background, platformer texture, wall and checkpoint.

Through the game, there will be some signposts or messages to explain the story or how does the Hero feel. Then, into the ending room, there will be some messages to explain the whole story.  The messages are going to be the friends view because it’s a reply from the friend.

This game is going to be made on Game Maker. I don’t really know about it yet, but hopefully I can make all of things I want  in Game Maker.