2022-02-08 at 1:20 am #49147
I’m looking to develop a FPS style in-browser application where my camera aims according to user mouse movement and moves with WASD. I have used pointer lock to make sure my camera aims in the direction of mouse movement. Using W and S keys allow the camera to move back and forth inside the scene. I imagine that I must overwrite these with custom controls?
What tutorials are there for me to understand how to control camera movement with keys? I’ve used the Keyboard controls puzzle so far, but I can’t seem to find any tutorials on the web which explain.2022-02-08 at 1:34 am #49150
I have also looked for configuring WASD controls like this but cannot find the exact puzzle piece.2022-02-08 at 6:54 am #49165Yuri KovelenovStaff2022-02-08 at 3:38 pm #49181
Ok, so I’m assuming that it is this puzzle set under “Main” that I can replicate on my own project to achieve WASD control? `2022-02-09 at 5:52 am #491972022-02-10 at 8:40 am #49299GLiFTeKCustomer
You can right-click that portion of puzzles in the procedure in your image you posted, and save it to your library, then open it from your library in your own project. After reloading your browser.
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2022-02-10 at 4:07 pm #49332
@GLifTeK Really appreciate you sharing that tip, I didn’t know that and would’ve probably just recreated it piece by piece.
Are there any other pieces of code I need from the snowball example in order to make my camera move WASD? I notice there isn’t anything taking control of the camera in this puzzle setup. I have imported it into my project and it’s not working as expected.
Here’s the portion I have implemented, where / how do I specify to move the active camera?2022-02-15 at 1:49 am #49378
Any other assistance on this? Is there a video tutorial I can watch that can show me how to get this accomplished?2022-02-15 at 5:19 pm #49399
Please help me figure this out, I’ve been trying to do this for two weeks now.2022-02-16 at 10:30 pm #494272022-02-17 at 5:57 am #49435
I’m using the puzzle setup in the comment mentioned above to achieve movement on mobile. This puzzle moves the camera every time the Up or Down button is tapped. However, you need to tap the Up / Down button constantly to move.
I’d like to configure the Up / Down buttons to move as long as the user has their finger tapped on the screen. When they remove their finger, the button stops. I’ve used the detect touch / tap puzzle library to recreate this control, but even if I hold the mouse down / keep finger tapped on screen, the camera movement stops.
What am I doing wrong?2022-02-17 at 7:13 pm #49462
So i’ve been using the “every frame do” puzzle piece to continue the action once the Up buttton is pressed, however this needs to be stopped when the user lifts his finger. What makes the most sense?
2022-04-16 at 11:30 am #51113
- This reply was modified 5 months, 3 weeks ago by ma77hew.
- You must be logged in to reply to this topic.