Which type of Game maker do you use?

Wednesday, January 29, 2014

How To Make The Screen Follow The Player

Hi gamers! This fast post will show you how to make the screen follow your player. This is very helpful when you make a 2-D side-scroller such as Mario.

So first things first we need a sprite for the player. once you make the sprite, make an object with that sprite. I'll name it obj_player.
Now you have the object, make a room (call it rm_game).

1.) Go to rm_game then views
Under views
2.) Check "Enable the use of views" & "Visible when room starts"
Under views - object following
3.) From the drop down menu (next to <no object>) choose obj_player
4.) fill in...
Hbor: 500
Vbor: 500

Also make sure that under your room settings, you change the width & height or else this will be useless.
Viola! That's it! Congratulations! You are one step closer to making a game such as megaman and mario!
See ya fellow gamers and...

Happy Gaming!

Monday, January 27, 2014

How To Have Bullets

Hi gamers! So You're here about bullets? Tsk, tsk, tsk you're a violent person. Alright well this is the post for you. Just make sure you only shoot in the game.
*I feel like listing the steps in this post*

1.) You need 2 sprites and 2 objects for the player & the bullet. I will use a square sprite and call it obj_guy.















2.) Go to obj_guy's object and select the "create event"
3.) Go to the control tab and right-click Set Variable
4.) fill this in.
Variable: ammo
    Value: 10 (this is your amount)
                    click ok
5.) Now go to the events and click "key press - right"
6.) Go to controls tab click test variable.  fill in
  Variable: ammo
      Value: 0
Operation: equal to
         Click ok
7.) Click...
Start of block
exit this event
end of block
ELSE
Set variable (Variable: ammo Value: -1) (RELATIVE)
create moving instance fill in
   Object: (your bullet object)
           X: 0
           Y: 0
    Speed: (how fast you're bullet shoots)
Direction: (this depends which direction you will shoot)

NOTE: Gamemaker directions
  right: 0
     up: 90
    left: 180
down: 270

By the end your screen should look like this:



















Now I'm assuming you want to pick up ammo somehow so...
1.)make a sprite for your ammo box
2.)make an object. use that sprite.
3.)Now go to obj_guy's window
4.)Use collision with ammo box
5.)Set variable ammo +(however much ammo the box has)(RELATIVE)
6.)destroy the instance(Other)

There you go you violent fellow gamer. See ya!


A few FAQS (well...not really asked, but these are questions I imagine a few of violent gamers asks)

Q: Why can I only shoot once?
A: Make sure you press relative with the shooting

Q: Is there a way I can see the amount of ammo left?
A: Yep! what you need to do is make a <no sprite> object. Make a draw event. go to draw variable.
1.)At the top pick obj_guy
Self
Other
Object: obj_guy <= this one
2.)Type the ammo variable
3.)select the X and Y
4.)pick relative if you want your ammo above your head.


Happy gaming!

The Magic Of Variables

Hi gamers!

This post will only introduce the meanings and uses of variables.
A variable stores information in few letters for the creator to understand.The variable actions can be found in the control tab with 3 different actions:

Set variable-Starts a variable (mainly used in the create event. ex.ammo)

Test variable-This sees if the variable is allowed for the next action (if ammo is equal to 0-exit this event)

Draw variable-This action draws the value of a certain variable (the ammo left in the gun)


Variables are adequate for game play in most games. The cool thing about variables is that they can be used for ANYTHING.
Some examples of a few useful variables:
Ammo
Lives
Health
MP/magic points
Score
Variables can even be used for jumping.

Later posts will have examples of variables.
See ya fellow creators and happy gaming!

Sunday, January 26, 2014

How To Move

Most good games of gamemaker make your character move somehow. This quick post will tell you how to make your character move.

First what you need is an object. For this post I'll use the name obj_player for my object.

Now go to the obj_player's window.
click add event-key press-A
go to actions - move tab - speed horizontal
Under the key press events
<A> = horizontal speed -4
<D> = horizontal speed 4
Vertical speed
<S>  =  Vertical speed 4
<W> = Vertical speed -4
MAKE SURE NOT TO PRESS RELATIVE
Now we need to make the player stop when not pressing anything.
For this, we use the event key release.

Under the key release events:
<A & D> = horizontal speed 0
vertical speed
<S & W> = vertical speed 0

That's all you need to make a player move.


Happy Gaming!

Sprites & Objects

Depending on which gamemaker version you are using, you should go to file and make sure advanced mode is on. This post will show the uses of sprites and objects and why they are needed for gameplay.

Sprites are the image(s) for your objects in the game. To make a sprite you can do it 1 of 3 ways. you could go to resources (at the top next to edit and scripts) and click create sprite. You could right-click sprite on the left toolbar; click create sprite. You could click the green/red pac-man thing in the toolbar and that brings it up. After you have that loaded, click edit sprite.












Once you click it, make a sprite then click the green checkmark to close the editor. Click center (center makes the x and y axis accurate) and click ok.And don't forget to add a name(ex.spr_player).

Objects bring your sprites to life with actions and events. You can create an object with the same ways as a sprite except the green/blue creates an object. When the create object screen comes up, click <no sprite> and select the sprite you made.


Thats the basic of the objects and sprites

Happy Gaming!










Gamemaker Introduction

Gamemaker's a fun program to make games.You can make full platform shooting games start to end without any coding! I'll post a few games that I'm proud of. Gamemaker makes games using sprites, sound, paths, backgrounds, sounds, scripts, shaders, and rooms. The program can make very simple games such as fruit bouncing but it can also make full fps games(which I don't play). So continue if you want to learn something about the epic program.

Link to the program: http://www.yoyogames.com/studio/download

Happy Gaming!