We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am making a small game using p5.js and I wanted to link to another html file in that folder.
I tried link("level2.html"); but it didn't work
I also looked at all the references in the p5.js website but i couldn't find any.
Where are you trying to access the HTML file from? In index.HTML? Or in the .js sketch?
Make sure you have the HTML file in same folder as the index.HTML file.
my html file is the same folder
is there any function to linking
like for processing.js I used to type
but idk how to link in p5.js
In short i am making a game like this
and i want to link two levels
i finished one task or pressed one button I want to go to another html file
if you get what I mean
This game was made through processing.js
I want to create a similar game using p5.js
Hmm, what does your index.html look like?
Maybe this helps: