playMaker

Author Topic: Delta.Position & Time.Delta[SOLVED]  (Read 2461 times)

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 219
Delta.Position & Time.Delta[SOLVED]
« on: December 14, 2015, 11:15:45 AM »
I am creating a touch based game, where the player can move a game object with their finger if they touch anywhere and drag.  I need to link the players touch to the gameobjects movement regardless of where they touch on the screen.

I believe that its supposed to be done with Delta.Position and Time.Delta though, i cant seem to get anything to work correctly.  Any advice would be appreciated.
« Last Edit: May 16, 2016, 02:05:29 AM by jeanfabre »

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 219
Re: Delta.Position & Time.Delta
« Reply #1 on: December 16, 2015, 09:39:35 PM »
any help would be appreciated.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Delta.Position & Time.Delta
« Reply #2 on: March 29, 2016, 01:43:12 AM »
Hi,

 Just stumbled upon this topic.

With the new UI system, it's very easy. you can get it here:

https://hutonggames.fogbugz.com/?W1192

also, on the Ecosystem, you'll find two samples on dragging and dropping ( search for 'drag')

In your case, you'll have a UI element covering the whole screen and then you can catch dragging behavior everywhere and act accordingly ( the samples shows how to move things based on dragging data).

Bye,

 Jean

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 219
Re: Delta.Position & Time.Delta
« Reply #3 on: May 15, 2016, 11:18:21 PM »
This works great.  Wow, never noticed that UGUI drag was built in to UGUI.