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.


Messages - corlenbelspar

Pages: [1]
1
Support / Re: Unintentional Tiled Sprite Padding?
« on: May 21, 2015, 10:28:10 pm »
Will do, hope it helps, give me a few minutes.
Here's the post I made for you.
http://2dtoolkit.com/forum/index.php/topic,5031.0.html

2
Support / Re: Unintentional Tiled Sprite Padding?
« on: May 20, 2015, 06:45:13 pm »
I would think this but I made the texture myself, there's only padding on the bottom of it and not the top.

EDIT: I got rid of it by just getting rid of the padding on the bottom but in the future this may pose a more significant problem, so I'd still like you know how to get rid of it in the tiled sprite itself.

3
Support / Unintentional Tiled Sprite Padding?
« on: May 20, 2015, 11:28:38 am »
In the attached screenshot the tiled sprite of hearts has a 1 pixel padding at the top of it.  I can't for the life of me figure out how to get rid of that.  Anyone know how to fix this?  I've had this issue before and the padding seems to be random depending on the sprite size but I never had to work around it until now.

4
Support / Re: Manual Collision Detection?
« on: May 07, 2015, 04:43:13 am »
Oh OK thanks.  Good for future reference I s'pose. :p

5
Support / Color Swapping and Editor Grid Snapping
« on: May 07, 2015, 01:40:37 am »
Hi I have one more question that I can't figure out an answer to after exhaustive searching and trying different things.  That should be all I have to bug you guys with for a while.   :P

1. How do I get a specific color from a sprite and change it to another specific color?
2. How do I make sprites snap to the grid in the Unity editor so like enemies will be standing on the ground when they are created and such?

Much appreciated for your answers in advance.

6
Support / Re: Manual Collision Detection?
« on: May 06, 2015, 01:39:25 am »
Never mind, I got this solved using Raycasting and colliders which I wanted the sprites' collision detection for other sprites and tiles to be the same anyway.

7
Support / Re: Manual Collision Detection?
« on: May 05, 2015, 03:47:01 am »
I have the following code below, but Unity keeps producing this error as the game runs, every frame:
Code: [Select]
NullReferenceException: Object reference not set to an instance of an object
GeneralPhysics.Update () (at Assets/Scripts/Managers/GeneralPhysics.cs:11)

Here is my code:

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

public class GeneralPhysics : MonoBehaviour {
private tk2dTileMap tileMap;
private int tileId;

void Update()
{
Vector3 testLocation = new Vector3(transform.position.x,transform.position.y,0f);
tileId = tileMap.GetTileIdAtPosition(testLocation,9);
}
}

How do I get it to stop making this error?  Sorry if it's a noob question, I'm still learning C#.

8
Support / Re: Manual Collision Detection?
« on: May 04, 2015, 05:35:38 am »
Thanks for the prompt reply!  I let the guy know who is teaching me how to program properly, for future reference.

9
Support / Manual Collision Detection?
« on: May 03, 2015, 09:37:19 am »
I'm not using physics because we're trying to make a classic 2D NES stylized platformer.  How do I go about checking collisions with tilemaps in the scripting?

Pages: [1]