playMaker

Author Topic: Pooling/ core game kit problem.  (Read 2285 times)

ghost010

  • Junior Playmaker
  • **
  • Posts: 51
Pooling/ core game kit problem.
« on: July 05, 2014, 02:28:37 AM »
So for my game i need the playe to shoot some bullets.
And we all know the best way to do that is to use pooling.

Now the problem i have with pooling(core game kit in this case) is that when the pooled object(bullet) gets despawned on hit, it saves every thing( state, speed, rotation ect). Now to combat this,i had a state that would set acceleration to 0 en rotation to 0. The problem with this is.. it stays on this state... if the FSM go's to state 2 and despawns, it will respawn in state 2 instead of going to state 1 and doing the FSM all over again.

Is there any one that can help me with this, specially core game kit or pooling in general for playmaker.




« Last Edit: July 05, 2014, 04:53:05 AM by ghost010 »

CptCommander

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Pooling/ core game kit problem.
« Reply #1 on: October 19, 2014, 11:17:53 AM »
Hey Dude,

What might fix this for you is to remove the FSM when it's done, and re-attach it when it is spawned again. http://hutonggames.com/playmakerforum/index.php?topic=5819.0

Otherwise, make the states set a bool variable and let a state with a bool test do the spawning and despawning.