CANVAS GAME - TITLE SCREEN

  • (2 Pages)
  • +
  • 1
  • 2

20 Replies - 788 Views - Last Post: 13 February 2014 - 09:30 AM

#16 ArtificialSoldier  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 426
  • View blog
  • Posts: 1,559
  • Joined: 15-January 14

Re: CANVAS GAME - TITLE SCREEN

Posted 12 February 2014 - 04:19 PM

Right.
Was This Post Helpful? 0
  • +
  • -

#17 PSCA  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 35
  • Joined: 10-October 12

Re: CANVAS GAME - TITLE SCREEN

Posted 12 February 2014 - 04:22 PM

Now it just loads my background image and nothing happens on the mouse click
but i dont understand where in the code i made a mistake
Was This Post Helpful? 0
  • +
  • -

#18 ArtificialSoldier  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 426
  • View blog
  • Posts: 1,559
  • Joined: 15-January 14

Re: CANVAS GAME - TITLE SCREEN

Posted 12 February 2014 - 04:25 PM

Are you checking the console for error messages? Do you have a link to it online?
Was This Post Helpful? 0
  • +
  • -

#19 PSCA  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 35
  • Joined: 10-October 12

Re: CANVAS GAME - TITLE SCREEN

Posted 12 February 2014 - 06:38 PM

No unfortunately i dont
I will be working on it some more to figure out what is wrong
will post back later tonight

What im noticing is that in the render function
either my cover image is loading or my game background image is loading not bnoth of them together
and the mouse event is not working
Was This Post Helpful? 0
  • +
  • -

#20 PSCA  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 35
  • Joined: 10-October 12

Re: CANVAS GAME - TITLE SCREEN

Posted 12 February 2014 - 07:43 PM

 

canvas.addEventListener("mousedown", getPosition, false);
        addEventListener("mouseup", mouseUp, false);
        var rect = canvas.getBoundingClientRect();




does it matter that i have this code
Was This Post Helpful? 0
  • +
  • -

#21 ArtificialSoldier  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 426
  • View blog
  • Posts: 1,559
  • Joined: 15-January 14

Re: CANVAS GAME - TITLE SCREEN

Posted 13 February 2014 - 09:30 AM

If those event handlers are stopping the event from propagating then that might be an issue.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2