Making Spider-Man in Unity 2D
23/09/2018
Let's create Spider-Man in Unity 2D
Comments
If you have any questions please post them in the comments and I'll do my best to answer them
🌐 Have you found the videos Helpful and Valuable?
❤️ Support on Patreon https://www.patreon.com/unitycodemonkey or get the Game Bundle https://unitycodemonkey.com/gamebundle.php
❤️ Support on Patreon https://www.patreon.com/unitycodemonkey or get the Game Bundle https://unitycodemonkey.com/gamebundle.php
any tutorials on how you created your sprites?
Code Monkey
I draw them in Photoshop, nothing special in terms of technique, I just use the normal brush, not much of an artist.
sir can you please make some tutorials on animation , how to animate for kick punch and combo effects.
please sir make some tutorial on this. It will be very helpful for our community.
please sir make some tutorial on this. It will be very helpful for our community.
Great content but the source code seems to be broken on Unity versions newer than 2018.01
Code Monkey
Broken how?
adamodimattia
@Code Monkey It's the problem that I've had also in the package for CameraFollow series of yours. It seems that at the origin is failed instantiation of unitSkeleton = new V_UnitSkeleton () (line 31 and 44 in CharacterSwordHandler) so it throws FormatException: Input string was not in a correct format. It may be only on my machine since I'm using a Mac. It is followed by other errors but that one is at the origin I think. FormatException: Input string was not in a correct format.
System.Number.ParseSingle (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Single.Parse (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Single.Parse (System.String s) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Number.ParseSingle (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Single.Parse (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Single.Parse (System.String s) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
Code Monkey
Open V_Animation.cs and in Init(); add these lines
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");
That's caused because of regionalization, some countries represent decimals with "." others with ","
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");
That's caused because of regionalization, some countries represent decimals with "." others with ","
adamodimattia
@Code Monkey Thank you so much, I will see to that!
When i add the pfimpactEffect and run the game it says that "the variable pfImpactEffect has nit been assugned" and doeant do the effects helo please
Code Monkey
You need to drag the reference of the prefab onto the field in the editor.
Orange Gaming
@Code Monkey thank you so much and if you can please answer my question in the second video it would be great thanks for your time
Can you please help me when i click play game the character doesnt load i only see his hands but the screen i cant make up what it is its in all colours can you help me make the character.
Code Monkey
Open up the V_Animation.cs file and add these lines to the beginning of the Init(); function
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");
Orange Gaming
Ill try it now thank you for helping
Orange Gaming
@Code Monkey i'll try it now thank you for helping
Orange Gaming
@Code Monkey should i put the v animation file on the in the body(game object) or should it remain where i found it
I want those sprite sheet plz give me
Code Monkey
You can download the project files for any of the videos from the website.
One question why when I open the project all the scene is black? and then when I played it the background is all black? is like everything is not there. Just the spiderman appear and do the movements.
Code Monkey
It's black since I cannot distribute the background texture because I didn't make it, you can grab a bunch of free background textures from the asset store.
And the animation system only runs when the game is running so the character doesn't show in the editor, only in game.
And the animation system only runs when the game is running so the character doesn't show in the editor, only in game.
I can't open the project. What can I do?
Code Monkey
Why can't you open? Do you get some error message? What version of Unity do you have?
Glorfindel Iron Foot
@Code Monkey Unity 2017.4.21f1 and the project don´t show the scene.
Code Monkey
This was built in Unity 2018 so that might be the reason, download the latest 2018 version and try again.
Hi!, please review Project Files. The scenes are totally broken when they are loaded into 2018.3 . It's a pitty, because it would be fine to have the scenes working (mainly GameScene_Base, so we could repeat what you are explaining)
() =>
What is this?
What is this?
Code Monkey
That's the short hand for creating a delegate function
() => { Debug.Log("Test"); }
Is the same as
private void MyFunction() {
Debug.Log("Test");
}
Look up C# Lambda expressions.
() => { Debug.Log("Test"); }
Is the same as
private void MyFunction() {
Debug.Log("Test");
}
Look up C# Lambda expressions.
Why u sound like blue panda?
I have the folder downloaded etc, but Im unsure on how to setup the character properly to have the character + animations ready like in the start of the video
I can't sign up an account on your website to download project file. Because form sign up has not submit button. Please help me to make an account , mail email is tuuvv.uit@gmail.com
Code Monkey
Is your resolution too small to see the button? Try zooming out with Ctrl + Minus.
Hey can u please make a video how did u make spiderman character and apply it on unity and c++ I dont understand that man :(
Code Monkey
The spritesheet was drawn in Photoshop and animated using my animation system which composes several quads into one mesh.
Unity uses C# not C++ so not sure what you mean by that.
Cheers!
Unity uses C# not C++ so not sure what you mean by that.
Cheers!
Is there a video showing what everything in the Spiderman_Base script does and how you made it?
Code Monkey
The only thing the base class does is play the animations.
I haven't done a full in-depth video on my animation system but it is based on creating and modifying meshes in run-time and I've made a few videos on that:
https://www.youtube.com/watch?v=gmuHI_wsOgI
https://www.youtube.com/watch?v=FGL6SffDeVU
I haven't done a full in-depth video on my animation system but it is based on creating and modifying meshes in run-time and I've made a few videos on that:
https://www.youtube.com/watch?v=gmuHI_wsOgI
https://www.youtube.com/watch?v=FGL6SffDeVU
wow ! cool!
I want you to make spiderman not feeling so good
Could you try to do your 2D creations in 3D?
Code Monkey
Most of the code in my videos works on both 2D and 3D so if you're working in 3D everything will work fine.
Did you make the animations yourself in adobe animate or what?
Code Monkey
The sprite is drawn in a spritesheet with the body parts separated and then animated using my own custom animation system which generates a single mesh with various quads for each body part.
https://www.youtube.com/user/bucatarmaniac/videos
https://www.youtube.com/user/bucatarmaniac/videos
0 comentarii:
Trimiteți un comentariu