playMaker

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

Pages: 1 ... 6 7 [8]
106
Hi,


like this fsm action or hear is link http://forum.unity3d.com/threads/123270-Aperture-Cutscene-Editor-RELEASED/page2

    using System;
    using UnityEngine;
    
    namespace HutongGames.PlayMaker.Actions
    {
        [ActionCategory(ActionCategory.Animation)]
        [Tooltip("Plays an Aperture Cutscene on a Game Object.")]
        public class PlayApertureCutscene : FsmStateAction
        {
            [RequiredField]
            [CheckForComponent(typeof(Cutscene))]
            [Tooltip("Game Object which has a cutscene.")]
            public FsmOwnerDefault gameObject;
          
            [Tooltip("Event to send when the cutscene has finished playing. NOTE: Not sent with Loop mode!")]
            public FsmEvent finishEvent;
    
            [Tooltip("Event to send when the cutscene loops. If you want to send this event to another FSM use Set Event Target. NOTE: This event is only sent with Loop mode.")]
            public FsmEvent loopEvent;
    
            [Tooltip("Stop playing the cutscene when this state is exited.")]
            public bool stopOnExit;
          
            [Tooltip("Loop the cutscene.")]
            public bool loopCutscene;
          
            [Tooltip("Play the cutscene in reverse. Only works if the cutscene has already been played forwards by some amount.")]
            public bool reverseCutscene;
          
            public override void Reset()
            {
                gameObject = null;
                finishEvent = null;
                loopEvent = null;
                stopOnExit = false;
                loopCutscene = false;
                reverseCutscene = false;
            }
    
            public override void OnEnter()
            {
                DoPlayCutscene();
            }
    
            void DoPlayCutscene()
            {
                var go = Fsm.GetOwnerDefaultTarget(gameObject);
                if (go == null)
                {
                    Finish();
                    return;
                }
                Cutscene thecutscene = go.GetComponent<Cutscene>();
                if (thecutscene == null)
                {
                    LogWarning("Missing cutscene component!");
                    Finish();
                    return;
                }
                if (loopCutscene)
                {
                    thecutscene.loop = true;
                }
                else
                {  
                    thecutscene.loop = false;
                }
                if (reverseCutscene)
                {
                    thecutscene.Rewind();
                }
                else
                {  
                    thecutscene.Play();
                }
              
              
            }
    
            public override void OnUpdate()
            {
                var go = Fsm.GetOwnerDefaultTarget(gameObject);
                if (go == null)
                {
                    return;
                }
                Cutscene thecutscene = go.GetComponent<Cutscene>();
              
                if (thecutscene == null)
                {
                    LogWarning("Missing cutscene component!");
                    Finish();
                    return;
                }
              
                if (!thecutscene.playing && !reverseCutscene)
                {
                    Fsm.Event(finishEvent);
                    Finish();
                }
              
                if (reverseCutscene && (thecutscene.totalPlays == 0))
                {
                    Fsm.Event(finishEvent);
                    Finish();
                }
                if (loopCutscene && (thecutscene.totalPlays > 1))
                {
                    Fsm.Event(loopEvent);
                }
            }
    
            public override void OnExit()
            {
                if (stopOnExit)
                {
                    StopCutscene();
                }
            }
    
            void StopCutscene()
            {
                var go = Fsm.GetOwnerDefaultTarget(gameObject);
                if (go != null)
                {  
                    Cutscene thecutscene = go.GetComponent<Cutscene>();
                    if (thecutscene !=null)
                    {
                        thecutscene.Stop();
                    }
                }
            }
        }
    }

107
Playmaker Help / Animator - The Ultimate Timeline Cutscene Editor for Unity
« on: November 07, 2012, 03:33:53 AM »
Hi,

Animator Timeline Cut scene editor is not work with play maker.it's great tool for making cinematic video.


Hear is link:
http://forum.unity3d.com/threads/135982-Animator-The-Ultimate-Timeline-Cutscene-Editor-for-Unity

108
Playmaker Help / mecanim _unity 4
« on: October 21, 2012, 12:38:34 AM »
Hi,

Can we access unity new  feature mecanim all animation with playmeker.




play_edu

109
Official Action Updates / Re: Pathfinding Actions Beta
« on: September 12, 2012, 11:11:16 PM »
Hi,


Any Example projects or Video tut.. Available. You give this link ( http://beta.unity3d.com/3.5-preview/NavMeshTest-3.5.0f1.zip ) work with scripts .

http://hutonggames.com/playmakerforum/index.php?action=dlattach;topic=1253.0;attach=595 this link has no Example projects  Available.  only action but how can i use?



Play_Edu

110
Playmaker Help / NavMesh Unity3D use with unity tutorials reqwired
« on: September 12, 2012, 01:49:13 AM »
Hi,

I need tutorials or example project for NavMesh Unity3D with playmaker use.



play_edu

111
Playmaker Help / Re: particle collision
« on: September 11, 2012, 06:17:53 AM »
Hi,

Thank You Jean


play_edu

112
Playmaker Help / Re: particle collision
« on: September 10, 2012, 06:42:50 AM »
Hi,


Thank you  jean for replay.


I'm Animator. I have no scripting experience. So i tray to make simple game with play maker.
I'm making simple shooting game.if my player shoot enemy.particle collide and enemy destroy.But I have no Idea how can I destroy.pleas......Help me and you have any tutorials or example projects so kindle inform me.



Play_edu

113
Action Requests / Re: A* Pathfinding For Unity
« on: September 10, 2012, 06:25:00 AM »
Hi,

 Any example projects for pathfinder in play maker?


play_edu

114
Playmaker Help / particle collision
« on: September 09, 2012, 02:19:32 AM »
Hi,

Can you help me for particle collide with player and enemy then damage our player or enemy.


play_edu 

115
Hi,


?????

116
Playmaker Help / about substance float properties
« on: September 06, 2012, 06:58:57 AM »
hi,

i want to use set procedural float in my own substance material,but i do something wrong.

anybody have any idea how to use substance custom action (procedural float)? :'( :'(






Pages: 1 ... 6 7 [8]