diff --git a/Sources/arm/node/Colision_terrain.hx b/Sources/arm/node/Colision_terrain.hx new file mode 100644 index 0000000..03503f2 --- /dev/null +++ b/Sources/arm/node/Colision_terrain.hx @@ -0,0 +1,81 @@ +package arm.node; + +@:keep class Colision_terrain extends armory.logicnode.LogicTree { + + var functionNodes:Map; + + var functionOutputNodes:Map; + + public function new() { + super(); + name = "Colision_terrain"; + this.functionNodes = new Map(); + this.functionOutputNodes = new Map(); + notifyOnAdd(add); + } + + override public function add() { + var _SetProperty_001 = new armory.logicnode.SetPropertyNode(this); + var _OnInit = new armory.logicnode.OnInitNode(this); + _OnInit.addOutputs([_SetProperty_001]); + _SetProperty_001.addInput(_OnInit, 0); + _SetProperty_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _SetProperty_001.addInput(new armory.logicnode.StringNode(this, "terrain_inside"), 0); + var _Boolean_002 = new armory.logicnode.BooleanNode(this); + _Boolean_002.addInput(new armory.logicnode.BooleanNode(this, false), 0); + _Boolean_002.addOutputs([_SetProperty_001]); + _SetProperty_001.addInput(_Boolean_002, 0); + _SetProperty_001.addOutputs([new armory.logicnode.NullNode(this)]); + var _SetProperty = new armory.logicnode.SetPropertyNode(this); + var _Print = new armory.logicnode.PrintNode(this); + var _OnContact = new armory.logicnode.OnContactNode(this); + _OnContact.property0 = "Begin"; + _OnContact.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _OnContact.addInput(new armory.logicnode.ObjectNode(this, "Rustine1"), 0); + _OnContact.addOutputs([_Print]); + _Print.addInput(_OnContact, 0); + var _Boolean = new armory.logicnode.BooleanNode(this); + _Boolean.addInput(new armory.logicnode.BooleanNode(this, true), 0); + _Boolean.addOutputs([_Print, _SetProperty]); + _Print.addInput(_Boolean, 0); + _Print.addOutputs([_SetProperty]); + _SetProperty.addInput(_Print, 0); + _SetProperty.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _SetProperty.addInput(new armory.logicnode.StringNode(this, "terrain_inside"), 0); + _SetProperty.addInput(_Boolean, 0); + _SetProperty.addOutputs([new armory.logicnode.NullNode(this)]); + var _SetProperty_002 = new armory.logicnode.SetPropertyNode(this); + var _Print_001 = new armory.logicnode.PrintNode(this); + var _OnContact_001 = new armory.logicnode.OnContactNode(this); + _OnContact_001.property0 = "End"; + _OnContact_001.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _OnContact_001.addInput(new armory.logicnode.ObjectNode(this, "Rustine1"), 0); + _OnContact_001.addOutputs([_Print_001]); + _Print_001.addInput(_OnContact_001, 0); + var _Boolean_001 = new armory.logicnode.BooleanNode(this); + _Boolean_001.addInput(new armory.logicnode.BooleanNode(this, false), 0); + _Boolean_001.addOutputs([_Print_001, _SetProperty_002]); + _Print_001.addInput(_Boolean_001, 0); + _Print_001.addOutputs([_SetProperty_002]); + _SetProperty_002.addInput(_Print_001, 0); + _SetProperty_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _SetProperty_002.addInput(new armory.logicnode.StringNode(this, "terrain_inside"), 0); + _SetProperty_002.addInput(_Boolean_001, 0); + _SetProperty_002.addOutputs([new armory.logicnode.NullNode(this)]); + var _ApplyForce = new armory.logicnode.ApplyForceNode(this); + var _OnContact_002 = new armory.logicnode.OnContactNode(this); + _OnContact_002.property0 = "Begin"; + _OnContact_002.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _OnContact_002.addInput(new armory.logicnode.ObjectNode(this, "Rustine1"), 0); + _OnContact_002.addOutputs([_ApplyForce]); + _ApplyForce.addInput(_OnContact_002, 0); + _ApplyForce.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + var _Vector = new armory.logicnode.VectorNode(this); + _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector.addInput(new armory.logicnode.FloatNode(this, -100.0), 0); + _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector.addOutputs([_ApplyForce]); + _ApplyForce.addInput(_Vector, 0); + _ApplyForce.addOutputs([new armory.logicnode.NullNode(this)]); + } +} \ No newline at end of file diff --git a/Sources/arm/node/Moving.hx b/Sources/arm/node/Moving.hx index 4e111fc..aec88c8 100644 --- a/Sources/arm/node/Moving.hx +++ b/Sources/arm/node/Moving.hx @@ -15,132 +15,6 @@ package arm.node; } override public function add() { - var _PlayAction_002 = new armory.logicnode.PlayActionNode(this); - var _Branch_001 = new armory.logicnode.BranchNode(this); - var _ArrayLoop_001 = new armory.logicnode.ArrayLoopNode(this); - var _SetProperty_004 = new armory.logicnode.SetPropertyNode(this); - var _Merge = new armory.logicnode.MergeNode(this); - var _OnKeyboard_003 = new armory.logicnode.OnKeyboardNode(this); - _OnKeyboard_003.property0 = "Released"; - _OnKeyboard_003.property1 = "up"; - _OnKeyboard_003.addOutputs([_Merge]); - _Merge.addInput(_OnKeyboard_003, 0); - var _OnKeyboard_008 = new armory.logicnode.OnKeyboardNode(this); - _OnKeyboard_008.property0 = "Released"; - _OnKeyboard_008.property1 = "down"; - _OnKeyboard_008.addOutputs([_Merge]); - _Merge.addInput(_OnKeyboard_008, 0); - var _OnKeyboard_006 = new armory.logicnode.OnKeyboardNode(this); - _OnKeyboard_006.property0 = "Released"; - _OnKeyboard_006.property1 = "right"; - _OnKeyboard_006.addOutputs([_Merge]); - _Merge.addInput(_OnKeyboard_006, 0); - var _OnKeyboard_007 = new armory.logicnode.OnKeyboardNode(this); - _OnKeyboard_007.property0 = "Released"; - _OnKeyboard_007.property1 = "left"; - _OnKeyboard_007.addOutputs([_Merge]); - _Merge.addInput(_OnKeyboard_007, 0); - var _SetProperty_002 = new armory.logicnode.SetPropertyNode(this); - _SetProperty_002.addInput(_Merge, 0); - _SetProperty_002.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _SetProperty_002.addInput(new armory.logicnode.StringNode(this, "courrir_on"), 0); - var _Boolean_002 = new armory.logicnode.BooleanNode(this); - _Boolean_002.addInput(new armory.logicnode.BooleanNode(this, false), 0); - _Boolean_002.addOutputs([_SetProperty_002, _SetProperty_004]); - _SetProperty_002.addInput(_Boolean_002, 0); - _SetProperty_002.addOutputs([new armory.logicnode.NullNode(this)]); - _Merge.addOutputs([_SetProperty_002, _SetProperty_004]); - _SetProperty_004.addInput(_Merge, 0); - _SetProperty_004.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _SetProperty_004.addInput(new armory.logicnode.StringNode(this, "contact"), 0); - _SetProperty_004.addInput(_Boolean_002, 0); - _SetProperty_004.addOutputs([_ArrayLoop_001]); - _ArrayLoop_001.addInput(_SetProperty_004, 0); - var _Array_Object__001 = new armory.logicnode.ArrayObjectNode(this); - _Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "Terrain"), 0); - _Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "bridge_01"), 0); - _Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "bridge_02"), 0); - _Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "frankies_home"), 0); - _Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "Platforme"), 0); - _Array_Object__001.addOutputs([_ArrayLoop_001]); - _Array_Object__001.addOutputs([new armory.logicnode.IntegerNode(this, 0)]); - _ArrayLoop_001.addInput(_Array_Object__001, 0); - var _IsTrue_001 = new armory.logicnode.IsTrueNode(this); - _IsTrue_001.addInput(_ArrayLoop_001, 0); - var _HasContact_001 = new armory.logicnode.HasContactNode(this); - _HasContact_001.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _HasContact_001.addInput(_ArrayLoop_001, 1); - _HasContact_001.addOutputs([_IsTrue_001]); - _IsTrue_001.addInput(_HasContact_001, 0); - var _SetProperty_003 = new armory.logicnode.SetPropertyNode(this); - _SetProperty_003.addInput(_IsTrue_001, 0); - _SetProperty_003.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _SetProperty_003.addInput(new armory.logicnode.StringNode(this, "contact"), 0); - var _Boolean_003 = new armory.logicnode.BooleanNode(this); - _Boolean_003.addInput(new armory.logicnode.BooleanNode(this, true), 0); - _Boolean_003.addOutputs([_SetProperty_003]); - _SetProperty_003.addInput(_Boolean_003, 0); - var _LoopBreak_001 = new armory.logicnode.LoopBreakNode(this); - _LoopBreak_001.addInput(_SetProperty_003, 0); - _SetProperty_003.addOutputs([_LoopBreak_001]); - _IsTrue_001.addOutputs([_SetProperty_003]); - _ArrayLoop_001.addOutputs([_IsTrue_001]); - _ArrayLoop_001.addOutputs([_HasContact_001]); - _ArrayLoop_001.addOutputs([_Branch_001]); - _Branch_001.addInput(_ArrayLoop_001, 2); - var _GetProperty_001 = new armory.logicnode.GetPropertyNode(this); - _GetProperty_001.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _GetProperty_001.addInput(new armory.logicnode.StringNode(this, "contact"), 0); - _GetProperty_001.addOutputs([_Branch_001]); - _Branch_001.addInput(_GetProperty_001, 0); - _Branch_001.addOutputs([_PlayAction_002]); - var _PlayAction_008 = new armory.logicnode.PlayActionNode(this); - _PlayAction_008.addInput(_Branch_001, 1); - _PlayAction_008.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); - _PlayAction_008.addInput(new armory.logicnode.StringNode(this, "Frankie_Falling"), 0); - _PlayAction_008.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); - _PlayAction_008.addOutputs([new armory.logicnode.NullNode(this)]); - _PlayAction_008.addOutputs([new armory.logicnode.NullNode(this)]); - _Branch_001.addOutputs([_PlayAction_008]); - _PlayAction_002.addInput(_Branch_001, 0); - _PlayAction_002.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); - _PlayAction_002.addInput(new armory.logicnode.StringNode(this, "Frankie_Idle1"), 0); - _PlayAction_002.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); - _PlayAction_002.addOutputs([new armory.logicnode.NullNode(this)]); - _PlayAction_002.addOutputs([new armory.logicnode.NullNode(this)]); - var _PlayAction_006 = new armory.logicnode.PlayActionNode(this); - var _Merge_001 = new armory.logicnode.MergeNode(this); - var _OnContact_004 = new armory.logicnode.OnContactNode(this); - _OnContact_004.property0 = "Begin"; - _OnContact_004.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _OnContact_004.addInput(new armory.logicnode.ObjectNode(this, "Terrain"), 0); - _OnContact_004.addOutputs([_Merge_001]); - _Merge_001.addInput(_OnContact_004, 0); - var _OnContact_006 = new armory.logicnode.OnContactNode(this); - _OnContact_006.property0 = "Begin"; - _OnContact_006.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _OnContact_006.addInput(new armory.logicnode.ObjectNode(this, "bridge_01"), 0); - _OnContact_006.addOutputs([_Merge_001]); - _Merge_001.addInput(_OnContact_006, 0); - var _OnContact_005 = new armory.logicnode.OnContactNode(this); - _OnContact_005.property0 = "Begin"; - _OnContact_005.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _OnContact_005.addInput(new armory.logicnode.ObjectNode(this, "bridge_02"), 0); - _OnContact_005.addOutputs([_Merge_001]); - _Merge_001.addInput(_OnContact_005, 0); - var _OnContact_007 = new armory.logicnode.OnContactNode(this); - _OnContact_007.property0 = "Begin"; - _OnContact_007.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _OnContact_007.addInput(new armory.logicnode.ObjectNode(this, "Plateforme_box"), 0); - _OnContact_007.addOutputs([_Merge_001]); - _Merge_001.addInput(_OnContact_007, 0); - _Merge_001.addOutputs([_PlayAction_006]); - _PlayAction_006.addInput(_Merge_001, 0); - _PlayAction_006.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); - _PlayAction_006.addInput(new armory.logicnode.StringNode(this, "Frankie_Idle1"), 0); - _PlayAction_006.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); - _PlayAction_006.addOutputs([new armory.logicnode.NullNode(this)]); - _PlayAction_006.addOutputs([new armory.logicnode.NullNode(this)]); var _RotateObject_002 = new armory.logicnode.RotateObjectNode(this); var _Branch_002 = new armory.logicnode.BranchNode(this); var _IsFalse = new armory.logicnode.IsFalseNode(this); @@ -255,57 +129,133 @@ package arm.node; _RotateObject_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0); _RotateObject_002.addInput(_Vector_003, 0); _RotateObject_002.addOutputs([new armory.logicnode.NullNode(this)]); - var _TranslateOnLocalAxis_001 = new armory.logicnode.TranslateOnLocalAxisNode(this); - var _IsFalse_003 = new armory.logicnode.IsFalseNode(this); - var _OnKeyboard_001 = new armory.logicnode.OnKeyboardNode(this); - _OnKeyboard_001.property0 = "Down"; - _OnKeyboard_001.property1 = "down"; - _OnKeyboard_001.addOutputs([_IsFalse_003]); - _IsFalse_003.addInput(_OnKeyboard_001, 0); - var _GetProperty_003 = new armory.logicnode.GetPropertyNode(this); - _GetProperty_003.addInput(new armory.logicnode.ObjectNode(this, "Signpost_depart"), 0); - _GetProperty_003.addInput(new armory.logicnode.StringNode(this, "depart"), 0); - var _IsFalse_002 = new armory.logicnode.IsFalseNode(this); - var _OnKeyboard_009 = new armory.logicnode.OnKeyboardNode(this); - _OnKeyboard_009.property0 = "Down"; - _OnKeyboard_009.property1 = "up"; - _OnKeyboard_009.addOutputs([_IsFalse_002]); - _IsFalse_002.addInput(_OnKeyboard_009, 0); - _IsFalse_002.addInput(_GetProperty_003, 0); - var _Branch = new armory.logicnode.BranchNode(this); - _Branch.addInput(_IsFalse_002, 0); - var _GetProperty = new armory.logicnode.GetPropertyNode(this); - _GetProperty.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _GetProperty.addInput(new armory.logicnode.StringNode(this, "courrir_on"), 0); - _GetProperty.addOutputs([_Branch]); - _Branch.addInput(_GetProperty, 0); - var _SendEvent_001 = new armory.logicnode.SendEventNode(this); - _SendEvent_001.addInput(_Branch, 0); - _SendEvent_001.addInput(new armory.logicnode.StringNode(this, "courrir"), 0); - _SendEvent_001.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _SendEvent_001.addOutputs([new armory.logicnode.NullNode(this)]); - _Branch.addOutputs([_SendEvent_001]); - var _SendEvent = new armory.logicnode.SendEventNode(this); - _SendEvent.addInput(_Branch, 1); - _SendEvent.addInput(new armory.logicnode.StringNode(this, "avancer"), 0); - _SendEvent.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _SendEvent.addOutputs([new armory.logicnode.NullNode(this)]); - _Branch.addOutputs([_SendEvent]); - _IsFalse_002.addOutputs([_Branch]); - _GetProperty_003.addOutputs([_IsFalse_002, _IsFalse_003]); - _IsFalse_003.addInput(_GetProperty_003, 0); - var _PlayAction_001 = new armory.logicnode.PlayActionNode(this); - _PlayAction_001.addInput(_IsFalse_003, 0); - _PlayAction_001.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); - _PlayAction_001.addInput(new armory.logicnode.StringNode(this, "Frankie_WalkBack"), 0); - _PlayAction_001.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); - _PlayAction_001.addOutputs([new armory.logicnode.NullNode(this)]); - _PlayAction_001.addOutputs([new armory.logicnode.NullNode(this)]); - _IsFalse_003.addOutputs([_TranslateOnLocalAxis_001, _PlayAction_001]); - _TranslateOnLocalAxis_001.addInput(_IsFalse_003, 0); - _TranslateOnLocalAxis_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - var _Float = new armory.logicnode.FloatNode(this); - _Float.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); + var _PlayAction_002 = new armory.logicnode.PlayActionNode(this); + var _Branch_001 = new armory.logicnode.BranchNode(this); + var _ArrayLoop_001 = new armory.logicnode.ArrayLoopNode(this); + var _SetProperty_004 = new armory.logicnode.SetPropertyNode(this); + var _Merge = new armory.logicnode.MergeNode(this); + var _OnKeyboard_003 = new armory.logicnode.OnKeyboardNode(this); + _OnKeyboard_003.property0 = "Released"; + _OnKeyboard_003.property1 = "up"; + _OnKeyboard_003.addOutputs([_Merge]); + _Merge.addInput(_OnKeyboard_003, 0); + var _OnKeyboard_008 = new armory.logicnode.OnKeyboardNode(this); + _OnKeyboard_008.property0 = "Released"; + _OnKeyboard_008.property1 = "down"; + _OnKeyboard_008.addOutputs([_Merge]); + _Merge.addInput(_OnKeyboard_008, 0); + var _OnKeyboard_006 = new armory.logicnode.OnKeyboardNode(this); + _OnKeyboard_006.property0 = "Released"; + _OnKeyboard_006.property1 = "right"; + _OnKeyboard_006.addOutputs([_Merge]); + _Merge.addInput(_OnKeyboard_006, 0); + var _OnKeyboard_007 = new armory.logicnode.OnKeyboardNode(this); + _OnKeyboard_007.property0 = "Released"; + _OnKeyboard_007.property1 = "left"; + _OnKeyboard_007.addOutputs([_Merge]); + _Merge.addInput(_OnKeyboard_007, 0); + var _SetProperty_002 = new armory.logicnode.SetPropertyNode(this); + _SetProperty_002.addInput(_Merge, 0); + _SetProperty_002.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _SetProperty_002.addInput(new armory.logicnode.StringNode(this, "courrir_on"), 0); + var _Boolean_002 = new armory.logicnode.BooleanNode(this); + _Boolean_002.addInput(new armory.logicnode.BooleanNode(this, false), 0); + _Boolean_002.addOutputs([_SetProperty_002, _SetProperty_004]); + _SetProperty_002.addInput(_Boolean_002, 0); + _SetProperty_002.addOutputs([new armory.logicnode.NullNode(this)]); + _Merge.addOutputs([_SetProperty_002, _SetProperty_004]); + _SetProperty_004.addInput(_Merge, 0); + _SetProperty_004.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _SetProperty_004.addInput(new armory.logicnode.StringNode(this, "contact"), 0); + _SetProperty_004.addInput(_Boolean_002, 0); + _SetProperty_004.addOutputs([_ArrayLoop_001]); + _ArrayLoop_001.addInput(_SetProperty_004, 0); + var _Array_Object__001 = new armory.logicnode.ArrayObjectNode(this); + _Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "Terrain"), 0); + _Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "bridge_01"), 0); + _Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "bridge_02"), 0); + _Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "frankies_home"), 0); + _Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "Platforme"), 0); + _Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "Rustine23"), 0); + _Array_Object__001.addOutputs([_ArrayLoop_001]); + _Array_Object__001.addOutputs([new armory.logicnode.IntegerNode(this, 0)]); + _ArrayLoop_001.addInput(_Array_Object__001, 0); + var _IsTrue_001 = new armory.logicnode.IsTrueNode(this); + _IsTrue_001.addInput(_ArrayLoop_001, 0); + var _HasContact_001 = new armory.logicnode.HasContactNode(this); + _HasContact_001.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _HasContact_001.addInput(_ArrayLoop_001, 1); + _HasContact_001.addOutputs([_IsTrue_001]); + _IsTrue_001.addInput(_HasContact_001, 0); + var _SetProperty_003 = new armory.logicnode.SetPropertyNode(this); + _SetProperty_003.addInput(_IsTrue_001, 0); + _SetProperty_003.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _SetProperty_003.addInput(new armory.logicnode.StringNode(this, "contact"), 0); + var _Boolean_003 = new armory.logicnode.BooleanNode(this); + _Boolean_003.addInput(new armory.logicnode.BooleanNode(this, true), 0); + _Boolean_003.addOutputs([_SetProperty_003]); + _SetProperty_003.addInput(_Boolean_003, 0); + var _LoopBreak_001 = new armory.logicnode.LoopBreakNode(this); + _LoopBreak_001.addInput(_SetProperty_003, 0); + _SetProperty_003.addOutputs([_LoopBreak_001]); + _IsTrue_001.addOutputs([_SetProperty_003]); + _ArrayLoop_001.addOutputs([_IsTrue_001]); + _ArrayLoop_001.addOutputs([_HasContact_001]); + _ArrayLoop_001.addOutputs([_Branch_001]); + _Branch_001.addInput(_ArrayLoop_001, 2); + var _GetProperty_001 = new armory.logicnode.GetPropertyNode(this); + _GetProperty_001.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _GetProperty_001.addInput(new armory.logicnode.StringNode(this, "contact"), 0); + _GetProperty_001.addOutputs([_Branch_001]); + _Branch_001.addInput(_GetProperty_001, 0); + _Branch_001.addOutputs([_PlayAction_002]); + var _PlayAction_008 = new armory.logicnode.PlayActionNode(this); + _PlayAction_008.addInput(_Branch_001, 1); + _PlayAction_008.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); + _PlayAction_008.addInput(new armory.logicnode.StringNode(this, "Frankie_Falling"), 0); + _PlayAction_008.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); + _PlayAction_008.addOutputs([new armory.logicnode.NullNode(this)]); + _PlayAction_008.addOutputs([new armory.logicnode.NullNode(this)]); + _Branch_001.addOutputs([_PlayAction_008]); + _PlayAction_002.addInput(_Branch_001, 0); + _PlayAction_002.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); + _PlayAction_002.addInput(new armory.logicnode.StringNode(this, "Frankie_Idle1"), 0); + _PlayAction_002.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); + _PlayAction_002.addOutputs([new armory.logicnode.NullNode(this)]); + _PlayAction_002.addOutputs([new armory.logicnode.NullNode(this)]); + var _PlayAction_006 = new armory.logicnode.PlayActionNode(this); + var _Merge_001 = new armory.logicnode.MergeNode(this); + var _OnContact_004 = new armory.logicnode.OnContactNode(this); + _OnContact_004.property0 = "Begin"; + _OnContact_004.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _OnContact_004.addInput(new armory.logicnode.ObjectNode(this, "Terrain"), 0); + _OnContact_004.addOutputs([_Merge_001]); + _Merge_001.addInput(_OnContact_004, 0); + var _OnContact_006 = new armory.logicnode.OnContactNode(this); + _OnContact_006.property0 = "Begin"; + _OnContact_006.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _OnContact_006.addInput(new armory.logicnode.ObjectNode(this, "bridge_01"), 0); + _OnContact_006.addOutputs([_Merge_001]); + _Merge_001.addInput(_OnContact_006, 0); + var _OnContact_005 = new armory.logicnode.OnContactNode(this); + _OnContact_005.property0 = "Begin"; + _OnContact_005.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _OnContact_005.addInput(new armory.logicnode.ObjectNode(this, "bridge_02"), 0); + _OnContact_005.addOutputs([_Merge_001]); + _Merge_001.addInput(_OnContact_005, 0); + var _OnContact_007 = new armory.logicnode.OnContactNode(this); + _OnContact_007.property0 = "Begin"; + _OnContact_007.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _OnContact_007.addInput(new armory.logicnode.ObjectNode(this, "Platforme"), 0); + _OnContact_007.addOutputs([_Merge_001]); + _Merge_001.addInput(_OnContact_007, 0); + _Merge_001.addOutputs([_PlayAction_006]); + _PlayAction_006.addInput(_Merge_001, 0); + _PlayAction_006.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); + _PlayAction_006.addInput(new armory.logicnode.StringNode(this, "Frankie_Idle1"), 0); + _PlayAction_006.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); + _PlayAction_006.addOutputs([new armory.logicnode.NullNode(this)]); + _PlayAction_006.addOutputs([new armory.logicnode.NullNode(this)]); var _TranslateOnLocalAxis = new armory.logicnode.TranslateOnLocalAxisNode(this); var _OnEvent = new armory.logicnode.OnEventNode(this); _OnEvent.property0 = "avancer"; @@ -332,15 +282,74 @@ package arm.node; _OnEvent.addOutputs([_TranslateOnLocalAxis, _PlayAction]); _TranslateOnLocalAxis.addInput(_OnEvent, 0); _TranslateOnLocalAxis.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _TranslateOnLocalAxis.addInput(_Float, 0); - _TranslateOnLocalAxis.addInput(new armory.logicnode.IntegerNode(this, 1), 0); - _TranslateOnLocalAxis.addInput(new armory.logicnode.BooleanNode(this, true), 0); - _TranslateOnLocalAxis.addOutputs([new armory.logicnode.NullNode(this)]); - _Float.addOutputs([_TranslateOnLocalAxis_001, _TranslateOnLocalAxis]); + var _Float = new armory.logicnode.FloatNode(this); + _Float.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); + var _TranslateOnLocalAxis_001 = new armory.logicnode.TranslateOnLocalAxisNode(this); + var _IsFalse_003 = new armory.logicnode.IsFalseNode(this); + var _OnKeyboard_001 = new armory.logicnode.OnKeyboardNode(this); + _OnKeyboard_001.property0 = "Down"; + _OnKeyboard_001.property1 = "down"; + _OnKeyboard_001.addOutputs([_IsFalse_003]); + _IsFalse_003.addInput(_OnKeyboard_001, 0); + var _GetProperty_003 = new armory.logicnode.GetPropertyNode(this); + _GetProperty_003.addInput(new armory.logicnode.ObjectNode(this, "Signpost_depart"), 0); + _GetProperty_003.addInput(new armory.logicnode.StringNode(this, "depart"), 0); + var _IsFalse_002 = new armory.logicnode.IsFalseNode(this); + var _OnKeyboard_009 = new armory.logicnode.OnKeyboardNode(this); + _OnKeyboard_009.property0 = "Down"; + _OnKeyboard_009.property1 = "up"; + _OnKeyboard_009.addOutputs([_IsFalse_002]); + _IsFalse_002.addInput(_OnKeyboard_009, 0); + _IsFalse_002.addInput(_GetProperty_003, 0); + var _IsFalse_005 = new armory.logicnode.IsFalseNode(this); + _IsFalse_005.addInput(_IsFalse_002, 0); + var _HasContact_002 = new armory.logicnode.HasContactNode(this); + _HasContact_002.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _HasContact_002.addInput(new armory.logicnode.ObjectNode(this, "Rustine0"), 0); + _HasContact_002.addOutputs([_IsFalse_005]); + _IsFalse_005.addInput(_HasContact_002, 0); + var _Branch = new armory.logicnode.BranchNode(this); + _Branch.addInput(_IsFalse_005, 0); + var _GetProperty = new armory.logicnode.GetPropertyNode(this); + _GetProperty.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _GetProperty.addInput(new armory.logicnode.StringNode(this, "courrir_on"), 0); + _GetProperty.addOutputs([_Branch]); + _Branch.addInput(_GetProperty, 0); + var _SendEvent_001 = new armory.logicnode.SendEventNode(this); + _SendEvent_001.addInput(_Branch, 0); + _SendEvent_001.addInput(new armory.logicnode.StringNode(this, "courrir"), 0); + _SendEvent_001.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _SendEvent_001.addOutputs([new armory.logicnode.NullNode(this)]); + _Branch.addOutputs([_SendEvent_001]); + var _SendEvent = new armory.logicnode.SendEventNode(this); + _SendEvent.addInput(_Branch, 1); + _SendEvent.addInput(new armory.logicnode.StringNode(this, "avancer"), 0); + _SendEvent.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _SendEvent.addOutputs([new armory.logicnode.NullNode(this)]); + _Branch.addOutputs([_SendEvent]); + _IsFalse_005.addOutputs([_Branch]); + _IsFalse_002.addOutputs([_IsFalse_005]); + _GetProperty_003.addOutputs([_IsFalse_002, _IsFalse_003]); + _IsFalse_003.addInput(_GetProperty_003, 0); + var _PlayAction_001 = new armory.logicnode.PlayActionNode(this); + _PlayAction_001.addInput(_IsFalse_003, 0); + _PlayAction_001.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); + _PlayAction_001.addInput(new armory.logicnode.StringNode(this, "Frankie_WalkBack"), 0); + _PlayAction_001.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); + _PlayAction_001.addOutputs([new armory.logicnode.NullNode(this)]); + _PlayAction_001.addOutputs([new armory.logicnode.NullNode(this)]); + _IsFalse_003.addOutputs([_TranslateOnLocalAxis_001, _PlayAction_001]); + _TranslateOnLocalAxis_001.addInput(_IsFalse_003, 0); + _TranslateOnLocalAxis_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0); _TranslateOnLocalAxis_001.addInput(_Float, 0); _TranslateOnLocalAxis_001.addInput(new armory.logicnode.IntegerNode(this, 1), 0); _TranslateOnLocalAxis_001.addInput(new armory.logicnode.BooleanNode(this, false), 0); _TranslateOnLocalAxis_001.addOutputs([new armory.logicnode.NullNode(this)]); + _Float.addOutputs([_TranslateOnLocalAxis_001, _TranslateOnLocalAxis]); + _TranslateOnLocalAxis.addInput(_Float, 0); + _TranslateOnLocalAxis.addInput(new armory.logicnode.IntegerNode(this, 1), 0); + _TranslateOnLocalAxis.addInput(new armory.logicnode.BooleanNode(this, true), 0); + _TranslateOnLocalAxis.addOutputs([new armory.logicnode.NullNode(this)]); var _PlayAction_005 = new armory.logicnode.PlayActionNode(this); var _OnEvent_001 = new armory.logicnode.OnEventNode(this); _OnEvent_001.property0 = "courrir"; @@ -358,11 +367,10 @@ package arm.node; _PlayAction_005.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); _PlayAction_005.addOutputs([new armory.logicnode.NullNode(this)]); _PlayAction_005.addOutputs([new armory.logicnode.NullNode(this)]); - var _SetActionSpeed = new armory.logicnode.SetActionSpeedNode(this); - _SetActionSpeed.addInput(new armory.logicnode.NullNode(this), 0); - _SetActionSpeed.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _SetActionSpeed.addInput(new armory.logicnode.FloatNode(this, 0.5), 0); - _SetActionSpeed.addOutputs([new armory.logicnode.NullNode(this)]); + var _GetProperty_006 = new armory.logicnode.GetPropertyNode(this); + _GetProperty_006.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _GetProperty_006.addInput(new armory.logicnode.StringNode(this, "terrain_inside"), 0); + _GetProperty_006.addOutputs([new armory.logicnode.NullNode(this)]); var _PlayAction_011 = new armory.logicnode.PlayActionNode(this); var _PlayAction_010 = new armory.logicnode.PlayActionNode(this); var _ApplyForce = new armory.logicnode.ApplyForceNode(this); diff --git a/Sources/arm/node/Spawn.hx b/Sources/arm/node/Spawn.hx index ca06a54..e675976 100644 --- a/Sources/arm/node/Spawn.hx +++ b/Sources/arm/node/Spawn.hx @@ -523,7 +523,7 @@ package arm.node; _SeparateXYZ.addOutputs([_Compare]); _Compare.addInput(_SeparateXYZ, 2); var _Integer_001 = new armory.logicnode.IntegerNode(this); - _Integer_001.addInput(new armory.logicnode.IntegerNode(this, -5), 0); + _Integer_001.addInput(new armory.logicnode.IntegerNode(this, -9), 0); _Integer_001.addOutputs([_Compare]); _Compare.addInput(_Integer_001, 0); _Compare.addOutputs([_IsTrue]); @@ -608,6 +608,11 @@ package arm.node; _SetProperty_001.addOutputs([_Merge]); _Merge.addInput(_SetProperty_001, 0); _Merge.addInput(_SetProperty_002, 0); + var _OnKeyboard_002 = new armory.logicnode.OnKeyboardNode(this); + _OnKeyboard_002.property0 = "Down"; + _OnKeyboard_002.property1 = "r"; + _OnKeyboard_002.addOutputs([_Merge]); + _Merge.addInput(_OnKeyboard_002, 0); _Merge.addOutputs([_SendEvent_001]); _SendEvent_001.addInput(_Merge, 0); _SendEvent_001.addInput(new armory.logicnode.StringNode(this, "spawn"), 0); diff --git a/Sources/arm/node/TrackCamera.hx b/Sources/arm/node/TrackCamera.hx index f1d3174..29b2462 100644 --- a/Sources/arm/node/TrackCamera.hx +++ b/Sources/arm/node/TrackCamera.hx @@ -60,145 +60,6 @@ package arm.node; _Vector_003.addOutputs([_TranslateObject_002]); _TranslateObject_002.addInput(_Vector_003, 0); _TranslateObject_002.addOutputs([new armory.logicnode.NullNode(this)]); - var _SetProperty_001 = new armory.logicnode.SetPropertyNode(this); - var _OnInit = new armory.logicnode.OnInitNode(this); - _OnInit.addOutputs([_SetProperty_001]); - _SetProperty_001.addInput(_OnInit, 0); - _SetProperty_001.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0); - _SetProperty_001.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0); - var _Boolean_001 = new armory.logicnode.BooleanNode(this); - _Boolean_001.addInput(new armory.logicnode.BooleanNode(this, false), 0); - _Boolean_001.addOutputs([_SetProperty_001]); - _SetProperty_001.addInput(_Boolean_001, 0); - _SetProperty_001.addOutputs([new armory.logicnode.NullNode(this)]); - var _SetProperty_005 = new armory.logicnode.SetPropertyNode(this); - var _TranslateObject = new armory.logicnode.TranslateObjectNode(this); - var _IsTrue_003 = new armory.logicnode.IsTrueNode(this); - var _Gate = new armory.logicnode.GateNode(this); - _Gate.property0 = "Or"; - _Gate.property1 = 9.999999747378752e-05; - var _IsFalse_003 = new armory.logicnode.IsFalseNode(this); - var _OnUpdate_003 = new armory.logicnode.OnUpdateNode(this); - _OnUpdate_003.property0 = "Update"; - _OnUpdate_003.addOutputs([_IsFalse_003]); - _IsFalse_003.addInput(_OnUpdate_003, 0); - var _GetProperty_004 = new armory.logicnode.GetPropertyNode(this); - _GetProperty_004.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0); - _GetProperty_004.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0); - _GetProperty_004.addOutputs([_IsFalse_003]); - _IsFalse_003.addInput(_GetProperty_004, 0); - _IsFalse_003.addOutputs([_Gate]); - _Gate.addInput(_IsFalse_003, 0); - var _Compare_002 = new armory.logicnode.CompareNode(this); - _Compare_002.property0 = "Greater Equal"; - _Compare_002.property1 = 9.999999747378752e-05; - var _SeparateXYZ_001 = new armory.logicnode.SeparateVectorNode(this); - var _GetVelocity_002 = new armory.logicnode.GetVelocityNode(this); - _GetVelocity_002.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _GetVelocity_002.addOutputs([_SeparateXYZ_001]); - _GetVelocity_002.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); - _SeparateXYZ_001.addInput(_GetVelocity_002, 0); - _SeparateXYZ_001.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]); - _SeparateXYZ_001.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]); - var _Compare_003 = new armory.logicnode.CompareNode(this); - _Compare_003.property0 = "Less Equal"; - _Compare_003.property1 = 9.999999747378752e-05; - _Compare_003.addInput(_SeparateXYZ_001, 2); - var _Math_001 = new armory.logicnode.MathNode(this); - _Math_001.property0 = "Multiply"; - _Math_001.property1 = "false"; - var _Float_001 = new armory.logicnode.FloatNode(this); - _Float_001.addInput(new armory.logicnode.FloatNode(this, 5.0), 0); - _Float_001.addOutputs([_Math_001, _Compare_002]); - _Math_001.addInput(_Float_001, 0); - _Math_001.addInput(new armory.logicnode.FloatNode(this, -1.0), 0); - _Math_001.addOutputs([_Compare_003]); - _Compare_003.addInput(_Math_001, 0); - _Compare_003.addOutputs([_Gate]); - _SeparateXYZ_001.addOutputs([_Compare_002, _Compare_003]); - _Compare_002.addInput(_SeparateXYZ_001, 2); - _Compare_002.addInput(_Float_001, 0); - _Compare_002.addOutputs([_Gate]); - _Gate.addInput(_Compare_002, 0); - _Gate.addInput(_Compare_003, 0); - _Gate.addOutputs([_IsTrue_003]); - _Gate.addOutputs([new armory.logicnode.NullNode(this)]); - _IsTrue_003.addInput(_Gate, 0); - _IsTrue_003.addInput(new armory.logicnode.BooleanNode(this, true), 0); - _IsTrue_003.addOutputs([_TranslateObject]); - _TranslateObject.addInput(_IsTrue_003, 0); - _TranslateObject.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0); - var _Vector = new armory.logicnode.VectorNode(this); - var _Float = new armory.logicnode.FloatNode(this); - _Float.addInput(new armory.logicnode.FloatNode(this, 5.0), 0); - var _Math = new armory.logicnode.MathNode(this); - _Math.property0 = "Multiply"; - _Math.property1 = "false"; - _Math.addInput(_Float, 0); - _Math.addInput(new armory.logicnode.FloatNode(this, -1.0), 0); - var _Vector_001 = new armory.logicnode.VectorNode(this); - _Vector_001.addInput(_Math, 0); - _Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - var _TranslateObject_001 = new armory.logicnode.TranslateObjectNode(this); - var _IsTrue_004 = new armory.logicnode.IsTrueNode(this); - var _Merge = new armory.logicnode.MergeNode(this); - var _OnContact_004 = new armory.logicnode.OnContactNode(this); - _OnContact_004.property0 = "Begin"; - _OnContact_004.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _OnContact_004.addInput(new armory.logicnode.ObjectNode(this, "Terrain"), 0); - _OnContact_004.addOutputs([_Merge]); - _Merge.addInput(_OnContact_004, 0); - var _OnContact_003 = new armory.logicnode.OnContactNode(this); - _OnContact_003.property0 = "Begin"; - _OnContact_003.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _OnContact_003.addInput(new armory.logicnode.ObjectNode(this, "bridge_01"), 0); - _OnContact_003.addOutputs([_Merge]); - _Merge.addInput(_OnContact_003, 0); - var _OnContact_002 = new armory.logicnode.OnContactNode(this); - _OnContact_002.property0 = "Begin"; - _OnContact_002.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _OnContact_002.addInput(new armory.logicnode.ObjectNode(this, "bridge_02"), 0); - _OnContact_002.addOutputs([_Merge]); - _Merge.addInput(_OnContact_002, 0); - _Merge.addOutputs([_IsTrue_004]); - _IsTrue_004.addInput(_Merge, 0); - var _GetProperty_003 = new armory.logicnode.GetPropertyNode(this); - _GetProperty_003.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0); - _GetProperty_003.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0); - _GetProperty_003.addOutputs([_IsTrue_004]); - _IsTrue_004.addInput(_GetProperty_003, 0); - _IsTrue_004.addOutputs([_TranslateObject_001]); - _TranslateObject_001.addInput(_IsTrue_004, 0); - _TranslateObject_001.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0); - _TranslateObject_001.addInput(_Vector_001, 0); - var _SetProperty_006 = new armory.logicnode.SetPropertyNode(this); - _SetProperty_006.addInput(_TranslateObject_001, 0); - _SetProperty_006.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _SetProperty_006.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0); - var _Boolean_005 = new armory.logicnode.BooleanNode(this); - _Boolean_005.addInput(new armory.logicnode.BooleanNode(this, false), 0); - _Boolean_005.addOutputs([_SetProperty_006]); - _SetProperty_006.addInput(_Boolean_005, 0); - _SetProperty_006.addOutputs([new armory.logicnode.NullNode(this)]); - _TranslateObject_001.addOutputs([_SetProperty_006]); - _Vector_001.addOutputs([_TranslateObject_001]); - _Math.addOutputs([_Vector_001]); - _Float.addOutputs([_Math, _Vector]); - _Vector.addInput(_Float, 0); - _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector.addOutputs([_TranslateObject]); - _TranslateObject.addInput(_Vector, 0); - _TranslateObject.addOutputs([_SetProperty_005]); - _SetProperty_005.addInput(_TranslateObject, 0); - _SetProperty_005.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _SetProperty_005.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0); - var _Boolean_004 = new armory.logicnode.BooleanNode(this); - _Boolean_004.addInput(new armory.logicnode.BooleanNode(this, true), 0); - _Boolean_004.addOutputs([_SetProperty_005]); - _SetProperty_005.addInput(_Boolean_004, 0); - _SetProperty_005.addOutputs([new armory.logicnode.NullNode(this)]); var _SetLocation = new armory.logicnode.SetLocationNode(this); var _OnUpdate = new armory.logicnode.OnUpdateNode(this); _OnUpdate.property0 = "Update"; diff --git a/Sources/arm/node/TrackCamera2.hx b/Sources/arm/node/TrackCamera2.hx new file mode 100644 index 0000000..f0ced77 --- /dev/null +++ b/Sources/arm/node/TrackCamera2.hx @@ -0,0 +1,158 @@ +package arm.node; + +@:keep class TrackCamera2 extends armory.logicnode.LogicTree { + + var functionNodes:Map; + + var functionOutputNodes:Map; + + public function new() { + super(); + name = "TrackCamera2"; + this.functionNodes = new Map(); + this.functionOutputNodes = new Map(); + notifyOnAdd(add); + } + + override public function add() { + var _SetProperty_001 = new armory.logicnode.SetPropertyNode(this); + var _OnInit = new armory.logicnode.OnInitNode(this); + _OnInit.addOutputs([_SetProperty_001]); + _SetProperty_001.addInput(_OnInit, 0); + _SetProperty_001.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0); + _SetProperty_001.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0); + var _Boolean_001 = new armory.logicnode.BooleanNode(this); + _Boolean_001.addInput(new armory.logicnode.BooleanNode(this, false), 0); + _Boolean_001.addOutputs([_SetProperty_001]); + _SetProperty_001.addInput(_Boolean_001, 0); + _SetProperty_001.addOutputs([new armory.logicnode.NullNode(this)]); + var _SetProperty_005 = new armory.logicnode.SetPropertyNode(this); + var _TranslateObject = new armory.logicnode.TranslateObjectNode(this); + var _IsTrue_003 = new armory.logicnode.IsTrueNode(this); + var _Gate = new armory.logicnode.GateNode(this); + _Gate.property0 = "Or"; + _Gate.property1 = 9.999999747378752e-05; + var _IsFalse_003 = new armory.logicnode.IsFalseNode(this); + var _OnUpdate_003 = new armory.logicnode.OnUpdateNode(this); + _OnUpdate_003.property0 = "Update"; + _OnUpdate_003.addOutputs([_IsFalse_003]); + _IsFalse_003.addInput(_OnUpdate_003, 0); + var _GetProperty_004 = new armory.logicnode.GetPropertyNode(this); + _GetProperty_004.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0); + _GetProperty_004.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0); + _GetProperty_004.addOutputs([_IsFalse_003]); + _IsFalse_003.addInput(_GetProperty_004, 0); + _IsFalse_003.addOutputs([_Gate]); + _Gate.addInput(_IsFalse_003, 0); + var _Compare_002 = new armory.logicnode.CompareNode(this); + _Compare_002.property0 = "Greater Equal"; + _Compare_002.property1 = 9.999999747378752e-05; + var _SeparateXYZ_001 = new armory.logicnode.SeparateVectorNode(this); + var _GetVelocity_002 = new armory.logicnode.GetVelocityNode(this); + _GetVelocity_002.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _GetVelocity_002.addOutputs([_SeparateXYZ_001]); + _GetVelocity_002.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); + _SeparateXYZ_001.addInput(_GetVelocity_002, 0); + _SeparateXYZ_001.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]); + _SeparateXYZ_001.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]); + var _Compare_003 = new armory.logicnode.CompareNode(this); + _Compare_003.property0 = "Less Equal"; + _Compare_003.property1 = 9.999999747378752e-05; + _Compare_003.addInput(_SeparateXYZ_001, 2); + var _Math_001 = new armory.logicnode.MathNode(this); + _Math_001.property0 = "Multiply"; + _Math_001.property1 = "false"; + var _Float_001 = new armory.logicnode.FloatNode(this); + _Float_001.addInput(new armory.logicnode.FloatNode(this, 5.0), 0); + _Float_001.addOutputs([_Math_001, _Compare_002]); + _Math_001.addInput(_Float_001, 0); + _Math_001.addInput(new armory.logicnode.FloatNode(this, -1.0), 0); + _Math_001.addOutputs([_Compare_003]); + _Compare_003.addInput(_Math_001, 0); + _Compare_003.addOutputs([_Gate]); + _SeparateXYZ_001.addOutputs([_Compare_002, _Compare_003]); + _Compare_002.addInput(_SeparateXYZ_001, 2); + _Compare_002.addInput(_Float_001, 0); + _Compare_002.addOutputs([_Gate]); + _Gate.addInput(_Compare_002, 0); + _Gate.addInput(_Compare_003, 0); + _Gate.addOutputs([_IsTrue_003]); + _Gate.addOutputs([new armory.logicnode.NullNode(this)]); + _IsTrue_003.addInput(_Gate, 0); + _IsTrue_003.addInput(new armory.logicnode.BooleanNode(this, true), 0); + _IsTrue_003.addOutputs([_TranslateObject]); + _TranslateObject.addInput(_IsTrue_003, 0); + _TranslateObject.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0); + var _Vector = new armory.logicnode.VectorNode(this); + var _Float = new armory.logicnode.FloatNode(this); + _Float.addInput(new armory.logicnode.FloatNode(this, 5.0), 0); + var _Math = new armory.logicnode.MathNode(this); + _Math.property0 = "Multiply"; + _Math.property1 = "false"; + _Math.addInput(_Float, 0); + _Math.addInput(new armory.logicnode.FloatNode(this, -1.0), 0); + var _Vector_001 = new armory.logicnode.VectorNode(this); + _Vector_001.addInput(_Math, 0); + _Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + var _TranslateObject_001 = new armory.logicnode.TranslateObjectNode(this); + var _IsTrue_004 = new armory.logicnode.IsTrueNode(this); + var _Merge = new armory.logicnode.MergeNode(this); + var _OnContact_004 = new armory.logicnode.OnContactNode(this); + _OnContact_004.property0 = "Begin"; + _OnContact_004.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _OnContact_004.addInput(new armory.logicnode.ObjectNode(this, "Terrain"), 0); + _OnContact_004.addOutputs([_Merge]); + _Merge.addInput(_OnContact_004, 0); + var _OnContact_003 = new armory.logicnode.OnContactNode(this); + _OnContact_003.property0 = "Begin"; + _OnContact_003.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _OnContact_003.addInput(new armory.logicnode.ObjectNode(this, "bridge_01"), 0); + _OnContact_003.addOutputs([_Merge]); + _Merge.addInput(_OnContact_003, 0); + var _OnContact_002 = new armory.logicnode.OnContactNode(this); + _OnContact_002.property0 = "Begin"; + _OnContact_002.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _OnContact_002.addInput(new armory.logicnode.ObjectNode(this, "bridge_02"), 0); + _OnContact_002.addOutputs([_Merge]); + _Merge.addInput(_OnContact_002, 0); + _Merge.addOutputs([_IsTrue_004]); + _IsTrue_004.addInput(_Merge, 0); + var _GetProperty_003 = new armory.logicnode.GetPropertyNode(this); + _GetProperty_003.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0); + _GetProperty_003.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0); + _GetProperty_003.addOutputs([_IsTrue_004]); + _IsTrue_004.addInput(_GetProperty_003, 0); + _IsTrue_004.addOutputs([_TranslateObject_001]); + _TranslateObject_001.addInput(_IsTrue_004, 0); + _TranslateObject_001.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0); + _TranslateObject_001.addInput(_Vector_001, 0); + var _SetProperty_006 = new armory.logicnode.SetPropertyNode(this); + _SetProperty_006.addInput(_TranslateObject_001, 0); + _SetProperty_006.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _SetProperty_006.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0); + var _Boolean_005 = new armory.logicnode.BooleanNode(this); + _Boolean_005.addInput(new armory.logicnode.BooleanNode(this, false), 0); + _Boolean_005.addOutputs([_SetProperty_006]); + _SetProperty_006.addInput(_Boolean_005, 0); + _SetProperty_006.addOutputs([new armory.logicnode.NullNode(this)]); + _TranslateObject_001.addOutputs([_SetProperty_006]); + _Vector_001.addOutputs([_TranslateObject_001]); + _Math.addOutputs([_Vector_001]); + _Float.addOutputs([_Math, _Vector]); + _Vector.addInput(_Float, 0); + _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector.addOutputs([_TranslateObject]); + _TranslateObject.addInput(_Vector, 0); + _TranslateObject.addOutputs([_SetProperty_005]); + _SetProperty_005.addInput(_TranslateObject, 0); + _SetProperty_005.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _SetProperty_005.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0); + var _Boolean_004 = new armory.logicnode.BooleanNode(this); + _Boolean_004.addInput(new armory.logicnode.BooleanNode(this, true), 0); + _Boolean_004.addOutputs([_SetProperty_005]); + _SetProperty_005.addInput(_Boolean_004, 0); + _SetProperty_005.addOutputs([new armory.logicnode.NullNode(this)]); + } +} \ No newline at end of file diff --git a/doc/Capture d’écran_2019-04-16_14-36-59.png b/doc/Capture d’écran_2019-04-16_14-36-59.png new file mode 100644 index 0000000..cb1bd02 Binary files /dev/null and b/doc/Capture d’écran_2019-04-16_14-36-59.png differ diff --git a/doc/Capture d’écran_2019-04-16_14-38-47.png b/doc/Capture d’écran_2019-04-16_14-38-47.png new file mode 100644 index 0000000..c5bf5d8 Binary files /dev/null and b/doc/Capture d’écran_2019-04-16_14-38-47.png differ diff --git a/doc/Capture d’écran_2019-04-16_15-01-42.png b/doc/Capture d’écran_2019-04-16_15-01-42.png new file mode 100644 index 0000000..bc208bb Binary files /dev/null and b/doc/Capture d’écran_2019-04-16_15-01-42.png differ diff --git a/doc/__82bdee893c7343b8bb2e15aee6b4f850-l.png b/doc/__82bdee893c7343b8bb2e15aee6b4f850-l.png new file mode 100644 index 0000000..3e9b5dd Binary files /dev/null and b/doc/__82bdee893c7343b8bb2e15aee6b4f850-l.png differ diff --git a/ecureuil-205.blend b/ecureuil-205.blend new file mode 100644 index 0000000..66ed85a Binary files /dev/null and b/ecureuil-205.blend differ