so trying to make this as simple as I possibly can (which is next to impossible)
so in the unity editor using the 2d platformer learning thing im trying to switch the player sprites with many sprite lists from https://aamatniekss.itch.io/fantasy-knight-free-pixelart-animated-character for the images I'm trying to make the images into a new sprite animation
I hope I made this straight forward enough.
Use this BRACKEYS TUTORIAL
You need to make sprite sheets or create the animations in the Unity animation system and then trigger them by code or state machine.
https://www.youtube.com/watch?v=87cF8jqVpBA
i found it myself so anyone who needs to know here you go
make sure the sprite isnt in single but multiple.
Related
So, i've been trying to make a videogame on unity, and i made my first sprite on piskel. Exported it as PNG but can't seem to make it work on Unity. I imported it as a new sprite and even selected sprite (2D and user UI) on the menu.I selected 2D sprite but it doesn't work. It's just like if I put an image there, and not a sprite.It stays still I even tried using another sprite format More rows
I can't find anyone else with the same problem out there on the internet, so help would be much appreciated. Thank you.
Selecting 2D sprite isn't the full story. You will also need to make the sprite "multiple" instead of "single" and split it up in the editor (now available in the package manager).
That will split it up into frames for you, then you drag and drop a single frame.
https://docs.unity3d.com/Manual/SpriteEditor.html
I know I can use sprite packer to pack sprites so that there will be only one drawCall. If I slice a sprite sheet into multiple sprites, will it have the same effect? I experimented on my own, but there is no batching saved and I am afraid I did something wrong?
I used UI Image. And I used same material on them to hope batch them.
You may open the Frame Debugger to inspect whether your sprites are batched.
See also DrawCallBatching for more details on when and how draw-calls will be batched.
In general I wanted to make it in unity3d but I saw that in tutorials, they made it in blender.
This is what I did in unity:
I want to make this high cube hollow on the inside, and make a small door so that I will be able to walk inside the cube. Later on, I want to somehow add stairs but the problem now is how to make it hollow on the inside.
I saw in some places the suggestion to use blender so I tried this tutorial in blender:
Blender
But got stuck there after I checked the Add Mesh Extra Objects and clicked on Save User Settings. I tried then to click on the bottom on Add > Mesh but then I don't have Extra Objects. I have Extras objects like in the tutorial video.
Anyone my main goal is to make the high cube hollow on the inside with a small door on the bottom so I will be able to walk inside.
From what I know Unity3D has no 3DModelling by default (maybe there is something for that in store), so you need to use Blender or some other program (for example Maya). There is https://blender.stackexchange.com/ where you can ask same question (since it is not really unity3d related)
Maybe this will be helpful : https://blender.stackexchange.com/questions/5849/how-do-i-create-a-solid-object-cube
Overall what you could do, but it is not the est way - you can build a everything out of boxes yourself in Unity3D
Try use to boolean modifier. Take a look this tutorial:
Blender 2.6 Tutorial 26 - Boolean Modifier
My title might have actually been a bit misworded, as to be honest I'm not sure how to word it, but basically I'm making a game on Unity and I have my main scene and I am making a main menu however what I want to do is have a, I guess, camera slowly panning around the main scene as the background of the main menu. Not sure if I worded that right or what wording to actually type into Google to research it so I'm hoping you guys might be able to point me in the right direction.
Cheers guys,
Jason
As stromdotcom mentioned you can attach a script to the camera.
It's hard to tell what you're trying to do but if you want to circle the camera around a point...
Try making an empty game object in the middle of your scene and point the camera at it.
Make the object the parent of the camera (using the object and cameras transform properties).
From here you should be able to set the game object to rotate using a script, which should make the camera spin as it is a child of the object.
I have not tried this in Unity but I have used this technique in other programs so I'm assuming it will work. Sorry if it doesn't.
If your scene is already set up then you can attach a script to your camera which simply modifies the camera's transform to move it around the room. You can move and rotate the camera just like any other transform in your scene.
Im pretty sure what you are looking for is "Animation view". Unity has a tutorial on it: https://unity3d.com/learn/tutorials/topics/animation/animation-view?playlist=17099
I am new to cocos2d animations and I want to learn it , as always I stops at the point of animation while making iPhone games in cocos2d.
Can any one suggest me the way to learn such animations, so that games animation creating will become easy to make.
Thanks.
Seems like there are 2 ways to go - either your sprites are laid out in a regular fashion and so can be picked off the sprite sheet in a programmatic way, like this first example. The other way is to use a tool like Zwoptex to create the sprite sheet and a corresponding plist that tells Cocos2d where to find the images on the sheet, see second example.
Tutorial for getting sprites off a sheet, using a regular layout:
http://getsetgames.com/2010/04/18/how-to-animate-sprites-in-cocos2d/
The basics are:
Get your images into one large image/texture
Create a CCSpriteSheet using that texture
Create a CCSprite using one of the images in your sprite sheet
Create a CCAnimation and populate it with CCSpriteFrame's - each representing a frame in the animation
Create a CCAnimate action to manage showing each frame and run it on sprite, voila.
The alternative is to use a tool like Zwoptex to configure your images on a sheet which will export the sprite sheet and a plist of details of the images on it.
The first third of this tutorial explains it:
http://www.raywenderlich.com/606/how-to-use-box2d-for-just-collision-detection-with-cocos2d-iphone
Hope that helps,
Chris
There are several cocos2d tutorials avaliable around the net. Also take a look at their docs. Another good resource can be github.com where you'll find at least couple of opensource games made in cocos2d
There are Mainly 2 tools I use for the animation of the images they are:
Texture Packer
Zwoptex
These 2 tools are great to work with it. The Texture Packer has also the integrated the Physics Editor which can be used to integrate the physics in the game. You can get the tutorial of both these animations from Ray Wenderlich Demos.
This course helps you to build a game with Cocos2D, however it costs 99$. But animations are covered in the course, so you might look into that direction as well:
Click here