Author Topic: Best way to show a "close-up" -images in game?  (Read 267 times)

Best way to show a "close-up" -images in game?
« on: 05 Oct 2021, 08:31 »
Hi,

I'm still quite beginner with AGS, and would like to ask, what would be the best way to show so-called "close-up" -images during the game?

For example, let's say, if there is a scene, in which the player looks in a pit in the forest - the game should show a close-up -image of the pit. The size of the close-up image would be (of course) smaller than game's native resolution, and it should be "floating" on the room background, in the middle the screen?

Or maybe there could be a scene, in which player character takes something from his pocket - and the game should show a close-up -image of that item?

One option would be to use GUIs for this purpose, but is there a better option available? Is it possible to "fade in" or "fade out" close-up -images, when they appear or disappear on the screen?

eri0o

Re: Best way to show a "close-up" -images in game?
« Reply #1 on: 05 Oct 2021, 14:15 »
If you want fade , an option is to use Tween module with GUIs

Re: Best way to show a "close-up" -images in game?
« Reply #2 on: 05 Oct 2021, 14:41 »
The easiest way is to use a different room for the close-up view since you get the transition effect for free as part of the room change, but that only works if you are willing to transition the background too.

If the close-ups are specific to their rooms then you could use room objects but that isn't as useful when you can view a close-up of something from multiple rooms.

You can directly show an image as a graphical overlay:
https://adventuregamestudio.github.io/ags-manual/Overlay.html#overlaycreategraphical
...but that is more complicated than a GUI if you want to adjust the transparency to fade it in or out.

So likely the GUI is the easiest option in this case.