|
Post by skwiggs1983 on Dec 12, 2014 18:40:44 GMT
Using core gamekit and Playmaker, I want to be able to make the game end after 5 waves are complete. I was able to trigger game over for core gamekit - thus stopping the waves - but I cannot get the game over to happen everywhere else.
I wanted to know how to get Playmaker to realize that LevelSettings.IsGameOver has been activated so I can create a transistion to the "Congratulations" screen that i will make
|
|
|
Post by DarkTonic Dev on Dec 13, 2014 0:46:36 GMT
Use the LevelSettingsPlaymakerListener class.
Put it on the same game object as an FSM you want to fire an event on. The hook the Listener into the "Listener" field on Level Settings.
Now you will select the LevelSettingsPlaymakerListener and select a Playmaker FSM and event to fire.
|
|
|
Post by skwiggs1983 on Dec 13, 2014 14:50:46 GMT
I may be doing something incorrectly, but when the game starts, it immediately starts the event instead of waiting till the game over is triggered.
|
|
|
Post by DarkTonic Dev on Dec 13, 2014 17:58:17 GMT
I can't help you much without screen shots, but you should be setting up the Win event on the Listener.
|
|
|
Post by skwiggs1983 on Dec 17, 2014 5:32:45 GMT
maybe I am placing it in the wrong spot. I do know that "trigger's game over works, but I dont know how to make that event translate over to playmaker Attachments:

|
|
|
Post by DarkTonic Dev on Dec 17, 2014 5:53:25 GMT
You're using the wrong Listener. I said to use the Level Settings Playmaker Listener, not World Variable Playmaker Listener. Which you will hook up to the Listener field on LevelSettings (not to a World Variable). That Listener will have a dropdown for FSM and event names to fire.
|
|
|
Post by skwiggs1983 on Dec 17, 2014 16:40:55 GMT
Ah. Ok I'll fix it and screenshot tonight
|
|
|
Post by DarkTonic Dev on Dec 17, 2014 17:19:58 GMT
You won't need to screen shot. It will be working 
|
|
|
Post by skwiggs1983 on Dec 18, 2014 5:59:15 GMT
you were right. thank you thank you
|
|
|
Post by DarkTonic Dev on Dec 18, 2014 6:06:32 GMT
Awesome 
|
|
|
Post by Sadaan on Dec 21, 2014 17:14:32 GMT
The gameOver works fine, but how do i referesh it to NOT game over? through playmaker? I've been trying to figure it out for a day now and I cant find any option to refresh it.
|
|
|
Post by DarkTonic Dev on Dec 21, 2014 19:40:37 GMT
Normally you'd do an Application.LoadLevel (whatever Playmaker action does that). That will start the player back to the original level though.
Code can do the following if you don't want to reset anything else.
LevelSettings.IsGameOver = false
However, that's a static property, and last time I checked Playmaker can't access static properties with the Call Method action (it's been over a year since I checked). Has this been rectified later?
|
|