www.webdeveloper.com
Results 1 to 3 of 3

Thread: shooting js error code (loading startscreen)

  1. #1
    Join Date
    Jan 2013
    Posts
    4

    shooting js error code (loading startscreen)

    So I am new here.. and i will try to explain this problem I am having.

    I am making a 2d shooter game with easeljs and my code, character, already knows how to shoot, delete enemy from stage when died etc. But i cant make it work from the start screen, so that it will link to the game and a game over screen. It doesnt load the background at all.

    I get this error:
    Unable to get image data from canvas because the canvas has been tainted by cross-origin data.
    Uncaught An error has occured. This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images.

    It does load the first background with the image-start-button (png) but when i try to on.mousclick it doesnot work.

    Any help would help thank you..

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,648
    if you have those on.mousclicks in you code i'm afraid the program will never work my friend... once upon a time i called a mechanic and asked him why my car did not work. he answered that to a pity he was unable to fix my car by the phone...
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

  3. #3
    Join Date
    Jan 2013
    Posts
    4
    I see what u did there I placed after this post a new one with the code.. Hope u can see it

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles