I'm in my first year of University and we're doing a project in Unity.. you just saved me from pulling my hair out over 2D animations after hitting a massive road block! Really great tutorial! Clear, concise, easy to understand.. thumbs up from me!
Thanks so much for making this, the Unity videos are always WAY out of date and this was a video that the community badly needed. Definitely the best information out there right now. THANK YOU
This is maybe the best tutorial I've ever done. And I've been a Lynda subscriber for five years now. You explain things so well, and just so naturally. Thank you.
Really great tutorial. I've been using unity now for about 2 months and have shied away from the animation aspect of it because it because it just seemed to go over my head. I finally understand! Thank you!
Your move to Unity was perfect timing for me. I just worked through one of the PacktPub books on 2d Unity after deciding it was a better learning investment than GameMaker. The blend-tree approach to 2d sprite animation is very elegant.
Great tutorial thanks a lot! I have been an game artist for years but have only just started learning Unity, your tutorial is very clear and you explain how the code works very clearly.
thanks mate i spent a long time growing into the presenter i am today, seriously go watch my early videos they are shocking haha :P still informative but shocking!
GOD BLESS THIS TUTORIAL, THANK YOU SO MUCH FOR MAKING IT! Everything was so easy to understand and you are a legend for explaining everything so thoroughly :) 10/10 would watch again
Thanks Michael a lot of people have said this to me over the past year! I appreciate this kind of feed back I think it has something to do with my personal struggle to learn gamedev as I was growing up i never knew fancy math terms or programming concepts so i related to everything in a very real world practical way i always hope when creating tutorials like this to explain the concepts in plain English so that everyone can understand :)
Dog Nabbit! Great tutorial. I'm using playmaker and I knew nothing about blend trees. Have been using a ton of variables to change animation directions. The blend tree contains all of those anims for a single anim state (idle/walk/roll/etc.) Thank you so much. Very hard to find 2D top down tutorials.
Awesome video as always! Will maybe considering using Unity instead of GameMaker now since you made Unity look so powerful and easy. The part with the controller,wasd, and arrow keys made my jaws drop! :D
It really has some unique features just be warned its not as straight forward as game maker in regards to setting up a tile map and level editing for 2D etc tutorials incoming later for that stuff.
I like this video, just some basic things about unity. Would love to see some 3D stuff in the future though, since that's what I'm focusing on right now.
This is weird. When I was testing out Game Maker Studio I came across your RPG tutorials for Game Maker, not knowing you used any other engine. Now that I've gone back to Unity the first thing that pops up in my subscription notifications is a Unity RPG tutorial from you.
I managed to duplicate the whole thing for a second character. For those interested: 1. Duplicate the Player Game Object 2. Duplicate the animation controller (name it PlayerAC 2) and every animation clip (PlayerDownIdle, PlayerDownWalking and so on) 3. On the new player's Animator component change the Controller variable to PlayerAC 2. 4. On the proyect panel select your new animation controller (PlayerAC 2), and go to the Animator Panel. There just do like in the video on 13:21 to change the Idle and Walking blend trees animation clips to your new ones. 5. Import the new character's images just like the video on 1:43 6. Finally select the new player on the Hierarchy and go to the Animation panel. In there, select each animation clip like on 14:19 but instead of deleting specific images you need to drag your new images to replace the old ones.
For those of you who would like to have the sprite sheet that is used in the tutorial you can fine it here:- opengameart.org/content/antifareas-rpg-sprite-set-1-enlarged-w-transparent-background-fixed. rm2kdev I really enjoyed this tutorial so thank you for creating it. I hope you continue making Unity tutorials as I watch them all.
Thanks for posting that windy, yes i will continue working on unity tutorials last weekend i recorded 4 episodes for the RPG tutorial series. Currently in the process of editing them and they will start coming out soon!
Hi mate i have followed all of your tutorials from Gamemaker and glad to see that you are now doing tutorials on Unity. Can i ask for a tutorial on using layered PSD files for the new 4.6 UI ie how to use them thanks.
I am quite late, and I don't expect anyone to respond anytime soon, but I have done everything correctly and my character doesn't seem to move, and I can't figure out why? please help me. thanks
First of all... This was a very good and informative tutorial, I learned a lot by watching it. I have one question though... How can you make the movement fixed, so the player can't move diagonally when to buttons are pressed at the same time (or the stick on a controller is pointed diagonally)?
at 3:30, I drag the sprites into the scene view it doesn't pop up with a box asking me to make a new animation and instead just puts one of the sprites on the scene view.
thanks man i want to finish the demo rpg before I start recording I've had a huge focus in recent years on quality and this will be no exception. Highest quality capture, audio, production and information hopefully explained in a down to earth human way :)
Yeah I'm doing 3D tutorials also just starting out with some easier ones for people. As far as which engine to use that comes down to features and pros/cons unity has a better language at its core flexible enough to let you do 'anything' where as game maker you'll often find yourself hitting a wall or bending over backwards to accomplish a feature. (that's not to say GM is bad i love GM) The scene editor in unity is far more optimized than game makers so you can design bigger levels without lag etc and in general your games could be bigger in unity without lagging since its far more optimized at its core. cons for unity high cost (might be changing soon though??) more work to achieve similar results. So at the end of the day it comes down to personal preference and weather you think the extra work to begin is worth the time saved later.
Nice. I don't really see the advantages to jerry-rigging unity to work like rpgmaker MV, when MV can already do all of these things, in HD, is also optimized and can export to windows, mac, ios, html5 and Android. Call me crazy, but a basic rpg would be far easier to make in MV. The only real thing it's missing as far as I can see is action-based combat as opposed to turn-based, which Unity certainly has in spades. I guess it comes down to which type of combat mechanic you want. Thanks for the video.
My character moves in all directions properly and all that... but whenever I go to a wall or a tree, instead of it being stopped by it, it just passes through it :/. Is there anything else I need to add to the movement script so when my character gets near a wall or a tree, it is told not to go through it?
I actually fixed the problem :). Apparently, is kinematic needed to be unchecked, and I had made my box colliders for my objects on the map too big. After that, I was able to work with collisions properly and add attack animations :).
Can you help me, on Unity 5 when i go to set the conditions for the lines in between idle and walking there is no true or false, just greater than or less than 0?
how easy is it to update a sprite used in an animation without breaking the animations or code? I am using a test sprite for now in my game and need to update it to the actual sprites for my character but dont know exactly where to put them to make everything work without having to go through the animation setup again.
Hi there! I am interested is the same logic used for mobile game development, when you're having other input (not keyboard), for instance touch control. And does the float values are not to heavy for mobile processor, fro example ir you have 20 characters inn the scene?
rm2kdev can you help me man. i do all you thought but my walking tree is always play after about 1 sec without im pressing any key so my char is doing walking animation and then back to idle and do the same again and again
Thanks a lot, but instead of using 4 different animation files I rotated my player with transform.eulerAngles cause I'm working on a 3D project and I found boring creating 4 different anim for each direction. Great turorial btw and have a nice day!
Can you edit that blend tree to react to the scene(ex. the player needs to be a certain direction on a specific scene when the scene begins) or do you have to copy and paste the blend tree each scene? Thanks!
HOLY SHIT THANK YOU SO MUCH! NO ONE ON TH-cam SEEMS TO KNOW TO TO TEACH THIS SHIT! One bug though, my IDE animations not really work, they only act as a extra frame to the walking anermations, any idea what I did wrong?
When I walk left or right the release either key. my sprite sometimes stops at the incorrect frame instead of going to the left or right idle. Can you help me, please?
+pojo267 just add a float in that line where you multiplied it by time.deltatime and multiply it by that float aswell. you can make a public float, so you can change it in the inspector.
game maker and unity both have their advantages. with game maker its faster to get your game up and running, you see results quicker but once you get into adding advanced game mechanics it becomes much harder. with unity its harder to get your game up and running and takes multiple hours to get a basic prototype running nicely but when your in the end stages of production its easier to maintain and grow new features.
My Player is moving left, right, up, down - but the animation is not changing. The same thing happens when I use your code, too. [SOLVED] when I was adding Parameters, I accidentally added a Layer, too. This was screwing up my Blend States.
Make sure you've selected multiple frames when you drag them. If that doesn't work, select multiple and right click on one of them, then click on "Create Animation"
When my character stops walking, it always goes back to the same idle animation... I checked the animations in the blend trees and i'm sure I set them the right way. Can anybody help me? Thanks.
I don't know if it's going to be the same for you but... I just deleted a certain group of lines that weren't necessary for the script. It's been a while so I don't really remember what lines they were, sorry. One thing I can say is that the code shown in the video is correct, so if you're having trouble you either typed incorrectly or another code you are using is messing with this one. If it's the latter, check for bad lines of code. lmao i repeated myself like 50 times
+rm2kdev Should I learn design patterns in C# in order to make some simple to a intermediate level games.. like fast paced 2d platformer style RPG.. with inventory systems?
Getting all kind of errors any idea why here is the script using UnityEngine; using System.Collections; public class PlayerMovement : MonoBehaviour { Animator anim; // Use this for initialization void Start () { anim = GetComponent(); } // Update is called once per frame void Update () { float input_x = Input.GetAxisRaw("Horizontal"); float input_y = Input.GetAxisRaw("Vertical"); bool isWalking = (Mathf.Abs(input_x) + Mathf.Abs(input_y)) > 0; anim.SetBool ("isWalking", isWalking); if (isWalking) { anim.SetFloat("x", Input+input_x); anim.SetFloat("y", Input+input_y); transform.position += new Vector3(input_x, input_y, 0).normalized * Time.deltaTime; } } }
+Suncod360: 6 months old problem, but I'm going to answer anyway. first of all, if you want someone's help with programming, don't say "I'm getting all kinds of errors," that's not going to help. tell us what errors. also, unity forum is much better place to get your problems resolved. secondly, on your anim.SetFloat(...) statements, you're setting them to "Input+input_x" and "Input+input_y". "Input" is static class, what is "+" sign even supposed to mean here? your variables are called just "input_x" and "input_y" and that's what you want to pass as second argument to anime.SetFloat() function.
could either of you please do a test and try download one of the other files avaliable on my site? please let me know if they work i dont know where the problem is on the server :) its all working for me it might be a permissions error :o
rm2kdev i`ve checkt internet Explorer and Google Chrome. can still dont download anything on you,re site they just saying (" 403. That’s an error. We're sorry, but you do not have access to this page. That’s all we know.")
I'm in my first year of University and we're doing a project in Unity.. you just saved me from pulling my hair out over 2D animations after hitting a massive road block! Really great tutorial! Clear, concise, easy to understand.. thumbs up from me!
Thanks so much for making this, the Unity videos are always WAY out of date and this was a video that the community badly needed. Definitely the best information out there right now. THANK YOU
This is maybe the best tutorial I've ever done. And I've been a Lynda subscriber for five years now. You explain things so well, and just so naturally. Thank you.
Thanks for the help. Really appreciate you taking time out of your life to help random internet citizens.
Really great tutorial. I've been using unity now for about 2 months and have shied away from the animation aspect of it because it because it just seemed to go over my head. I finally understand! Thank you!
Your move to Unity was perfect timing for me. I just worked through one of the PacktPub books on 2d Unity after deciding it was a better learning investment than GameMaker. The blend-tree approach to 2d sprite animation is very elegant.
Great tutorial thanks a lot! I have been an game artist for years but have only just started learning Unity, your tutorial is very clear and you explain how the code works very clearly.
Well done rm2kdev, this is a huge step on tutorial quality. I really like it, it was clear and effective. Thanks a lot!
thanks mate i spent a long time growing into the presenter i am today, seriously go watch my early videos they are shocking haha :P still informative but shocking!
This is way better than the Packt book, but I'm glad I learned from both. Multiple methods = learning various efficient methods.
Thanks mate :) Packt Publishing I'm open to writing a book haha.
GOD BLESS THIS TUTORIAL, THANK YOU SO MUCH FOR MAKING IT! Everything was so easy to understand and you are a legend for explaining everything so thoroughly :) 10/10 would watch again
Thanks a ton! This was super helpful, I've been looking for a tutorial that covered something like this for a while now. Subbed!
Great video, you explain things very well!
Thanks Michael a lot of people have said this to me over the past year! I appreciate this kind of feed back I think it has something to do with my personal struggle to learn gamedev as I was growing up i never knew fancy math terms or programming concepts so i related to everything in a very real world practical way i always hope when creating tutorials like this to explain the concepts in plain English so that everyone can understand :)
Dog Nabbit! Great tutorial. I'm using playmaker and I knew nothing about blend trees. Have been using a ton of variables to change animation directions. The blend tree contains all of those anims for a single anim state (idle/walk/roll/etc.) Thank you so much. Very hard to find 2D top down tutorials.
Great tutorial. I can’t wait to see more of them coming!
非常棒的教程,U3D的课程都学习了!相当不错,希望可以录制更多的U3D 2D课程!
This is an absolutely AWESOME tutorial. Thank you!
Very nice! I was trying to do something exactly like this a few months ago, but I couldn't figure it out. Now I can!
very good tutorial one of the best i heard ! you deserve much more subs i hope you get them !
i was trying to find a good topdown 2d movement tutorial and this really helped thanks bruh :) subscribed !
Awesome video as always! Will maybe considering using Unity instead of GameMaker now since you made Unity look so powerful and easy. The part with the controller,wasd, and arrow keys made my jaws drop! :D
It really has some unique features just be warned its not as straight forward as game maker in regards to setting up a tile map and level editing for 2D etc tutorials incoming later for that stuff.
Very helpful tutorial i'm really looking forward to the next videos this is exactly what I was looking for. Thanks and keep up the good work! :D
Ugh... windows 8, such horrible memories. But Dude, i LOVED this video absolutely, this is exactly what I was looking for and helped me a lot!
Thanks so much rm24dev. So happy you will be making unity vids now. will you be doing a whole series on this?
Hey, awesome tuto! I didn't knew how blend trees work. With blend trees the effort spent on transitions is way lesser than with states. Thank you.
Nice and clear Tutorial Great job :) Love it :)
Super helpful! Loving the teaching style Easy to learn from thank you good sir!
You're an absolutely brilliant explainer. Subbed!
Thank you daniel :)
Great video. I really liked your style.
Cool tutorial! Very useful and well explained! Thanks! :)
Great tutorial, the code is nice and clean too!
Thx dude thats what i was exactly looking for :)
I like this video, just some basic things about unity. Would love to see some 3D stuff in the future though, since that's what I'm focusing on right now.
I posted this comment before you said you would do 3D :P Like literally two seconds before. but that doesn't matter.
Wonderful tutorial! I hope to see more! It would be awesome to see 'building a world' tutorial series for 2D! Maybe one day? Hahaha :D
This is weird. When I was testing out Game Maker Studio I came across your RPG tutorials for Game Maker, not knowing you used any other engine. Now that I've gone back to Unity the first thing that pops up in my subscription notifications is a Unity RPG tutorial from you.
Googles stalking you with suggested content welcome to the world of advertising :P
Nice video, I'm looking forward to more unity tutorials :D
Perfecto me a funcionado a la perfección, Muchas gracias !.
Didn't know about blend trees, I had a super complex transition pattern, now its only 2 blend trees xD Thanks!
Same here.
Great Video!! You work kind of backwards and a little messy/inefficient workflow but still learned loads!!
Outstanding tutorial, it's very easy to follow. ^_^
Nice tutorial!! good job. Thanks
Thank you! I was searching for good tutorial like this :) have you plan to do do other unity's tutorial videos based on the 2D RPG in the future?
35:24 - 36:16 Is there a tutorial that teaches this? I need to create a lot of different looking enemies with the same animations. Great tutorial BTW!
I managed to duplicate the whole thing for a second character. For those interested:
1. Duplicate the Player Game Object
2. Duplicate the animation controller (name it PlayerAC 2) and every animation clip (PlayerDownIdle, PlayerDownWalking and so on)
3. On the new player's Animator component change the Controller variable to PlayerAC 2.
4. On the proyect panel select your new animation controller (PlayerAC 2), and go to the Animator Panel. There just do like in the video on 13:21 to change the Idle and Walking blend trees animation clips to your new ones.
5. Import the new character's images just like the video on 1:43
6. Finally select the new player on the Hierarchy and go to the Animation panel. In there, select each animation clip like on 14:19 but instead of deleting specific images you need to drag your new images to replace the old ones.
very nicely explained -Thnx
For those of you who would like to have the sprite sheet that is used in the tutorial you can fine it here:- opengameart.org/content/antifareas-rpg-sprite-set-1-enlarged-w-transparent-background-fixed.
rm2kdev I really enjoyed this tutorial so thank you for creating it. I hope you continue making Unity tutorials as I watch them all.
Thanks for posting that windy, yes i will continue working on unity tutorials last weekend i recorded 4 episodes for the RPG tutorial series. Currently in the process of editing them and they will start coming out soon!
Awesome video man!
very good tutorial ,thank you very much
Great tutorial thank you very much.
Hi mate i have followed all of your tutorials from Gamemaker and glad to see that you are now doing tutorials on Unity. Can i ask for a tutorial on using layered PSD files for the new 4.6 UI ie how to use them thanks.
Thanks :) yeah ill add it to the list of todos on trello :p
great tutorial, thank you!
Nice tutorial!
I have a question, How would i make the character go quicker/make a public float adjustable so i can type the no. of speed i want?
I love you so much. You saved my life I would seriously marry you
+K1monochromia xD your welcome xD and I'm happily married but thanks anyway :P p.s. love the eucliwood avatar
oh rm2kdev, nice to see unity3D tuts, thx. More please! :-D
its damn coool thanks!!
s27.postimg.org/yf9pt4b4j/damn_cool.jpg
FREE 2 PLAY goof job mate :P here's a teaser of where we will be heading in the coming weeks. imgur.com/KNCb8ap
rm2kdev So cool!
Thanks marco :)
You are the best. Thank you very much :з
I am quite late, and I don't expect anyone to respond anytime soon, but I have done everything correctly and my character doesn't seem to move, and I can't figure out why? please help me. thanks
This is an excellent tutorial. Now if you could just do the same thing using playmaker for us non coders that would be perfect!
You are the best
First of all... This was a very good and informative tutorial, I learned a lot by watching it.
I have one question though... How can you make the movement fixed, so the player can't move diagonally when to buttons are pressed at the same time (or the stick on a controller is pointed diagonally)?
at 3:30, I drag the sprites into the scene view it doesn't pop up with a box asking me to make a new animation and instead just puts one of the sprites on the scene view.
+skmongol This is due to the update, your fine.
Thanks for the tutorial! Great stuff!
I do have a question, how do I make the player character faster or slower?
I'm trying to mirror my right walking animation, but the toggle to mirror the animation wont let me click on it, any ideas?
I want more of Unity tutorials! Could you do a tutorial of player animations with skeleton? That would be great!
PS : Greetings from France!
- Blade.
really cool video, nice job ! Btw the blog url isn't working anymore.
do you will continue with 2D RPG tutorials? plx keep going! :D
Yeah mate I've been working hard in my spare time. here's the last teaser i released :P imgur.com/woB1kLQ
rm2kdev wow! great work! i've been searching a quality work like this for weeks! waiting for your next video! Hope soon! :D
thanks man i want to finish the demo rpg before I start recording I've had a huge focus in recent years on quality and this will be no exception.
Highest quality capture, audio, production and information hopefully explained in a down to earth human way :)
rm2kdev i've already finished this tutorial, when you will release the next?
When the conditions i mentioned in the last reply are met :)
I'm pretty good a GM and its GML. Is using unity any better for 2D. I see it as much better for 3D. Any 3D tutorials going to be coming out?
Yeah I'm doing 3D tutorials also just starting out with some easier ones for people.
As far as which engine to use that comes down to features and pros/cons
unity has a better language at its core flexible enough to let you do 'anything' where as game maker you'll often find yourself hitting a wall or bending over backwards to accomplish a feature. (that's not to say GM is bad i love GM)
The scene editor in unity is far more optimized than game makers so you can design bigger levels without lag etc and in general your games could be bigger in unity without lagging since its far more optimized at its core.
cons for unity high cost (might be changing soon though??) more work to achieve similar results.
So at the end of the day it comes down to personal preference and weather you think the extra work to begin is worth the time saved later.
Nice. I don't really see the advantages to jerry-rigging unity to work like rpgmaker MV, when MV can already do all of these things, in HD, is also optimized and can export to windows, mac, ios, html5 and Android. Call me crazy, but a basic rpg would be far easier to make in MV. The only real thing it's missing as far as I can see is action-based combat as opposed to turn-based, which Unity certainly has in spades. I guess it comes down to which type of combat mechanic you want. Thanks for the video.
Why on the Cartesian plane have you labeled the positive y co ordinate as -1?
Should I use this video or episode 4 of the tuts it look s the same but I did not watch the whole video because time.
Ah, so this is what you've been up to.
Ian Parker :P more or less
rm2kdev Will you be doing an action/rpg or will you be handling random encounters like a jrpg style?
My character moves in all directions properly and all that... but whenever I go to a wall
or a tree, instead of it being stopped by it, it just passes through it :/. Is there anything
else I need to add to the movement script so when my character gets near a wall or a
tree, it is told not to go through it?
same dude, I added colliders but still passes through. tell me if u fix it please
maybe unity 2D rpg collisions search on youtube
I actually fixed the problem :). Apparently,
is kinematic needed to be unchecked, and
I had made my box colliders for my objects
on the map too big. After that, I was able
to work with collisions properly and add
attack animations :).
Can you help me, on Unity 5 when i go to set the conditions for the lines in between idle and walking there is no true or false, just greater than or less than 0?
how easy is it to update a sprite used in an animation without breaking the animations or code? I am using a test sprite for now in my game and need to update it to the actual sprites for my character but dont know exactly where to put them to make everything work without having to go through the animation setup again.
+rm2kdev Which is better on making rpg for mobile? is it game maker or unity?
Hi there!
I am interested is the same logic used for mobile game development, when you're having other input (not keyboard), for instance touch control.
And does the float values are not to heavy for mobile processor, fro example ir you have 20 characters inn the scene?
After i finished this project on my pc, i closed it because i wanted to view it later, now the spire is gone. How do i get it back into my "game"?
I have a grey line flashing next to my sprite when animation plays please help
rm2kdev can you help me man. i do all you thought but my walking tree is always play after about 1 sec without im pressing any key so my char is doing walking animation and then back to idle and do the same again and again
Thanks a lot, but instead of using 4 different animation files I rotated my player with transform.eulerAngles cause I'm working on a 3D project and I found boring creating 4 different anim for each direction. Great turorial btw and have a nice day!
is there a way to change the player speed? it's a bit too slow for my liking
Can you edit that blend tree to react to the scene(ex. the player needs to be a certain direction on a specific scene when the scene begins) or do you have to copy and paste the blend tree each scene? Thanks!
I had the same question. Found I could just set the x or y parameters to the value for the direction I needed.
What if I want to use Unity3D rigid bodies and add force instead of changing transform.position?
HOLY SHIT THANK YOU SO MUCH! NO ONE ON TH-cam SEEMS TO KNOW TO TO TEACH THIS SHIT! One bug though, my IDE animations not really work, they only act as a extra frame to the walking anermations, any idea what I did wrong?
When I walk left or right the release either key. my sprite sometimes stops at the incorrect frame instead of going to the left or right idle. Can you help me, please?
Nevermind I had interrupt source checked in my make transition settings. :p
Great tutorial, however i'm still trying to figure out how to change my character's movement speed
+pojo267 just add a float in that line where you multiplied it by time.deltatime and multiply it by that float aswell. you can make a public float, so you can change it in the inspector.
+pojo267 using UnityEngine;
using System.Collections;
public class PlayerMovement : MonoBehaviour {
Animator animator;
public float moveSpeed;
void Start () {
animator = GetComponent();
}
void Update () {
float input_x = Input.GetAxis("Horizontal");
float input_y = Input.GetAxis("Vertical");
bool isWalking = (Mathf.Abs(input_x) + Mathf.Abs(input_y)) > 0;
animator.SetBool("isWalking", isWalking);
if(isWalking)
{
animator.SetFloat("x", input_x);
animator.SetFloat("y", input_y);
transform.position += new Vector3(input_x, input_y, 0).normalized * Time.deltaTime * moveSpeed;
}
}
}
is it just me or is gamemaker WAY easier to use for 2d games than unity?
game maker and unity both have their advantages.
with game maker its faster to get your game up and running, you see results quicker but once you get into adding advanced game mechanics it becomes much harder.
with unity its harder to get your game up and running and takes multiple hours to get a basic prototype running nicely but when your in the end stages of production its easier to maintain and grow new features.
true
what keys are you using to move? i cant figure it out
yea same^^
My Player is moving left, right, up, down - but the animation is not changing. The same thing happens when I use your code, too.
[SOLVED] when I was adding Parameters, I accidentally added a Layer, too. This was screwing up my Blend States.
How to avoid the player moving in diagonal?
I'm not presented with the option to create a new animation when I drag those frames into the scene. It just goes there, and nothing more.
Make sure you've selected multiple frames when you drag them. If that doesn't work, select multiple and right click on one of them, then click on "Create Animation"
So I have your code exactly ... but my character moves skates around and doesn't stop moving... sigh
I can't download project :(
When my character stops walking, it always goes back to the same idle animation... I checked the animations in the blend trees and i'm sure I set them the right way. Can anybody help me? Thanks.
Nvm, I fixed it.
how did u fix it ma boi? i need help with that
I don't know if it's going to be the same for you but... I just deleted a certain group of lines that weren't necessary for the script. It's been a while so I don't really remember what lines they were, sorry. One thing I can say is that the code shown in the video is correct, so if you're having trouble you either typed incorrectly or another code you are using is messing with this one. If it's the latter, check for bad lines of code.
lmao i repeated myself like 50 times
Thanks, will check, just wanna fix it quick lol.
i love you
How do you make the sprites?
Matthiau Steelez With art skills but i dont have any so i just download them.
+rm2kdev Should I learn design patterns in C# in order to make some simple to a intermediate level games.. like fast paced 2d platformer style RPG.. with inventory systems?
Getting all kind of errors any idea why here is the script
using UnityEngine;
using System.Collections;
public class PlayerMovement : MonoBehaviour {
Animator anim;
// Use this for initialization
void Start ()
{
anim = GetComponent();
}
// Update is called once per frame
void Update ()
{
float input_x = Input.GetAxisRaw("Horizontal");
float input_y = Input.GetAxisRaw("Vertical");
bool isWalking = (Mathf.Abs(input_x) + Mathf.Abs(input_y)) > 0;
anim.SetBool ("isWalking", isWalking);
if (isWalking)
{
anim.SetFloat("x", Input+input_x);
anim.SetFloat("y", Input+input_y);
transform.position += new Vector3(input_x, input_y, 0).normalized * Time.deltaTime;
}
}
}
+Suncod360: 6 months old problem, but I'm going to answer anyway. first of all, if you want someone's help with programming, don't say "I'm getting all kinds of errors," that's not going to help. tell us what errors. also, unity forum is much better place to get your problems resolved. secondly, on your anim.SetFloat(...) statements, you're setting them to "Input+input_x" and "Input+input_y". "Input" is static class, what is "+" sign even supposed to mean here? your variables are called just "input_x" and "input_y" and that's what you want to pass as second argument to anime.SetFloat() function.
thx for the help but already know how it works now haha
free download dont work.( can you send me it:)
I've just confirmed the download file is working. there must have been something weird going on with the host earlier good luck :)
rm2kdev mee (ow) too, i can't download it right now.
could either of you please do a test and try download one of the other files avaliable on my site? please let me know if they work i dont know where the problem is on the server :) its all working for me it might be a permissions error :o
rm2kdev i`ve checkt internet Explorer and Google Chrome. can still dont download anything on you,re site they just saying ("
403. That’s an error.
We're sorry, but you do not have access to this page. That’s all we know.")
Thanks Yogy it sounds like theres some serious issues going on at my host! im going to give them a call tomorrow :)
But this isn't usable for 3D maps u.u
Ah no I don't have the time to watch or attempt this! nooo :0
Bookmark it for later :P
A.D.D. Lol you jump around soooo much.
NO
NO
ONLY WORK ON SURVIVAL ISLAND!