Panorama3d v1.3: Hotspot interactions

Started by Slasher, Sat 29/11/2014 09:25:45

Previous topic - Next topic

Slasher

Hi,

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

cheers

Effer

Maybe a bit late, but this help me use HotSpotArea with Panorama3d,
in the GlobalScript modify you code as:

Code: ags
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

SMF spam blocked by CleanTalk