Search Unity

Can I Fix This ??

Discussion in 'Scripting' started by Mukul Negi, Apr 14, 2015.

  1. Mukul Negi

    Mukul Negi

    Joined:
    Jan 9, 2015
    Posts:
    7
  2. RiokuTheSlayer

    RiokuTheSlayer

    Joined:
    Aug 22, 2013
    Posts:
    356
    Double-post?
     
  3. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    No, tripple post!
     
  4. Mukul Negi

    Mukul Negi

    Joined:
    Jan 9, 2015
    Posts:
    7
    sorry i was posting this first time..
     
  5. Mukul Negi

    Mukul Negi

    Joined:
    Jan 9, 2015
    Posts:
    7
    Sorry But Please Help Me..
     
  6. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    I guess you are trying to avoid to movement into the other objects. It doesn't look like the jump is made using physics and as such no collision detection takes place.
    Before the movement takes place, you need to check whether you can move to the target position. That means, you need that information somewhere. I assume you have a tiled structure. You may have something like a TileManager that gets informed by each object where it is. Like that you can have some logic in your TileManager that calculates which tiles are free and as such to which tiles you can move.
     
  7. Mukul Negi

    Mukul Negi

    Joined:
    Jan 9, 2015
    Posts:
    7
    That Jump Is from Animation And The Movement Is From A Script I Can Show You That Script To You If You Want ...
     
  8. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    Just to make it clear, I won't code that for you. I can help you, but I will not implement it.
     
  9. Mukul Negi

    Mukul Negi

    Joined:
    Jan 9, 2015
    Posts:
    7
    Okay.. no problem..