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 - dotty

Pages: [1]
1
Support / Using Unity's sprite slicer to create sprites
« on: September 17, 2014, 09:37:06 pm »
Hello, as most of you know a lot of sprites online come on spritesheets. TK2D has a nice sprite slicer but only if the sprites are evenly spaced. They do have an "automatic" mode which perfectly slices the sprites and it works great. However, I can't use these sprites with tk2d.

Is there a way to use them at Unity has sliced them?

2
Hello, I'm having problems manning multiple animations. Here's some pseudo code.

if( move left button ){
  play move left animation
}

if( move right button ){
  play move right animation
}

if( punch button ){
  play punch animation
}

if( kick button ){
  play kick animation
}

if( no buttons pressed ){
  play idle animation
}

Generally if no buttons are pressed I want to play a looping idle animation. However, if move right and move left buttons are pressed I want to play a looping moving animation. However, if I press the punch button I want to play the punch animation.

However, the punch animation isn't interruptible. So I can only punch once. Also if I hold the move right button, the move right animation should play, but if I hit punch that should happen, then revert to the right move animation.

I've tried to program all of this, but there's a lot of ifs and else that it's getting extremely messy for something that should be quite simple.

How would you do this? Are there any common patterns to follow?

3
Hello, does anyone know how to loop through a tilemap to find out if a tile has a collider or not?

4
Contract Work / [paid] Tilemap pathfinding
« on: March 17, 2013, 03:53:53 pm »
Hello all.

I've been trying to implement pathfinding using 2dtk's tilemap system and I'm failing miserably. I've tried to write one myself (and failed) and I've tried to implement arongranberg 's aStar plugin (and failed). I'm getting frustrated, so if anyone would be interested in doing this for me, I'm sure we could come up with a fair price.

If you're interested, drop me a PM.

Just a couple of needs.

1) The package needs to scan through ALL layers and find collidable tiles.
2) Needs to be lightweight and quick
3) Needs to support quite large maps 512x512
4) Needs to support multiple tile sizes (32x32, 64x64, etc)
5) Only needs orth tiles (no need for iso tiles)
6) Ideally collision arrays need to be saved so they don't get created on runtime.

I think that's about it at the moment, again if you're interested drop me a PM.

5
Support / Has anyone used astar pathfinding with tile map?
« on: March 10, 2013, 03:59:02 pm »
I'm having trouble getting this working. The astar pathfinding unity plugin (http://www.arongranberg.com/astar/docs/index.php) the free version.

Has anyone used these together?

6
Support / tk2d camera questions
« on: July 15, 2012, 10:33:58 pm »
I'm confused by the tk2d camera. I'm reading the documentation over at http://www.unikronsoftware.com/2dtoolkit/doc/tutorial/tk2dCamera.html and it says the default camera size is 480x320.

I made 2 sprites from a 480x320 canvas and exported them as PNGs. These can be found at http://imgur.com/a/OfoHU

So, I added the camera (leaving the defaults as they are), and created 2 sprites from the 2 images (I set the atlas to use the tk2d camera).

I added the 2 sprites at the position 0,0 (lower left). However, the sprites appear off camera? Also they appear smaller? Why is this? I've done to know what I have done wrong.

Pages: [1]