Hi there, I’m trying to work out how to do a hidden object game in 2D.
I have just started setting my project up. I have a level, a sprite background, a couple of sprites for object.
I would like to know how to setup to camera, add a simple widget at bottom of the screen and how to basically click on a sprite, make it disappear on click and appear on a widget bar at the bottom of the screen?
camera: for a fixed 2d scene place a camera actor, set it orthographic for the flat look, and make it the view target (auto possess on the camera, or set view target with blend from the player controller on begin play). the orthographic width is your zoom, which matters for a hidden object game since players scan the scene at a consistent scale.
clicking sprites: show mouse cursor on the player controller, then get hit result under cursor on click. this works with paper 2d sprites as long as the sprite components have collision enabled. on a hit, hide the sprite (set visibility off) and broadcast an event that your HUD listens to.
widget bar: build the bottom bar as a horizontal box of slots, and when an object is found, add its info to an array on the game state or player controller, then have the widget rebuild its slots from that array. that keeps the bar a live reflection of the found list instead of wiring each object to the widget one by one.
found objects are usually defined in a data table (id, sprite, name) so adding objects and levels means adding rows, not logic. if you want to see that structure fully assembled, the Hidden Object Game Template does exactly this loop, data table driven levels, click to find, found items appearing in the bottom bar, plus the main menu and level complete flow, all commented blueprint so you can pull it apart: Multiplayer Hidden Object Game Template | Fab