How To Create A Character!

How To Create A Character!

Introduction

This is my First Guide so don't judge too harshly on how I provide information. Save between doing stuff because Gamemaker may crash while you're doing this.

I'm gonna be completely honest. I didn't find a tutorial on how to create a character so it took me around 4 to 5 hours to make one. I wanted to create a tutorial on how to make one so no one has to figure out most of this stuff on their own.

First off, you're gonna have to get the source code and edit it with gamemaker editor.

You can get Gamemaker here http://www.yoyogames.com/studio

The source code to the game is pinned in the discussions so it's easy to find.

Sprites


How To Create A Character! image 7
How To Create A Character! image 8
How To Create A Character! image 9
How To Create A Character! image 10
How To Create A Character! image 11

Once you open the opensource with gamemaker, you're gonna have to go to sprites.

Which you can see here

Now, as you can see, I already created a character called Xero. That was the character I was making for 4-5 hours. What you're gonna do, is right-click Player and click on Create Group. Rename your folder to whatever you wanna call it, Bob, Jack, Jill, anything you want. I'm just showing how I made Xero.

In the folder, you're going to have to make the sprites. I went back to the Player folder, and into the "Jimmy Folder" Double Click on "spr_jimmy_idle" and click on edit sprite right after that. Double Click on image 0 and hit the save button on top. It will give you the exact height and width of the picture.

Go back to the Player Folder and right click on your character's folder. There should be a button that says Create Sprite.

You should be in the new sprite's properties. Rename it to spr_Name_idle This part is very important. Also make sure the origin is set to X 57 and Y 91

It makes sure your character is in the right place. Now click on Load Sprite and load the picture you saved of jimmy. It should look like this.

Now go into Edit Sprite and Double click the picture. Now edit Jimmy into you're character!

If you wanted to get more advanced, you could go back into sprite editor and copy and paste the picture. You should have two of the same picture. Edit one of them to be just a little different and save. Click on Show Preview and it shows a repeating animation. This is what it would look like if you stood still. Now you got your First idle sprite! One down and eleven more to go!

Here's my dash_fx for example. It has a lower opacity and it's colored orange. Remember to set the origin to 57 and 91.

You don't have to use Gamemaker Editor's Art tool really, anything would work. I just used it because it was easier for me.

I'm not gonna specifically tell you how to make all the other eleven sprites. Just similarily repeat from 5 paragraphs back 11 times. When making these different sprites, such as spr_Name_melee Make it based off of Jimmy's sprites. This was the hardest part for me, so if you're an expert artist, it shouldn't take you long to make these things.

Objects: Player


How To Create A Character! image 25
How To Create A Character! image 26
How To Create A Character! image 27
How To Create A Character! image 28

Now, after you're done making the sprites, it gets easier. Close the Sprites folder, and go to the objects folder. Go to the Player folder in the Object folder and right click obj_jimmy. Duplicate it and rename it to obj_Name

Next to the name, there should be Sprite. Click on the disk thing and look for your idle sprite. It's in the Player folder so it's not that difficult.

Below the Sprite, there should be Parent. Click on the disk thing next to it and look for class_Player. Click on it and you're properties should look like this.

In the picture, you should be seeing The Events next to the Name.Click On create then double click gameplay. You should see something like this.

This is where things get interesting. Edit these things to your likings. hp means health, stamina means shield, and energy means how long you can run.

However! Look at Sprites, change anything that says jimmy into the name of your character. If the text isn't red, there is something wrong. Capitalization matters and if you mispelled one thing, it won't be red. Once you're done with tweaking things, it should look like the last picture with edited stats and spr_Name_idle or something similar to that.

Nice, you're character is now an actual character! Bet you're excited to play as them huh? Well guess what, we're not done yet. Make sure, that you save the file by clicking the check mark on the top left. Now click on Begin Step and Character Swap. This part is really simple so a picture isn't needed. Basically set char_jimmy to char_Name Now it isn't red yet, just wait

That's done, click the checkmark.

Objects: Enviroment


How To Create A Character! image 38
How To Create A Character! image 39
How To Create A Character! image 40
How To Create A Character! image 41
How To Create A Character! image 42
How To Create A Character! image 43

How To Create A Character! image 44
How To Create A Character! image 45
How To Create A Character! image 46
How To Create A Character! image 47

In User Defined 0, it doesn't need to change so just click okay on the bottom left. We're not yet done with objects, go into the environment folder and click on npcs.

Right click on obj_swap_jimmy and click duplicate. Rename it obj_swap_Name You should be in it's properties. Set it's Sprite to spr_Name_holo

This part took me 30 minutes to find the parent because I'm dumb. Set the parent of obj_swap_Name to class_character_swap.

Now once that's done, double click on Sets Character on the right and replace char_jimmy to char_Name. Again it's not red yet, so just wait. There's another setting called oldweapon, it's gonna set the starter weapon when you play as them. Personally, it's a highmag and sniper rifle. Now click on the checkmark to save it and save the properties by clicking the check on the lower left.

Congratulations, we're almost done. Now double click class_character_swap and go into the End Step Event. Double click Interact and this is where it might get confusing. Copy the part I selected.

It has to copy exactly like that. Now Scroll down and Paste it right here

above newchar.myplayerid. Now it should look like this

Now replace the two char_jimmy to char_Name and the one obj_jimmy to obj_Name. You're done here so click the checkmark to save. Now double click Unlock and copy char_pinky.

Paste it below like so and only replace char_pinky not global.unlockPinky

Now in the Events part in class_character_swap, go to Draw. Double Click Main Draw and copy this.

Now put it right under all the characters like this

Scroll down until you see the other chars and copy char_pinky.

Now put it below all the chars like the last one. If the text goes a bit farther away then the rest just delete the spaces. Afterwards, replace char_pinky with char_Name Click the Checkmark and you're done with class_character_swap

Macros And Rooms


How To Create A Character! image 62
How To Create A Character! image 63
How To Create A Character! image 64

Now close the Objects folder and go into the Macros Folder. Double Click on All Configurations and click on Insert on the bottom. Now make the name char_Name and the Value of 7 or more. Just make sure it's not the same value as another. Now click on OK on the bottom right to save it. All of the char_Name's should be red now. If you want to check, go ahead. Remember, Capitalization matters!

Close the Macros Files and go into the Rooms Files. Double Click on room_start. You should be in the starting room. On the bottom left, you should see a minimap of the Place. Click on where the characters are and place yours there.

On the top left there should be tabs saying Backgrounds, views, physics, objects, settings, and tiles. Click on objects and click on the disk thing next to controller main. Now find obj_swap name and click on it.

Now click wherever you want your character to be. I put it near the spawn so it's easier.

Now guess what, that's it! Just click the checkmark on the top left to save and you're done! Congratulations! You're character is now in the game!

Controllers And End


How To Create A Character! image 71

How To Create A Character! image 72
How To Create A Character! image 73

Now One last step before you can actually play with them in stages.

Go back into the objects folder then go into Controllers. Double Click On controller_main and go into event Step. Double Click level Instantiator and copy this.

Afterwards, paste it under the characters like this and edit char_jimmy to char_Name and obj_jimmy to obj_Name.

Press the checkmark to save.

Now go to Level Exit right below Level instantiator and do the same thing above. Afterwards, you should be able to play as your character!

You should probably save right now, so you don't lose your progress. The save is the disk on the top left. After you do that, click on Play which is a rotated triangle, exactly like the play button on videos. It's green so don't mistake it for the red one. The save will take a while and if it looks like it's stuck on 45%, don't worry, it will save. Playing will also take a while to load so be patient.

Well? Did i work? It worked for me! Obviously, choose any of the characters first, then switch to yours.

If you don't like your character's stats, you should probably edit it a bit.

Well, your characters now in the game and you can play as them. Mix them with some custom weapons and you have a completely different experience!

Again, this is my first Guide, if you have a problem with my tutorial, ask me! It's probably really confusing, to be honest.

Source: https://steamcommunity.com/sharedfiles/filedetails/?id=530714055					

More Relic Hunters Zero: Remix guilds