Oh yeah sure Eden , you can just have my source code instead!
I implemented http://codecanyon.net/item/html5-scratch-card/8721110 into hype, so if you want to mess around with the original scratchcard.js spend the 8 bucks there and swap it out with my file I took out the flash player fall back on my version.
You’ll see 2 scenes on there, on the first the container, the image to be scratched out and the image underneath it.
The gray container is a placeholder you need for placing, if you move it around the sratch moves around on purpose.
But again this is basic, if you want it more complicated you’ll need to dig into code. That library’s great though, and in my JS ive sepearted out the stuff i want to change(percent before going to next scene, thickness of brush)
Sorry its not the cleanest file on the planet but should be a starter and save you a couple of hours. But you do need some JS knowledge to get it working, if you want specifics like how to do multiple scratchers you’ll need to manipulate code or get your javascript dev to work on this, scratch isn’t a hype feature
After a while I work to reach my perfect product … I gets to the point I need to export the file to Html5 and I went to the library to open the file … it opens up a gray page with no possibility to scratching. ): It is important to note before I export the file I press play and it works great !!!
Let me scratch my ticket and everything looks perfect. Only after I export the file appears in the issue.
By the way did you do exactly the same step without changing the file.
The test would with the original file ScratchCard.zip sent me without changing it.
You can download the file and do the test.
It requires a server to have it work, it doesnt work off local(i find a lot of jquery stuff’s like that, i dont know why that plug in is), upload it to your site and test it or run mamp locally and see if that works
Oh I know why
When i publish ads i need to rename the export to index, so the folder becomes index.hyperesources where as yours becomes ScratchCard-3.hyperesources so the 2 links will break… i made a new change