Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Effer

#1
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