Search Unity

Colliders Doesn't work on scalable sprite

Discussion in '2D' started by marcs2323, Feb 3, 2016.

  1. marcs2323

    marcs2323

    Joined:
    Feb 3, 2016
    Posts:
    3
    Hello,
    I'm new here! So, I'm creating my game, which has no gravity effects. There is two boxes, a player and an enemy. The enemy's size is fixed, but the player's isn't; in fact, when I press "a", the box scales up and when I release the key, the box scales down. I've attached rigidbodies2d and colliders2d, but when these two collides, the event doesn't work. It means when the player scales up and arrives to the enemy, nothing is happening. I want that these two colliders interact, but how?
    Thank You
     
    Last edited: Feb 3, 2016
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    theANMATOR2b likes this.
  3. marcs2323

    marcs2323

    Joined:
    Feb 3, 2016
    Posts:
    3
    thanks :) found the problem
     
  4. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    So what was it?