playMaker

Author Topic: Slide in/out menu with touch[SOLVED]  (Read 2301 times)

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Slide in/out menu with touch[SOLVED]
« on: October 31, 2016, 01:36:58 PM »
Hi there

How could I achieve this kind of menu slide in/out from left or right edge of the screen??

a demo or an idea would be nice :P



Thanks for any advice
« Last Edit: November 08, 2016, 03:28:15 AM by jeanfabre »

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Re: Slide in/out menu with touch
« Reply #1 on: November 01, 2016, 12:17:00 PM »
I have managed to clamp the position from hidden to being revealed. Now I need it to be draggable by the user. Any ideas on how to drag or swipe+drag a ugui object?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Slide in/out menu with touch
« Reply #2 on: November 02, 2016, 05:04:52 AM »
Hi,

 Check out the Ecosystem, it has Drag samples.



But I'll see if I can find the time next week to wrap a new sample to do that. I wanted to also do table cells swiping to reveal menus and buttons like delete and read inside mail for example.

Bye,

 Jean

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Re: Slide in/out menu with touch
« Reply #3 on: November 02, 2016, 08:24:00 AM »
Okay I got the dragging working thanks, but the clamp was for float value, and now this value is vector2, I can't seem to find a vector2 clamp action


nevermind, All completed and it's working, thanks :)
« Last Edit: November 02, 2016, 11:38:49 AM by elusiven »