Okay what about ctx like let canv = document.getElementbyId(“canvas”)
ctx = canv.getContext(“2D”)
No I told you I only know basic js
Oh I thought you meant all of js because ctx is an part of js that can do graphics but it okay
I literally said it
I know enough js to be able to do a few things that snap cannot
I added shooting and recoil
can i help? i know how to make 3d, i just need to figure out how to layer the triangles
We aren’t doing 3d I don’t think
Sure
I need help with an So first we will have an raycaster that makes rays that will report the color that they collide with and then we will use an algorithm to turn the 2d into an 3rd perspective by expanding the y or z axis and then we will have the collision by having an hitbox that is 2d and surrounds the player it has no z because it is not being shown so it is 2d and when it touches the crates hitbox it moves it away! Could you do some of it then I work on the other stuff in it? Sorry I have big ideas and it might be too complex im sorry
Yo I think they know how to make a raycaster
if you stop moving right after the screen starts moving, you can leave the screen without triggering the [move camera] script
i made a raycaster, but it runs absurdly slow producing anything even mediocre so i think im gonna try a different approach
maybe using js
griffpatch's raycasting tutorial works fine (i tried to reproduce it in snap a while ago and it wasn't too bad)
Project url?
Try Three.js
theres nothing i can do about that becuase removing it will make the screen scroll endlessly
Also hi coder_07
i know, have you tried to move the screen by a smaller distance ? or like in the first zelda games (i don't have any other references), you could move the player by a small distance along with the camera
Like 0.5 always works for me