Hi,
I'm having trouble making somewhat sophisticated pausing and menu systems.
I made the post below, so you can know what the project is that I'm working on...
http://www.scirra.com/forum/interactive-comic-book-how-many-people-would-buy_topic49895.html?KW=
(first of all you can access the hud at the top by clicking the top black bar or you can hover over the top corners to bring up either the pause or menu buttons)
As you can see from my project capx (below), when you click the pause button (top right), everything pauses as it should. However, if you leave it paused you notice that it still goes to the next layout anyway. I know this is because the system is still running and only the object timescales are paused, but I don't know how to fix it. If I use the system timescale = 0 then I will run into problems with animations of the play, pause, and menu (top left) buttons, probably some other problems way down the road as I add more features.
As you can see I have timescale instance variables for each item in layout 1 (I haven't added them to the other layouts yet because what's the point if it doesn't work). When layout 1 starts, only the zooming in part has a timescale instance variable of 1, everything else starts at 0. When it is time for things to fade in and out, those instance variables then become 1. This (and the lovely family behaviors system) helps everything from popping up at once right at the start. Any ideas how to also pause the transition to the next layout without actually pausing the whole system??
Next problem...
As you can see I've begun the process developing a pretty good menu system (yes, the layout is empty but that's the easy part; there will be some stats and whatnot). You click on the button in the top left, which brings up the menu layout. However, I can't find any function anywhere in the program that returns you to the previous layout. Let's say you're on layout 2...you go to the menu, then exit the menu. Where do you go? If I program the menu event sheet to go to layout 2, then it goes to layout 2 everytime, regardless of which layout you were on. When I did a search for this problem on scirra, I found a post where it mentions that you actually CAN go to a previous layout, but it's only on contruct classic. Why isn't this feature on construct 2? Any ideas on how to fix this one, or am I going to have to put all the menu items on every single layout of the comic (there will probably be something like 75-100 layouts when the whole thing is finished).
thanks.
http://philipcomposer.com/comic/unnamed.capx