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 - amit

Pages: [1]
General Discussion / Re: PlayMaker Chatroom
« on: May 18, 2016, 01:55:25 AM »
Haha, I created a slack channel today and was going to post it. But since you already made Discord I will join there.

Feature Requests / Re: chat channel
« on: February 16, 2016, 02:32:55 AM »
I don't think the platform is the issue, there simply doesn't seem to be that much interest in it. The Jabbr channel is has one-click accessibility and I'm there basically all day most of the time for support and questions.

I'll look into improving visibility on the front page of the forum so users are aware we have a chat channel.

For me it is this platform, in this case Jabbr. I don't really find it flexible or useful for communication.

I much prefer we start usig SLACK instead if people have issue with skype.

General Discussion / Re: Playmaker Skype Group
« on: August 04, 2015, 11:53:27 PM »
I think we should go back to skype. After moving to Jabbr the count went down to maybe 5 online. I think people find Jabbr more tedious, as you need to create and account and remember to log in, where as Skype you are often logged into for other reasons than playmaker help.

Playmaker Help / Re: Reverse animation in Mecanim?
« on: November 27, 2014, 03:23:52 AM »
Have you tried animator recording to go back and forth in the animator for longer frames?

Playmaker Help / Reverse Animation in Mecanic - Recording & Playback
« on: November 26, 2014, 03:12:27 AM »

I am trying to find out how to use playmaker and Mecanim actions to rewind a player movement. I was suggested that Mecanim did that well so I explored it and stumbled upon someone who made this video here:

He has a snippet of sample code that he used to do this, here:

Code: [Select]

    using UnityEngine;
    using System.Collections;
    public class PrinceOfUnity : MonoBehaviour {
            public float Speed = 1;
            private float reverseSpeedTarget = -1;
            private float reverseSpeedTime = 0.3f;
            private float reverseSpeedVelocity;
            protected Animator animator;
            void Start ()
                    animator = GetComponent<Animator>();
            // Update is called once per frame
            void Update ()
                    float axis = Input.GetAxis("LeftRightTrigger");
                    Speed = Mathf.SmoothDamp(Speed, axis > 0.1f ? reverseSpeedTarget : 1, ref reverseSpeedVelocity, reverseSpeedTime);
                    animator.speed = Speed;

Link if you prefer that:

My challenge is to replicate this using playmaker and so far I made Set Animator Speed work, but it only rewinds a few frames and then it becomes buggy in terms of movement afterwards and a few other things. Also, if you jump and rewind from a higher place, it doesn't work.

[EDIT] I fixed it some more by using Animator Start Recording - Get Mouse Button Down - Set Animator Speed - Get Mouse Buttown Down - Set Animator Speed. However it isn't good enough because when I go back and forth the animation stops in mid air because that is where I started the recording again, so maybe there is a way to store the recordings everytime in an array for my tutorial example? So if I ran around for 3000 frames (which is the limit) it will always playback 3000 frames regardless of the recording stop and play time?

Could someone who knows C# explain this code by breaking it apart and logically help by referring to what could be the Playmaker action and Animator tools that is needed to pull this off? I want to be able to store recording of the last 3000 (whatever the limit is) seperate from the last time you activated "rewind". So one button will let you go back and forth between one recording when you click left and right mouse button. But if you wanted to go all the way back somewhere you could click middle button, which would then include your crazy back and forth left/right mouse button too. But right now it stops in midair when you start recording and set speed back and forth, because it deleted the rest of the animation/recording.

I just want to make it into a tutorial video so others can use it easily. :)

Thank you!

- Amit

Playmaker Help / Re: Reverse animation in Mecanim?
« on: November 26, 2014, 02:43:39 AM »
I am looking for something like this too. Now it works using set animator speed action however how do you reset the speed so you can continue playing?

Pages: [1]