peaks
New Member
Posts: 2
Posts: 2
|
Post by peaks on Aug 15, 2018 10:44:01 GMT
Hello!
New Core GameKit customer here - so far, I'm really enjoying your awesome asset, it perfectly fits my project needs! But, I ran into some troubles with killables in combination with playmaker.
Simple scene setup is:
1 global wave, 1 Spawner which spawns a prefab with the killable script attached (5-10 enemies will spawn). Attack points 1, hit points 5, max. h.p. 5000; Wave set to elimination.
Player is a cube which has a raycast-logic attached to it (done in playmaker): 1.It has a ray in the z-axis, waiting for an enemy to hit 2.if it's true, then I use the action "Core Game Kit Killable Take Damage", applied to the raycast-hit emeny. 1 Damage point. 3.Wait for 1 sec, then it checks if the enemy is still "in the ray", if so, repeat 2. if not, go to 1. again. Simple FSM mechanic.
It works perfectly, but after 1 prefab has 0 hit left & gets deactivated, I CAN'T kill the other spawned prefabs. It registers a hit with the ray, but no damage point is applied to the prefab (it stays at 5 hit points).
Did I made a mistake setting up the waves / killables?
|
|
|
Post by DarkTonic Dev on Aug 15, 2018 15:12:03 GMT
Sounds like you reached game over in court game kit. If you have finished your last Global wave than the game is over. The player has won. You either need to add more waves or go into each of your killables and change the field called game over Behavior to "behave as normal" which is not the default.
|
|
peaks
New Member
Posts: 2
Posts: 2
|
Post by peaks on Aug 15, 2018 15:49:36 GMT
allright, I will give it a shot! thanks for the reply!
|
|
|
Post by DarkTonic Dev on Aug 15, 2018 15:51:31 GMT
No problem.
|
|