Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to simulate the movement of Risky Rescue (SOLVED)

Discussion in '2D' started by xhidnoda, Jul 1, 2015.

  1. xhidnoda

    xhidnoda

    Joined:
    Nov 6, 2012
    Posts:
    23
  2. 1Piotrek1

    1Piotrek1

    Joined:
    Mar 14, 2014
    Posts:
    130
    Make 2 invisible buttons invoking that function in your helicopter :
    Code (CSharp):
    1.  void Move (int dir) {
    2.   rigidbody2d.AddForce (dir,1);
    3. }
     
  3. xhidnoda

    xhidnoda

    Joined:
    Nov 6, 2012
    Posts:
    23
    Really? that is simple...i will try this!
    let you know.

    Thanks!
     
  4. BusyCat

    BusyCat

    Joined:
    Jan 9, 2015
    Posts:
    37
    Thread should probably be re-titled, 'How do I clone Risky Rescue?'.
     
  5. xhidnoda

    xhidnoda

    Joined:
    Nov 6, 2012
    Posts:
    23
    haha maybe, but is not my intention :cool:
     
  6. xhidnoda

    xhidnoda

    Joined:
    Nov 6, 2012
    Posts:
    23
    @1Piotrek1 you code works just fine!

    SOLVED!
    Thanks!
     
  7. 1Piotrek1

    1Piotrek1

    Joined:
    Mar 14, 2014
    Posts:
    130
    Wow, I'm surprised that it works.
     
    theANMATOR2b likes this.