Forum rules - please read before posting.

How to display an on-screen picture with interaction.

Hi !I'm new to Adventure Creator and still in the learning process. I want to display a png graphic of a letter on screen where each part can be examined for errors. How would I go about doing this? I know there is an onscreen document option but I want to display a png of the letter with text. For example, there is a paper on the desk and when examined it switches to an onscreen image of the letter that is overlaid and can be examined. I'd also like to do this with a computer screen. The player clicks on the computer and it displays a graphic of the computer screen with interaction like being able to click buttons on screen. I think this can be achieved with hotspots but I'm not sure how to display the graphics on-screen. Thank you for your help!
--Critterbug

Comments

  • Welcome to the community, @CritterBug. Is this for a 2D or a 3D game?

    You can do this either with Hotspots, or a Menu. If you want it - or specific parts of it - to be interactable in the same way as other objects in the scene, then you're probably best off using Hotspots.

    If you set your png graphic's Texture type (in its Inspector) to Sprite, you can drag and drop it into the scene as a Sprite Renderer. You can then attach Hotspots to it as child objects to make the intended parts of it interactive.

    Move it off to the side of the scene so that it isn't visible normally when playing the game, and then test it out by placing a Camera in front of it and switching to it.

    Once it's working as intended, you can have it appear in your scene by using the Object: Teleport Action to teleport it into view. This might best be done by attaching a Marker as a child object to your MainCamera, and then teleporting to that in the Action. That way, it will always appear in the same place relative to the Camera, no matter where the Camera is positioned.

    If you need further detail, share screenshots of your progress and I'll try to point you in the right direction.

  • edited March 18

    Thank you for your response. This is for a 2D game. This makes sense and I'll try it out!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.