Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Mikael1987

Pages: [1]
1
Support / How can I change the sprite ID?
« on: August 11, 2013, 12:32:50 pm »
Im creating a sprite collection with 12 different images numbered 1 to 12,when i created whe collection the first 1 is ID'ed 1,the second 2 but the third is 0,not quite sure why this is happening,At first i thought it had to do with the ASCII code,but sprite "10" is ID'ed as 10. Is there a way so I can manually set up the id of each sprite?. Thanks in advanced.

2
Support / Static/Animated Sprites together?
« on: July 22, 2013, 11:48:22 am »
I'm not able to test this right now because I'm not home,so just thinking if it's possible:
I'm trying to make some kind of "inventory" in which when You first open it,the sprites are not animated,and when you hover over them,the animation starts,Is it possible to have
a "mixed" sprite that is both static and animated?,I mean I know I could just use animated sprites and set an animation to only 1 frame/image to be the static one and have it as default,and then on hover play the animation. Maybe I should just do this instead? Im just worried about performance.On the other hand I wont be having hundreds of these,maybe 20-30 tops. Thanks in advanced.

3
Support / How to access animations/sprites through code?
« on: June 30, 2013, 10:50:44 pm »
I'm trying to build a dictionary for a small database of items I need in my game,the idea is the following:

Code: [Select]
using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class ItemClass : MonoBehaviour {

public string name;
public string description;
public int id;
public int uses;
public tk2dSpriteAnimator animations;
public tk2dSprite sprite;

public ItemClass(string name,string description,int id,int uses,tk2dSpriteAnimator animations,tk2dSprite sprite)
{

this.name = name;
this.description = description;
this.id = id;
this.uses = uses;
this.animations =animations;
                this.sprite = sprite;

}
}

public class ItemsDatabase : MonoBehaviour {

public Dictionary <string,ItemClass> dictionary = new Dictionary <string, ItemClass>();

public ItemClass carraca = new ItemClass("Carraca de la Folga","Brilla como un dia festivo",0,1,null,null);
public ItemClass silbato = new ItemClass("Silbato Noctámbula del Cónclave","Un Silbato para unirlos a todos en El Pálpito",0,2,null,null);

void start ()
{
dictionary.Add(carraca.name,carraca);
dictionary.Add(silbato.name,silbato);
}

}


I want to be able to have a 2dtksprite for display on the inventory and a tk2dSpriteAnimator for when I hover start an animation, my question is how can i reference the individual sprites/animations for my ItemClass to accomplish this?,thanks in advanced.

4
Support / How to set up 2dtk Camera
« on: June 23, 2013, 04:45:13 pm »
I've been messing with the settings for the past 2 hours and I just can't figure it out.
I have all my sprites collections set to use "2dtkcamera".
What Im basically trying to accomplish is to have a 480x320(pixel view on the camera) no matter the resolution(scalling up for higher resolutions). Any insight? I've tried setting the 2dtkCamera resolution to 480x320 and also in the build settings(when i build and run) to the same values.
thanks in advanced.

5
Support / Best way to export/import?
« on: June 22, 2013, 12:22:56 pm »
So basically what is the best way to do this? My one of the artists of my team is taking care of the maps and its elements,he has a project set up with a scene that has different prefabs he made set up to compose said scene,now I need to import that to the "whole" proyect,whats the best way to do this?,I tried copying all the assets folder but everything came out without textures,I also tried to put all the scene elements into a game object and then make this a prefab,that did not work either.thanks in advanced.

6
Support / All textures dissappear after upgrading to 2.0[SOLVED]
« on: June 20, 2013, 08:54:17 pm »
Before:


Uploaded with ImageShack.us
After:


Uploaded with ImageShack.us

So whats happening? :(,the only errors or warning I get in the console are about the flip.x and flip.y functions.

EDIT: I did the integrity checker(success) and followed all the steps(new scene,umcompress,restart etc)

Pages: [1]