Hi, Im Brian. Ive been looking and scouring the net for a good tut on how to build a super mario clone.
Im not new to Unity. Ive taken like 3 or 4 tuts ive found but alot of them are incomplete or you get to a certain
step and it doesn’t really explain it that well ( I can think of two off the bat that are actually decent tutorials,
But then it gets to the Animator and its super confusing and the tutorial doesn’t really specify what todo it just says go here and do this and you go there and its not there. Like lets say your in the animator and you get to here
(I will include the tut im talking about so your not lost)
" You see animations names not sprites here. Click MarioStand(or whatever you gave name for your stand animation) and Set as Default. You can create transitions between animations by right clicking on them. Right click on stand animation, click on Make Transition and click on walk animation. These two animations has a connection between them. Connect these four situations like in picture above. This map says “At start, MarioStand animation will be played. You can call MarioWalk animation while current animation is MarioStand. At any state, you can call MarioJump animation”. We need two parameters to call these animations automatically. Add Speed parameter as float and add isTouched parameter as bool."
So you can see how this can be confusing to someone whos never used the animator before.
Anyway if you know of a decent one please let me know.
Hi Brian, I’m owner of coffeebreakcodes.com. This post belongs to me and I’m so disappointed in your problem:p. First of all, sorry for bad English in this post:)
Let’s see what’s your problem (A little advice, it can be a bit complicated for a newbie, please start with an easier tutorial. There is an easier animation tutorial here). You have a problem with animating sprites. Please follow these steps:
1-Download a mario spritesheet(you can fine one on google)
2-Open sprite editor.
3-Click “slice” to make them separate images.
4-Give them unique names and save it.
5-As numbered on picture, take the walking style images and drag them(#2,#3,#4 don’t try to drag the visual things, you must drag the files under sprite file which are named uniquely by you) into the scene.
6-A small window will appear to save these images as an animation. Give a name and save it.
7-Now, press play and test it. There must be a walking animation.
8-Open animation window and create a new clip. (If you drag one image to scene, that image will be an object. Mario_Jump and Mario_Stand have only one image. So, we add these animations manually.)
9-Drag jump image into it and change “Samples” value to 1.
10-Create another clip and do #9 for stand image.
11-Open animator window.
12-Click “stand” style animation and make it default.
13-Now we need transactions between animations. Create a transaction from “stand” style animation to “walk” style animation.(right click on stand, select “make transaction”).
14-Now you know how to make transactions between animations. Please create related transactions as seen on picture.
Is it clear now?
Look for gamesplusjames on YouTube. He has an awesome tutorial series about all the basics you need for 2D Platformer. I started a few days ago and I think he explains the things very well.