GameMaker Studio 2: Action RPG Tutorial (Part 2: Animation)

preview_player
Показать описание
(NOTE: right click and hit "save as" if this link appears not to work, it's a Chrome issue)

Learn to build a zelda like action RPG in GameMaker Studio 2, starting from nothing at all. This episode deals with animating our four directional character using a manual, more advanced technique than usual.

These tutorials are supported almost wholly by wonderful people via Patreon, click the link above to get join them an access these episodes early, get instant access to source code for all videos and more.
Рекомендации по теме
Комментарии
Автор

Scripts have changed! They now contain functions rather than being functions in their own right. When you create a script you will get a default function declaration. DO NOT DELETE THIS! Name it the same as your script and put your code *INSIDE* the function curly brackets.

SaraSpalding
Автор

Subtitles delayed on this one while I sort out a new process, thx for your patience <3

SaraSpalding
Автор

Honestly, Shaun, you should get Sprite to be your sponsor. You name drop it like 39086 times every video. The least they could do is toss you some moolah!

TheGrimmy
Автор

Its so chill and relaxing to sit and chill with a cup of coffe and watch these whilst learning nice ways to code <3

Really GJ, buddy! Keep it up'n never stop!

NoLootStudios
Автор

function scr_playerAnimationSprite()
{
//Update Sprite
var _cardinalDirection = round(direction / 90);
var _totalFrames = / 4;
image_index = localFrame + (_cardinalDirection * _totalFrames);
localFrame += / FRAME_RATE;

//If animation would loop on next game step
if (localFrame >= _totalFrames)
{
animationEnd = true;
localFrame -= _totalFrames;
} else animationEnd = false;
}

*** oPlayer STEP EVENT ***
scr_playerAnimationSprite();

Good Work everybody!

betinhopw
Автор

For anyone who's sprite is jumping into another area when switching animation, make sure your point of origin is the same on all animations. It should fix that issue.

Skarletskeleton
Автор

*if* (vidsTotal == vidsWatched + 1)
{
sprite_index = sPlayerHappy;
}

NoctisAutumnali
Автор

PSA for anyone having their player sprite always end up facing right after moving.

I had this problem and realized I was mistakenly using the built-in variables 'vspeed' and 'hspeed'. All I had to do was capitalize the 's' in each one to make it 'vSpeed' and 'hSpeed'. This turns them into custom variables.

An easy mistake to make for a beginner, and one that is easy to miss when re-reading the code.

cylop
Автор

*WARNING*
If you follow through all the way and it brings up an error at the end, it's because the scripts changed. Make a new script and put the old scripts code into the function [ ] of the new one. Name it the same and comment instance destroy on the old one

kidshipley
Автор

yours and tutrorials of other gamemaker creators are basically helping me build my game from ground zero. thank you so much for this - an almost 3-4 year brewing of a single idea can now find a way into a real world

DelphineEraklea
Автор

I just recently got into using GMS and your guides have helped me a lot shaun
I can't ever thank you enough for making these guides

laraB
Автор

If the assets file link doesn't seem to work, right click it and hit save as. Or use a non-Chrome browser.

Chrome doesn't play nice with direct file links on YT for whatever reason.

SaraSpalding
Автор

11:29 I thought I heard a quack sound. XD

AlfredPros
Автор

Man, this tutorial was a lifesaver. You're really good at teaching this sort of thing, keep up the good work!

mindthemoods
Автор

Thank you for explaining things in depth and with attention to detail. Our small group is spending our quarantine focused on deciding what kind of programming we want to pursue. We are thinking of moving forward with Game Maker right now and that's primarily due to this series. Thank you very much.

ianjharris
Автор

I've watched your tutorials for a few years now, they're extremely helpful. I'm putting what I've learned into practice now so hopefully I'll actually finish a project this time. You've helped me actually wrap my brain around the weird ways games work and how deceptively simple it can be. I'll still rely on these tutorials to remind myself how to make different elements work, but I can already imagine mechanics I can try work out myself. Thank you so much.

dylstarling
Автор

You are changing my life with these videos. Please continue to make more videos like rpg games or Zelda like games.

Thank you!

professionalquestion
Автор

OMG THANKYOUU,






This is the best early birthday gift

fabian_azf
Автор

I'm glad I found your series. Thank you Shaun! You're a wonderful teacher.

alexanderm.clinthorne
Автор

In scratch we used a similar system, because you would have all the animations in the same sprite, then use a semi-complex system to sort between the costumes (animation frames).

blurrysquire