0 Favourites

how to get the image from canvas and add event on that image

  • Any One can you told me how to get the image from canvas and add event on that image

    means

    [ "t2", cr.plugins_.Sprite, false,

    [],

    0,

    0,

    null,

    [ [ "Default", 5, false, 1, 0, false, 6056448206965757, [ ["images/sprite2-sheet0.png", 155, 0, 0, 250, 250, 1, 0.5, 0.5,

    [],[],1]

    ]

    ]

    ],

    [ ],

    false,

    false,

    1137731541052407,

    [],

    null

    ]

    , [ "t3", cr.plugins_.Touch, false, [],

    0,

    0,

    null,

    null,

    [ ],

    false,

    false,

    8636152857696988,

    [],

    null

    ,[1]

    ]

    , [ "t4", cr.plugins_.Sprite, false, [],

    1,

    0,

    null,

    [ [ "Default", 5, false, 1, 0, false, 9050402499563591, [ ["images/sprite-sheet0.png", 155, 0, 0, 250, 250, 1, 0.5, 0.5,

    [],[],1]

    ]

    ]

    ],

    [

    [ "Sine", cr.behaviors.Sin, 8447855769118502 ]

    ],

    false,

    false,

    1421800220649511,

    [],

    null

    ]

    in this array I have two images...

    and want to add touch alert event on "sprite2-sheet0.png" object so can you tell me how to add addEventListener js on that images

  • rob

    Why are you posting the same thing multiple times in the wrong section?

  • zenox98

    COZ its urgent and no one know the answer of this question

    do you have any idea ?

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Don't post the same thing in multiple threads, and don't post in unrelated topics. Posting an unrelated problem in another thread is more likely for your problem to be missed. Just start a thread in the how do I section instead next time (I've already split this topic there).

    Also, even if it's urgent, you need to wait more than a few minutes before expecting a response, more like a few hours, at which point you can bump your thread rather than starting a new one.

  • More importantly what does that jibberish have to do with adding an event on touch?

    Surely op isn't trying to code in the C2 runtime.

  • Arima,

    I Got your point but its urgent and no body know the ans so I m asking in here sorry for multiple threads but did u know the ans of this question..

    yes its c2rutime.js code where touch event is working fine but I have a another js file where i want to add the c2rutime.js for touch event . I wanaa to add addEventListener in single image so can you tell me how can i do..............

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
[PLUGIN] Canvas
627 186,749
zenox98's avatar
zenox98
Unread hot topic
0 Favourites
[Plugin] Three.js 3D canvas
134 12,737
Schoening's avatar
Schoening
Unread hot topic
66 25,882
hatsantos's avatar
hatsantos