Tuesday, 27 October 2020

How can I write a line of code for p5.js that works as a camera follower for my player? (var Mover;) This is a 2D game

https://editor.p5js.org/LttntLark/sketches/JBSg2zIfEf

All the code is above. I've been trying to make a camera that follows the player(Mover), and it says I need WEBGL. Is there a way to do this without it in p5.js? I've searched up tutorials, and nothing says I can make a "camera" for p5 in 2d, and that I "NEED WEBGL" And I cant remodel my game in WEBGL, so I need a code that is a "viewport" that keeps my player centered on the screen while he moves.



from How can I write a line of code for p5.js that works as a camera follower for my player? (var Mover;) This is a 2D game

No comments:

Post a Comment