Community Forums
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2012
    Posts
    14
    DT Subscriber

    Getting touch input for android

    i am making an android based game, and i will have graphics ( like stars or something ) across the screen. how do i get the input variable when the player collects these stars ?

    i was planning to attach them to the camera and display them at 2D textures and apply colliders to them. Then check for when the player touches the colliders. Would this be the right way ?

    Cheers

  2. #2

    Re: Getting touch input for android

    this has to do more with the Collider.OnTriggerEnter function this sends information soo in return you could do something with it ....an example(

    // Destroy everything that enters the trigger function
    OnTriggerEnter (other : Collider) {
    Destroy(other.gameObject);
    }
    )
    in turn you could make this code destroy the stars or whatever and send data to your camera to make them show up there hope this helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts