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

Pages: [1]
1
Support / OnBecameInvisible() not working [Solved]
« on: May 12, 2013, 12:53:37 am »
I've got a scene set up using TK2DCamera with an ortho size of 512.  I have a sprite thats 1280x3000 that scrolls off the screen by incrimenting its transform.position.y.  For some reason when the sprite is fully off the screen OnBecameInvisible is never triggered. The code for it is below, it never gets called.

Code: [Select]
void OnBecameInvisible()
    {
        Debug.Log("it got herre");
        enabled = false;
       
    }


Any Ideas?

2
Using:

Unity 4x Unity 2D Toolkit from the asset store

My goal is to get a very basic platformer style movement controller set up, but I'm having a very hard time making things not 'floaty.'
Is there a better way to have movement which still responds to collision detection other than using AddForce() on rigid bodies?
Anyone have any tutorials or example projects on the subject?

Thank you

Pages: [1]