Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Hi.  I'm really liking Emu so far.  However, if I start the Demo in fullscreen mode, the hotspot areas for the tabs, close button and dialog title all seem to be off.  I haven't tried any other interactive control yet.  When I hover the mouse over about twice the height of the tab above the tab, then the tab will highlight.  When I'm in windowed mode, it seems to work fine.  Am I doing something wrong?  Thanks.

(3 edits)

In EmuCore.getMouseHover(), I changed the window_mouse_x() call to device_mouse_x_to_gui(0).  I don't know if that is correct but it seems to work.

Same problem for me after resizing window in my program. I've changed window_mouse_x() to just mouse_x.

(+1)

mouse_x and mouse_y are the mouse’s position relative to the room, so if you make use of views and cameras it may start to conflict (although if it works for you, that’s all that matters).

The device mouse functions are probably the solution that should work in pretty much all cases, since they’re designed to take the GUI layer into account - I’ll play around with that next chance I get; as long as nothing bad happens I might make that the default.

If absolutely necessary I could make the mouse position value a macro that the user could change depending on their needs, although I doubt it would come down to that.

My understanding was that EMU objects were to be placed somewhere in the room. I didn't figured out how to use the GUI layer for drawing them. So, I've placed EMU objects in a specific part of the room, made a specific viewport to show them without scaling and used room coordinates.