playMaker

Author Topic: Dropping items in playmaker.  (Read 7347 times)

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Dropping items in playmaker.
« Reply #15 on: March 20, 2014, 04:01:03 PM »
Does the example do what you're trying to make your scene do?
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: Dropping items in playmaker.
« Reply #16 on: March 20, 2014, 04:06:34 PM »
Does the example do what you're trying to make your scene do?

For dropping things? Yes, but then theirs a button GUI, and I want generate items as oppose to generating items by clicking. Still though, items don't drop with the FSM setup I posted.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Dropping items in playmaker.
« Reply #17 on: March 20, 2014, 04:23:14 PM »
Does the example do what you're trying to make your scene do?

For dropping things? Yes, but then theirs a button GUI, and I want generate items as oppose to generating items by clicking. Still though, items don't drop with the FSM setup I posted.

Thats because your gravity on/off is backwards.
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: Dropping items in playmaker.
« Reply #18 on: March 20, 2014, 04:32:29 PM »
What do you mean?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Dropping items in playmaker.
« Reply #19 on: March 20, 2014, 04:45:07 PM »
1) Spawn something
2) Store it in a variable
3) Turn on gravity for that Rigidbody (Make sure it has a Rigidbody)
4) It's going to start falling.
5) Turn off gravity on that object to make it stop falling, or to not fall at all.

If the crane example works fine, its just a matter of looking through it and finding out what is different between yours, then making it work for you.
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: Dropping items in playmaker.
« Reply #20 on: March 20, 2014, 05:23:16 PM »

5) Turn off gravity on that object to make it stop falling, or to not fall at all.

If the crane example works fine, its just a matter of looking through it and finding out what is different between yours, then making it work for you.

When I did that the cube already in the scene drops but the second cube doesn't drop when I turn off gravity. When I turn on gravity on the "create" state, it drops, collides with the previous cube then falls through the floor.  On top of that, I can't get cubes respawn because the forth state just stops after the second cube drops.
« Last Edit: March 20, 2014, 05:28:03 PM by coffeeANDsoda »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Dropping items in playmaker.
« Reply #21 on: March 20, 2014, 05:28:50 PM »
You should study the working example and try to bridge the gap.
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: Dropping items in playmaker.
« Reply #22 on: March 20, 2014, 05:56:23 PM »
You should study the working example and try to bridge the gap.

Still doesn't make sense, because I looked at how the example FSM respawns with setup it has and did a comparison to the version I made without  GUI buttons. By any chance, would the reason be that it's having a conflict with prefabs? Since the action Create Object has a prefab as oppose to a regular cube?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Dropping items in playmaker.
« Reply #23 on: March 20, 2014, 07:57:32 PM »
You should be spawning from a prefab and storing that variable. Replacing it every time you spawn a new one.
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: Dropping items in playmaker.
« Reply #24 on: March 28, 2014, 04:27:49 PM »
I see. What would I have to do to make the item dropping being synchronized with the crane? When it moves it doesn't drop at the position of the crane moving.