playMaker

Author Topic: One hit death health system  (Read 2698 times)

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
One hit death health system
« on: December 14, 2014, 02:54:45 AM »
How is a flappy bird style death or kill trap by collision system work?

Sure theirs telling the damage doing object to destroy another object, but when I set up a empty object with a global float variable all I get is the object FSM being disabled with a error message exceeding loop count.

« Last Edit: December 14, 2014, 03:12:43 AM by coffeeANDsoda »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: One hit death health system
« Reply #1 on: December 14, 2014, 10:44:14 AM »
Just use the global transition event ON COLLISION ENTER to transition to a state where it kills the character.

Any collision will trigger it.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: One hit death health system
« Reply #2 on: December 14, 2014, 03:21:47 PM »
Just use the global transition event ON COLLISION ENTER to transition to a state where it kills the character.

Literally on any FSM attached to the player?

Any collision will trigger it.

For one object tagged or not?

Another issue I have with setting up a global transition event is that when I make one in the FSM as for example Jumping, when I start the game, it goes straight to the COLLISION ENTER global transition event. Not when I collide with a object that triggers death/destroy the player.
« Last Edit: December 14, 2014, 03:31:12 PM by coffeeANDsoda »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: One hit death health system
« Reply #3 on: December 14, 2014, 06:19:12 PM »
Have you seen this?


Or this?


The vids should help clear things up.

Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: One hit death health system
« Reply #4 on: December 14, 2014, 06:43:49 PM »



Problem is in the third video, when another global transition event is created, it applies for every object. I tried that and the FSM automatically switched to that COLLISION ENTER event, preventing the player from jumping.




The Trigger video covers global transition events? Don't recall seeing anything regarding triggers in that example when I watched it awhile back.
« Last Edit: December 14, 2014, 08:07:29 PM by coffeeANDsoda »

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: One hit death health system
« Reply #5 on: December 15, 2014, 03:35:47 PM »
Another thing to add, I'd like to have a instant death object set up that is similar to this video. But without a health system. Just a another fsm or global transition event to enable death and respawn.


« Last Edit: December 15, 2014, 03:40:00 PM by coffeeANDsoda »

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618