- Home /
How to control an character that has sprites?
Just wondering how i´m suposed to do this exactly if someone were to show some example code and explain that would be a very appreciated
By control i mean movement trough an 2d platformer game. Using 2d-spritesheets only on an empty gameobject. How is the primary mindset of creating an sort spritemanager in unity 3.4
what do you mean 'control'? Control what aspect?
what do you mean 'character? A 3d-model? A GO with a FirstPersonController attached...?
what do you mean 'has'? Parented to? That is a sprite itself...?
what do you mean 'sprites'? How many are we talking here? What are they?
if you were to make some examples of what you are trying to do and explain that would be a very appreciated... or 'the least effort you could show when asking other people to do work for you'...
pre-emptive-note: Do NOT post an answer to my comment as an answer to your question but either edit your question or 'add a comment'.
Greetz, $$anonymous$$y.
Answer by POLYGAMe · Sep 12, 2011 at 12:26 PM
You'd need to map the sprites to a plane or a cube, not an empty gameobject, or it won't draw. Look around the site and the Unity forums, there's a link for animated textures somewhere... this is a BIG question, which can't be answered simply as there is so much to it... controls, texture mapping, animation, collisions, axis restraints... I suggest doing the 2D platformer tutorial for controls etc and swap out the 3D models for simple planes with textured "sprites". I'm working on a couple of 2D projects myself, certainly pretty tricky at times in Unity but VERY possible :)
Hmm true true but thanks for the help anyways ill keep searching and if u need any help in any future 2d projects a I would be happy to help you in since im doing an 2d project in school over a year and would really like to learn as much as possible. Please contact me if need any help :) /mickey93@live.se