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

Pages: [1]
1
Support / Re: Whack a Mole Tutorial - Moles not being whacked
« on: July 29, 2013, 01:34:39 am »
Thanks.

The new version fixed my camera.

The issue with my moles not being whacked were due to me not having the Box Collider checked off.

It is hard to compare the completed project to the project I'm working on as unity will only allow one instance to run at a time.
I discovered the unchecked box collider just by looking through everything I thought could be causing the issue.

2
Support / Whack a Mole Tutorial - Moles not being whacked
« on: July 28, 2013, 04:04:42 pm »
Hello,

I'm new to unity and 2d toolkit.

I'm working through the Whack a Mole Tutorial.

Everything seems to be fine except when I click on the moles nothing happens.

I've added some debug statements
Code: [Select]
void Update()
{
// Check to see if mouse has been clicked, and if so check to see if it has 'hit' any of the moles, and check which mole.
//if(Input.GetMouseButtonDown(0))
if(Input.GetButtonDown("Fire1"))
{
Debug.Log("Pressed left click.");

Ray ray = gameCam.ScreenPointToRay(Input.mousePosition);
RaycastHit hit = new RaycastHit();

if(Physics.Raycast(ray, out hit))
{
Debug.Log("Inside If Physics.Raycast.")
..........
........
.....

I am seeing the debug statement for the mouse click but not the Physics.Raycast

I notice the main camera looks a little bit odd. The camera bounds do not seem to line up. However the "tk2d camera preview" looks good and the "camera preview" looks to only be seeing what the white camera bounds are seeing. 
My Scene looks like this:

3
Thank you very much that was it.

I needed to open and use the editor when in the project window and not drag it into the hierarchy window.

I will be sure to check out the whack a mole tutorial as well.

4
Support / Sprite Collection Does not Show up in Collection Drop Down
« on: July 23, 2013, 02:00:17 am »
Hi,

I'm new to unity and 2d Toolkit.

I can't get my sprite collection to show up under the sprite collection drop down in the sprite animation editor.



Here are the steps I take:
Create a New Unity Project
Create a folder under assets to hold the sprites.
Copy sprites to folder.

Goes to Windows -> Asset Store.
Click on download Icon and click on import 2d Toolkit Import.

Right click on “Assets” folder and click create -> tk2d -> spritecollection.

I notice something odd here. The SpriteCollection does not show up in the Project tab but does show up under assets.



I drag my sprite collection to the “Hierarchy”
I open the editor and drag my sprite images into the editor.
I click “Commit” and close the window

Right click on “Assets” folder and click create -> tk2d -> spriteanimation.

Again I see no sprite animation in the project folder but it is in the Assets folder in the middle pane.

Drag the “sprite animation” to the “Hierarchy”.
Clicked on the sprite animation in the Hierarchy and click on the editor.
Clicked create -> clip.

I click on the Collection Drop down and it does not contain my sprite collection.


I tried clicking on 2D Toolkit -> rebuild index. That did not help.

When I go back to the sprite collection editor my sprites are in there.

Pages: [1]