Hi there, I'm a completely newbie on this and definitely I'm not a programmer, but anyway the dream comes true and now I'm developing my first 2D point and click game. The issue is that before buying Adventure creator and get deeper in Unity I wanted a parallax effect so I finally figured out how to do it dragging the camera and other scripts on the objects to get the effect. But Adventure Creator interaction menus or pause menu don't block the camera dragging thing. So, in the pause menu for example, music, animations and everything are paused but you can still drag the camera and Is a kind of interesting effect but definitely is not what I need. I really need your help I've been looking for this for about two weeks
Thanks in advance.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @barakunata.
To be clear: you're using a custom script to create your own draggable camera?
AC has functions that you can read to check if the game is currently paused, or if you're in a cutscene, which you can use to prevent your code from running during these times.
To prevent e.g. your Update function from running when AC is paused, for example, add this to the top of it:
To do the same thing when AC is in a cutscene:
More details on reading AC's current state in this way can be found in the Manual's "Custom scripting" chapter.
Thanks for your kind help @ChrisIceBox . Yes, I'm using a custom script for the drag effect. Unfortunately I had already worked on the cameras with a custom script before I purchased Adventure creator . So I've been looking for help everywhere to stop dragging when is paused or during a conversation.
No problem. If you want to prevent dragging whenever you're outside of regular gameplay, you can use:
This function returns 'false' during a Conversation as well, so long as Allow regular gameplay during Conversations? is unchecked in the Settings Manager.