Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Slasher on Sat 29/11/2014 09:25:45

Title: Panorama3d v1.3: Hotspot interactions
Post by: Slasher on Sat 29/11/2014 09:25:45
Hi,

Panorama3d v1.3: is there a way to add hotspot interactions?

cheers
Title: Re: Panorama3d v1.3: Hotspot interactions
Post by: Effer on Sun 02/08/2015 12:39:33
Maybe a bit late, but this help me use HotSpotArea with Panorama3d,
in the GlobalScript modify you code as:

Code (ags) Select
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