--
You received this message because you are subscribed to the Google Groups "Processing.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to processingjs+unsubscribe@googlegroups.com.
To post to this group, send email to proces...@googlegroups.com.
Visit this group at https://groups.google.com/group/processingjs.
For more options, visit https://groups.google.com/d/optout.
Typically these things come from a couple problems:1. You are not using correct paths. In this case you should see an error in the network tab of your browser, you should be able to see what status code and actuakl text you got when loading the box2d file2. you are trying to access a file:url and processing.js uses xmlhttprequest under the hood. Most browsers block this action. Solutions are to either use a web serverIn both cases check the network tab of your browsers dev tools and you should get a pretty good idea which issue you have.If that doesn't help, please post some example code and we can go forward form there.-Lee
On Fri, Apr 27, 2018 at 11:04 AM, Daniel Ohuruogu <daniel....@hotmail.co.uk> wrote:
Hi guys,I want to use Box2D for processing.js for a school project, but I've having problems importing the library. I've created a custom template with the box2d-min.js copied in locally and referenced in the document's HTML file, but for some reason example scripts do not run.I'm also having problems with the script itself. I ran the simplebox2D example that comes with processing without any problems.The second I copy and paste it into a new processing.js file though, the script no longer runs, with the console saying 'badly formed character constant (expecting quote, got b). How could this be if I copied and pasted everything exactly, except for a different file path?Any help would be greatly appreciated - it's frustrated me for two days.Thanks in advanceDaniel
--
You received this message because you are subscribed to the Google Groups "Processing.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to processingjs...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to processingjs+unsubscribe@googlegroups.com.