Capture Rotation Of An Object And Put Value Into A Variable

Discussion in 'How Can I...?' started by billcephus, Jun 1, 2020.

  1. billcephus

    billcephus Boxer

    Joined:
    May 31, 2020
    Messages:
    4
    Likes Received:
    0
    Hello, just downloaded buildbox, watched some tutorials and youtube videos, and still mostly lost. I am coming from a coding background and find myself not thinking in a way to use the functionality available to me here. So, I just wanted to check and see if this was possible and how easy it might be. Also, if there are tutorials available for this or part of this scenario, please point me in that direction as well ...

    1) I want to make two variables, "target" and "difference".
    2) The game is 3d world, but I want to make a 2d object shape on the game UI and have it rotate
    3) When I tap screen I want to capture the objects rotation degrees at the time of the tap
    4) Then compare against "target" value and store difference in the "difference" variable.

    Thanks for any help and advice!
     
  2. Josh (Nology Games)

    Josh (Nology Games) Avid Boxer

    Joined:
    Nov 27, 2017
    Messages:
    200
    Likes Received:
    155
    while this has not been done in Buildbox yet as I am aware, I do believe it is possible. you will need to play around with the nodes and event observers but I definitely believe you could do this.
     

Share This Page