khoa94
New Member
Posts: 2
Posts: 2
|
Post by khoa94 on Jul 17, 2014 5:17:39 GMT
Hi, I’m using PlayMaker and Core GameKit. Is there a PlayMaker event that automatically trigger after a specific wave ends? I need an event like that so that after killing all the enemies in the last wave, I load a different scene.
|
|
|
Post by DarkTonic Dev on Jul 17, 2014 5:35:17 GMT
Sure, what you do for that is attach the LevelSettingsPlaymakerListener script to a GameObject in your Scene that has an FSM. Then hook it up to the LevelWaveSettings prefab as a listener like normal. i.e. 1) Click on LevelWaveSettings in the Scene. 2) Drag the GameObject you have put the Listener on into the "Listener" field in the Inspector. Then, go back to the GameObject with the FSM and the Listener, and select a state from the dropdown that will execute for the "Win" event, and then in your FSM, make it load the next level. All the other "PlaymakerListener" scripts can be used for the same sort of "call an FSM state" action per event provided by Core CameKit 
|
|