Hi,
Panorama3d v1.3: is there a way to add hotspot interactions?
cheers
Maybe a bit late, but this help me use HotSpotArea with Panorama3d,
in the GlobalScript modify you code as:
function on_mouse_click(MouseButton button) {
// called when a mouse button is clicked. button is either LEFT or RIGHT
if (IsGamePaused() == 1) {
// Game is paused, so do nothing (ie. don't allow mouse click)
}
else if (button == eMouseLeft) {
//ProcessClick(mouse.x, mouse.y, mouse.Mode ); //<--- COMMENT THIS LINE
Panorama3d.CalculateBackgroundXYForScreenXY(mouse.x, mouse.y); //<--- ADD THIS METHOD CALL
ProcessClick(Panorama3d.GetBackgroundX(), Panorama3d.GetBackgroundY(), mouse.Mode ); //<--- AND ALSO THIS
}
//etc.. .. ..
Filippo