- This topic has 12 replies, 4 voices, and was last updated 2 years, 7 months ago by Muhammad Ebrahim.
-
AuthorPosts
-
2022-02-08 at 1:20 am #49147ma77hewParticipant
Hi,
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.
Attachments:
You must be logged in to view attached files.2022-02-08 at 1:34 am #49150ma77hewParticipantI have also looked for configuring WASD controls like this but cannot find the exact puzzle piece.
https://www.soft8soft.com/wp-content/uploads/2021/11/puzzle-set-camera-param-keyboard-controls.jpg
2022-02-08 at 6:54 am #49165Yuri KovelenovStaff2022-02-08 at 3:38 pm #49181ma77hewParticipantOk, so I’m assuming that it is this puzzle set under “Main” that I can replicate on my own project to achieve WASD control? `
Attachments:
You must be logged in to view attached files.2022-02-09 at 5:52 am #49197Yuri KovelenovStaff2022-02-10 at 8:40 am #49299GLiFTeKCustomerHi,
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 #49332ma77hewParticipant@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?
Attachments:
You must be logged in to view attached files.2022-02-15 at 1:49 am #49378ma77hewParticipantAny 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 #49399ma77hewParticipantPlease help me figure this out, I’ve been trying to do this for two weeks now.
2022-02-16 at 10:30 pm #49427ma77hewParticipantThis was an extremely helpful thread.
This puzzle combo should be saved!
Attachments:
You must be logged in to view attached files.2022-02-17 at 5:57 am #49435ma77hewParticipantI’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?
Attachments:
You must be logged in to view attached files.2022-02-17 at 7:13 pm #49462ma77hewParticipantSo 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 #51113Muhammad EbrahimCustomerhowever this needs to be stopped when the user lifts his finger
have you found a way to break out of the “every frame” puzzle?
-
AuthorPosts
- You must be logged in to reply to this topic.