Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - abe

Pages: [1]
1
DOTween & DOTween Pro / Re: Use speed instead of duration.
« on: August 25, 2015, 10:42:45 PM »
Well actually we can stop tweener right after doPath method and then divide path length to speed that we want and then get duration we need to setup path. Is it possible to change duration during execution or , in this case we need to call DoPath 2 times?

2
DOTween & DOTween Pro / Re: Virtual Float
« on: August 25, 2015, 06:25:28 PM »
Did you debug? Try to use parameters instead of variables

3
DOTween & DOTween Pro / Use speed instead of duration.
« on: August 25, 2015, 11:53:36 AM »
Hello. Is it possible to use speed instead of duration in Dopath method?

4
DOTween & DOTween Pro / Re: Orientation "To path" and DoPath method
« on: August 24, 2015, 07:04:05 PM »
I understand why sprite dissapears - for some reason when i enable setLookAt it start to rotate 2d sprite by x and y axis not only z. But when i added sprite to basic object i use to build path. It stops to do this. Mb it will be helpfull for somebody.

5
DOTween & DOTween Pro / Re: Orientation "To path" and DoPath method
« on: August 24, 2015, 11:41:54 AM »
I got the issue in my project only. i cannot repeat it in another project. When we use "set look at"  at object with spriteRenderer - spriteRenderer does not display texture.

6
DOTween & DOTween Pro / Re: Orientation "To path" and DoPath method
« on: August 23, 2015, 12:15:10 PM »
Thank you! it works for me. but for some reason it disable sprite renderer and i do not see object texture. I use 2d game mode.

7
DOTween & DOTween Pro / Re: Orientation "To path" and DoPath method
« on: August 22, 2015, 09:48:20 PM »
I did this but nothing work. What is the parameters should be in SetLookAt method?

8
DOTween & DOTween Pro / Orientation "To path" and DoPath method
« on: August 22, 2015, 04:32:27 PM »
Hello. Is it possible to use orientation to path and DoPath Method?

9
DOTween & DOTween Pro / Re: Move object towards the path to position.
« on: August 05, 2015, 01:23:24 PM »
Hello. Thank you for the answer. But here is no way to move forward or backward for x units?

10
DOTween & DOTween Pro / Add Dotween path programmatically
« on: July 30, 2015, 08:03:55 PM »
Hello i tried to add DOTweenPath component programmatically but it does not work . Here is my code
var oldPath = GetComponent<DOTweenPath> ();

      var newPath = (DOTweenPath)newObject.AddComponent <DOTweenPath>();

      //tween options
      newPath.autoKill = oldPath.autoKill;
      newPath.autoPlay = oldPath.autoPlay;
      newPath.duration = oldPath.duration;
      newPath.delay = oldPath.delay;
      newPath.easeType = oldPath.easeType;
      newPath.easeCurve = oldPath.easeCurve;
      newPath.loops = oldPath.loops;
      newPath.loopType = oldPath.loopType;

      //path options
      newPath.pathType = oldPath.pathType;
      newPath.pathResolution = oldPath.pathResolution;
      newPath.isLocal = oldPath.isLocal;
      newPath.isClosedPath = oldPath.isClosedPath;
      newPath.orientType = oldPath.orientType;
      newPath.lookAhead = oldPath.lookAhead;

      //waypointes
      newPath.fullWps = oldPath.fullWps;
      newPath.wps = oldPath.wps;
      newPath.wpsDropdown = oldPath.wpsDropdown;



      newPath.DOPlay (); //nothing happens
      oldPath.DOPlay (); // it works

11
DOTween & DOTween Pro / Move object towards the path to position.
« on: July 29, 2015, 06:17:45 PM »
Hello. How to do next steps using DoTweenPro
1)Add gameobject .
2)Add DoTweenPath component to it.
3)Start the tween.
4)Stop the tween on event (click for example).
5)Move gameObject to Position on the path.
6)Move gameObject forward\backward x points towards the path.
7)Start the tween again.

I have no idea how to do item 5 and 6. Thank You for help.

Pages: [1]