Does anyone know of a way to use the pause behavior and have the pause scene pan across the actual scene it is on top of and show that scene while it is paused? Thanks! SM
Comments
tenrdrmerMember, Sous Chef, Senior Sous-ChefPosts: 9,934
You can have all of your pause scene actor off the screen and then have them setup with interpolates that move them into the scene when they load.
That's a great idea, thanks! But, I'm not sure I understand how to set that up exactly, I haven't used interpolate much, can you give me an example? SM
tenrdrmerMember, Sous Chef, Senior Sous-ChefPosts: 9,934
On your pause screen set an actor at a position of 720
Then at the top of the actors rules place an interpolate behavior by itself and interpolate self.position.x to 240 duration 1
I guess i must not be doing something or I am missing something. my background of my actual scene is 600x720. So I made the pause scene that big as well and I set it's alpha to 0 so when I pause you can see my level underneath. Then I added the actor, a white square, to the pause scene at x=600 and y=240, and with interpolate added to it, but all that happens when I click preview is the white square appears after a few seconds on the screen but the screen doesn't actually follow it. Basically what I am trying to do is make it so that the player gets a view of the entire level first before they start. But I don't want to allow clicking until the preview of the level is done. I thought using the pause behavior would be the best way to do that since my rules aren't working very well for stopping clicks until the panning is finished. SM
tenrdrmerMember, Sous Chef, Senior Sous-ChefPosts: 9,934
Ah well no the pause behavior does just that. It pauses everything in your scene even the camera positions. So Short answer is no you can do that like that with pause. Bt you can do a scene preview.
Click on my username and then in the games section I have a scene preview demo. It free to download. If you want to download it. Open GameSalad click new and search for Scene Preview Demo and you will be able to open it and see how it all works. That one has a skip button that will allow you to override the preview but it can easily be removed if you don't want it.
Hopefully that will help you out.
Also to make your level not work until the demo is over there is an attribute that starts the demo called previewloop. Just make all of your rules you don't want active to require game.previewloop is false.
Comments
SM
Then at the top of the actors rules place an interpolate behavior by itself and interpolate self.position.x to 240 duration 1
SM
Click on my username and then in the games section I have a scene preview demo. It free to download. If you want to download it. Open GameSalad click new and search for Scene Preview Demo and you will be able to open it and see how it all works. That one has a skip button that will allow you to override the preview but it can easily be removed if you don't want it.
Hopefully that will help you out.
Also to make your level not work until the demo is over there is an attribute that starts the demo called previewloop. Just make all of your rules you don't want active to require game.previewloop is false.
Good Luck