#Making an interactive computer in a 3D game

3 messages · Page 1 of 1 (latest)

solid vale
#

Hello so as the title says I want to make an interactive computer in a 3d game, I made the shape of the box, and I also made a mesh where I can project a 2d texture via subviewport, however the tutorial I'm using tells me to use a script from the godot asset store, the problem is that the script uses the actual position of the mouse

So I can't use
func _ready():
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)

Because then the mouse doesn't match the script (Which I'll share in a second message)

following this tutorial:
https://www.youtube.com/watch?v=ElWxsKnYV_I&t=185s

For the game I've been developing over the past few months, one of the main mechanics involves player interaction with an in game computer screen. In this tutorial I share how I implemented it in Godot.

I'll be uploading devlogs for the game that I made this for soon, so be sure to subscribe!

Chapters:
0:00 Intro
0:16 Computer Mesh
0:50 SubVie...

▶ Play video
#

So my question becomes: How could I make it so either this code works with func _ready():
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) or an alternative to interact with this subviewport