Hi,
I'm just asking a quick question-
How do I code for the image that displays on a sprite.
I mean what is it after the ".":
Sprite.(What?)
Like if it were a text I'd do :
Text.text
How do i do it with a sprite?
Radkampfwagen
Develop games in your browser. Powerful, performant & highly capable.
In events “sprite.something” only gives numbers and text.
The drawing canvas is probably what you need to use to access image stuff. You’d paste the sprite to the canvas then you can access and set individual pixels or get an imageurl to save or download a png/jpg file.
oh right-thx il be doing that then coming rigt back
thx mate
rojohound
thx mate for your help-
1 problem
i now know how to save the img but how do i invoke download so that the users computer starts downloading it straight away?
ive never done this be4
hope your still here :D
edit- R0J0hound
Well the imagUrl is just a string which you can download with the browser object’s action: invoke download.
With nwjs you can save it to a file too.
oh right thx
now i understand :D